the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: swi-prolog
Version: 5.8.1
Revision: 2
Source: http://www.swi-prolog.org/download/stable/src/pl-%v.tar.gz
Source-MD5: 8f113e1d994a34333f8e5256d49f68e0
SourceRename: %N-%v.tar.gz
SourceDirectory: pl-%v
BuildDepends: freetype219, gmp, libjpeg, libncursesw5, system-openssl-dev, readline5, libncursesw5, unixodbc2, x11-dev
# should remove junit dep in 64bit mode (hence also comment out "export JUNIT=..." below..), since I can't build junit there..
# assume junit only TestDepends (w/o that export I run into many java errors in make check)
Depends: %N-shlibs (= %v-%r)
PatchScript: <<
sed -i.bak -e 's/ARCH=.*/ARCH=%m-darwin/' -e 's,-no-cpp-precomp,-Wall,' \
-e 's;-flat_namespace -undefined suppress;-bundle_loader %b/src/swipl -undefined dynamic_lookup -Wl,-x -dead-strip;' \
src/configure{,.in}
perl -pi -e 's/( \$\(LDFLAGS\))(.*)/\2\1/' src/Makefile.in src/rc/Makefile.in
<<
SetCPPFLAGS: -I%p/lib/system-openssl/include
SetLDFLAGS: -L%p/lib/system-openssl/lib
ConfigureParams: --mandir=%p/share/man --enable-shared --with-world --x-i=/usr/X11R6/include --x-l=/usr/X11R6/lib
CompileScript: <<
#!/bin/sh -ev
# export JUNIT=%p/share/java/junit/junit.jar
export CPATH=%p/include; export LIBRARY_PATH=%p/lib
export PKG_CONFIG_PATH=%p/lib/system-openssl/lib/pkgconfig:${PKG_CONFIG_PATH}
%{default_script}
<<
#InfoTest: <<
# # To run tests, run the tests under x11, and not from fink (since fink destroys your environment, a.o. DISPLAY)
# TestScript: make -ik check || :
#<<
InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/share/doc/%N
mv %i/lib/swipl-%v/doc/Manual %i/share/doc/%N
rm -fR %i/lib/swipl-%v/doc
ln -s ../%N-shlibs/COPYING %i/share/doc/%N
<<
DocFiles: ChangeLog PORTING README
Splitoff: <<
Package: %N-dev
BuildDependsOnly: true
Depends: %N-shlibs (= %v-%r)
Files: lib/pkgconfig
InstallScript: <<
#!/bin/sh -ev
mkdir -p %i/lib %i/include %i/share/doc
ln -s swipl-%v/lib/%m-darwin %i/lib/%N
ln -s %N %i/lib/swipl
ln -s %N/libpl.dylib %i/lib
for f in %I/lib/swipl-%v/include/*.h
do ln -s %p/lib/swipl-%v/include/`basename $f` %i/include; done
ln -s %p/lib/swipl-%v/xpce/include/pce %i/include
ln -s %N-shlibs %i/share/doc/%n
<<
<<
Splitoff2: <<
Package: %N-shlibs
Depends: freetype219-shlibs, gmp-shlibs, libjpeg-shlibs, libncursesw5-shlibs, readline5-shlibs, unixodbc2-shlibs, x11-shlibs
Files: lib
Shlibs: %p/lib/swipl-%v/lib/%m-darwin/libpl.dylib 0.0.0 %n (>= 5.6.64-1)
DocFiles: COPYING
<<
License: LGPL
Description: SWI Prolog interpreter
DescDetail: <<
SWI-Prolog offers a comprehensive Free Software Prolog environment,
licensed under the Lesser GNU Public License. Together with its graphics
toolkit XPCE, its development started in 1987 and has been driven by the
needs for real-world applications. These days SWI-Prolog is widely used
in research and education as well as for commercial applications.
<<
DescPackaging: <<
Packaging is an ersatz for FsHS compliance, and for Shlibs policy
compliance, but hopefully functionally equivalent.
Upstream should be pressed to facilatate FHS compliance,
and if possible before we have to number %n...
(There are already pkgs linking to the dylib, even with the old version _ eg, ppl)
And, once things are correct, probably a %N-lite variant (resurrecting
the former fink pkg with that name IIRC).
<<
DescPort: <<
Without the patch to the link commands, 'essentially' no linking was done:
no undefined symbol had a "from"; with it, all have.
This still has to be communicated upstream.
There do remain errors when running make check; please contribute
fixes _ to the info-file and upstream.
Formerly maintained by Rob Braun.
<<
Maintainer: Adrian Prantl
Homepage: http://www.swi-prolog.org/