algol68g-2.8.5.recipe revision ae94b127
1SUMMARY="Algol 68 compiler and interpreter"
2DESCRIPTION="Algol68G is an implementation of Algol 68 as defined by the \
3Revised Report. It ranks among the most complete implementations of the \
4language."
5HOMEPAGE="https://jmvdveer.home.xs4all.nl/en.algol-68-genie.html"
6COPYRIGHT="2001-2018 J. Marcel van der Veer"
7LICENSE="GNU LGPL v3"
8REVISION="2"
9SOURCE_URI="https://jmvdveer.home.xs4all.nl/algol68g-$portVersion.tar.gz"
10CHECKSUM_SHA256="0f757c64a8342fe38ec501bde68b61d26d051dffd45742ca58b7288a99c7e2d8"
11SOURCE_URI_2="http://downloads.sourceforge.net/project/algol68/algol68g/algol68g-2.0.0/a68g-doc.pdf#noarchive"
12CHECKSUM_SHA256_2="064b6761207d937aa704d245fc871a072f5a33ea23a346cb136ec8b2078ea321"
13PATCHES="algol68g-$portVersion.patchset"
14
15ARCHITECTURES="!x86_gcc2 x86 x86_64"
16SECONDARY_ARCHITECTURES="x86"
17
18commandSuffix=$secondaryArchSuffix
19commandBinDir=$binDir
20if [ "$targetArchitecture" = x86_gcc2 ]; then
21	commandSuffix=
22	commandBinDir=$prefix/bin
23fi
24
25PROVIDES="
26	algol68g$secondaryArchSuffix = $portVersion
27	cmd:a68g$commandSuffix
28	"
29REQUIRES="
30	haiku$secondaryArchSuffix
31	lib:libgsl$secondaryArchSuffix
32	lib:libgslcblas$secondaryArchSuffix
33	lib:libncurses$secondaryArchSuffix
34	lib:libplot$secondaryArchSuffix
35	lib:libpq$secondaryArchSuffix
36	"
37
38BUILD_REQUIRES="
39	haiku${secondaryArchSuffix}_devel
40	devel:libgsl$secondaryArchSuffix
41	devel:libgslcblas$secondaryArchSuffix
42	devel:libncurses$secondaryArchSuffix
43	devel:libplot$secondaryArchSuffix
44	devel:libpq$secondaryArchSuffix
45	"
46BUILD_PREREQUIRES="
47	cmd:aclocal
48	cmd:automake
49	cmd:autoreconf
50	cmd:awk
51	cmd:gcc$secondaryArchSuffix
52	cmd:make
53	cmd:pkg_config$secondaryArchSuffix
54	"
55
56defineDebugInfoPackage algol68g$secondaryArchSuffix \
57	"$commandBinDir"/a68g
58
59BUILD()
60{
61	# TODO: compiler still not enabled
62	autoreconf -fi
63	LDFLAGS="-lnetwork" runConfigure --omit-dirs binDir ./configure \
64		--bindir="$commandBinDir" \
65		--enable-compiler
66	make $jobArgs
67}
68
69INSTALL()
70{
71	make install
72	mkdir -p $developDocDir
73	cp $sourceDir2/a68g-doc.pdf $developDocDir
74}
75
76TEST()
77{
78	#make check #test-set not provided
79	true
80}
81