swi_prolog: new recipe from munchausen.

This commit is contained in:
Augustin Cavalier
2014-09-22 09:29:58 -04:00
parent 2d9073cf00
commit 1adeae0251
2 changed files with 72 additions and 32 deletions

View File

@@ -1,32 +0,0 @@
DESCRIPTION="SWI Prolog. Stable and free standard Prolog implementation"
HOMEPAGE="http://www.swi-prolog.org/"
SRC_URI="http://www.swi-prolog.org/download/stable/src/pl-6.0.2.tar.gz"
CHECKSUM_MD5="dcde1c50713317d0f5093dd2dedc1bd0"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/gmp >= 5.0.5
sys-libs/readline >= 6.2"
BUILD()
{
cd pl-6.0.2/src
libtoolize -fci
autoreconf
LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/common/include ./configure --prefix=$(finddir B_COMMON_DIRECTORY)
make
}
INSTALL()
{
cd pl-6.0.2/src
make install
}
TEST()
{
cd pl-6.0.2/src
make check
}
LICENSE="GNU LGPL v2.1
SWI-Prolog"
COPYRIGHT="1985-2010, University of Amsterdam, VU University Amsterdam"

View File

@@ -0,0 +1,72 @@
SUMMARY="SWI Prolog. Stable and free standard Prolog implementation"
DESCRIPTION="
SWI-Prolog is an open source implementation of the programming language Prolog, \
commonly used for teaching and semantic web applications. It has a rich set of \
features, libraries for constraint logic programming, multithreading, unit \
testing, GUI, interfacing to Java, ODBC and others, literate programming, a web \
server, SGML, RDF, RDFS, developer tools (including an IDE with a GUI debugger \
and GUI profiler), and extensive documentation.
"
HOMEPAGE="http://www.swi-prolog.org/"
SRC_URI="http://www.swi-prolog.org/download/stable/src/pl-6.6.6.tar.gz"
CHECKSUM_SHA256="9f80bb274e2f31fd68b0acbe35982c012d5f8311dbe44ec1d8d04351a776996d"
LICENSE="
GNU LGPL v2.1
SWI-Prolog
"
COPYRIGHT="1985-2012, University of Amsterdam, VU University Amsterdam"
REVISION="1"
ARCHITECTURES="x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
SOURCE_DIR="pl-6.6.6"
PATCHES="swi_prolog-6.2.0.patch"
PROVIDES="
swi_prolog$secondaryArchSuffix = $portVersion
cmd:swipl$secondaryArchSuffix
cmd:swipl_rc$secondaryArchSuffix
cmd:swipl_ld$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libgmp$secondaryArchSuffix >= 10
lib:libreadline$secondaryArchSuffix >= 6
lib:libncurses$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libreadline$secondaryArchSuffix >= 6
devel:libgmp$secondaryArchSuffix >= 10
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:autoreconf
cmd:make
"
BUILD()
{
cd src
libtoolize -fci
autoreconf
LDFLAGS="-L/system/lib -L/system/develop/lib" CFLAGS="-I/system/develop/include -I/system/include" ./configure $configureDirArgs
#runConfigure ./configure
make
}
INSTALL()
{
cd src
make install
}
TEST()
{
cd src
make check
}