1SUMMARY="Embeddable Common-Lisp interpreter"
2DESCRIPTION="ECL (Embeddable Common-Lisp) is an interpreter of the \
3Common-Lisp language as described in the X3J13 Ansi specification, featuring \
4CLOS (Common-Lisp Object System), conditions, loops, etc, plus a translator \
5to C, which can produce standalone executables."
6HOMEPAGE="https://www.ecl.org"
7COPYRIGHT="2015 Daniel Kochma��ski
8	2000 Juan Jose Garcia Ripoll
9	1990, 1991, 1993 Giuseppe Attardi
10	1984 Taiichi Yuasa and Masami Hagiya"
11LICENSE="GNU LGPL v2.1"
12REVISION="1"
13SOURCE_URI="https://common-lisp.net/project/ecl/static/files/release/ecl-$portVersion.tgz"
14CHECKSUM_SHA256="b15a75dcf84b8f62e68720ccab1393f9611c078fcd3afdd639a1086cad010900"
15PATCHES="ecl-21.2.1.patchset"
16
17ARCHITECTURES="all ?x86_gcc2"
18SECONDARY_ARCHITECTURES="?x86"
19
20PROVIDES="
21	ecl$secondaryArchSuffix = $portVersion
22	cmd:ecl$secondaryArchSuffix
23	cmd:ecl_config$secondaryArchSuffix
24	devel:libecl$secondaryArchSuffix
25	lib:libecl$secondaryArchSuffix
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	lib:libatomic_ops$secondaryArchSuffix
30	lib:libffi$secondaryArchSuffix
31	lib:libgc$secondaryArchSuffix
32	lib:libgmp$secondaryArchSuffix
33	"
34
35BUILD_REQUIRES="
36	haiku${secondaryArchSuffix}_devel
37	devel:libatomic_ops$secondaryArchSuffix
38	devel:libffi$secondaryArchSuffix
39	devel:libgc$secondaryArchSuffix
40	devel:libgmp$secondaryArchSuffix
41	"
42BUILD_PREREQUIRES="
43	cmd:autoreconf
44	cmd:gcc$secondaryArchSuffix
45	cmd:libtoolize$secondaryArchSuffix
46	cmd:make
47	cmd:which
48	"
49
50BUILD()
51{
52	cd src
53	libtoolize --force --copy --install
54	autoreconf -fi
55	cd ..
56
57	runConfigure ./configure \
58		--enable-threads=no \
59		--with-dffi=system \
60		--enable-boehm=system
61
62	make $jobArgs
63}
64
65INSTALL()
66{
67	make install
68
69	for i in COPYING LICENSE TAGS ecl_min dpp build-stamp; do
70		rm $prefix/lib/ecl-$portVersion/$i
71	done
72}
73
74TEST()
75{
76	make check
77}
78