Update swi_prolog recipe for PM. (and small fix for gmp)

This commit is contained in:
Ed Robbins
2014-01-07 15:52:48 +00:00
parent b5001b20c4
commit ed4bfc0f68
2 changed files with 59 additions and 17 deletions

View File

@@ -1,32 +1,74 @@
DESCRIPTION="SWI Prolog. Stable and free standard Prolog implementation"
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.2.0.tar.gz"
CHECKSUM_MD5="969ed2e00b7afc1537fbf19d667333c5"
LICENSE="
GNU LGPL v2.1
SWI-Prolog
"
COPYRIGHT="1985-2012, University of Amsterdam, VU University Amsterdam"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/gmp >= 5.0.5
sys-libs/readline >= 6.2"
ARCHITECTURES="x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
SOURCE_DIR="pl-6.2.0"
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 pl-6.2.0/src
libtoolize -fci
autoreconf
LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/common/include ./configure --prefix=$(finddir B_COMMON_DIRECTORY)
make
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 pl-6.2.0/src
make install
cd src
make install
}
TEST()
{
cd pl-6.2.0/src
make check
cd src
make check
}
LICENSE="GNU LGPL v2.1
SWI-Prolog"
COPYRIGHT="1985-2012, University of Amsterdam, VU University Amsterdam"

View File

@@ -7,7 +7,7 @@ except the ones implied by the available memory in the machine GMP runs on \
(operand dimension limit is 2^(32)-1 bits on 32-bit machines and 2^37 bits on \
64-bit machines). GMP has a rich set of functions, and the functions have a \
regular interface. The basic interface is for C but wrappers exist for other \
languages including Ada, C++, C#, OCaml, Perl, PHP, and Python. \
languages including Ada, C++, C#, OCaml, Perl, PHP, and Python.
"
HOMEPAGE="http://gmplib.org/"
SRC_URI="ftp://ftp.gmplib.org/pub/gmp-5.1.1/gmp-5.1.1.tar.xz"