openbsd-ports/lang/swi-prolog/Makefile

85 lines
2.0 KiB
Makefile
Raw Normal View History

2012-06-21 09:56:57 -04:00
# $OpenBSD: Makefile,v 1.40 2012/06/21 13:56:57 sthen Exp $
COMMENT = Prolog for the real world
V = 5.10.5
XV = 6.6.66
2008-08-29 08:30:21 -04:00
DISTNAME = pl-$V
PKGNAME = swi-prolog-$V
2012-06-21 09:56:57 -04:00
REVISION = 1
CATEGORIES = lang
SHARED_LIBS = pl 3.0
HOMEPAGE = http://www.swi-prolog.org/
# LGPLv2.1
2008-08-29 08:30:21 -04:00
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${HOMEPAGE}/download/stable/src/ \
http://distfiles.nl/
2008-08-29 08:30:21 -04:00
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.67
2008-08-29 08:30:21 -04:00
AUTOCONF_DIR = ${WRKSRC}/src ${WRKSRC}/packages/semweb
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/src \
${WRKSRC}/packages/jpl \
${WRKSRC}/packages/xpce/src
CONFIGURE_ENV += LDFLAGS=-L${LOCALBASE}/lib \
CPPFLAGS=-I${LOCALBASE}/include
2008-08-29 08:30:21 -04:00
CONFIGURE_ARGS = --enable-mt \
--disable-custom-flags \
--with-world \
2011-04-11 02:43:39 -04:00
--with-jpeg=${LOCALBASE} \
${CONFIGURE_SHARED}
2008-08-29 08:30:21 -04:00
USE_GMAKE = Yes
USE_GROFF = Yes
2008-08-29 08:30:21 -04:00
MAKE_FLAGS = SONAMEOPT= \
SHAREDV=libpl.so.${LIBpl_VERSION}
2011-04-11 02:43:39 -04:00
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = graphics/jpeg
LIB_DEPENDS = devel/gmp \
devel/libexecinfo
WANTLIB += ICE SM X11 Xext Xft Xinerama Xpm Xt c crypto execinfo gmp
WANTLIB += jpeg m ncursesw pthread readline ssl z
FULLARCH = ${MACHINE_ARCH:S/amd64/x86_64/}-openbsd${OSREV}
SUBST_VARS = V XV FULLARCH BOOT
# warning: #warning "<malloc.h> is obsolete, use <stdlib.h>"
pre-patch:
find ${WRKSRC}/packages/{clib,sgml,xpce} -name '*.[ch]' | \
xargs fgrep -l malloc.h | \
while read i; do \
sed -e 's/malloc.h/stdlib.h/' $$i >$$i.bak && mv $$i.bak $$i; \
done
post-install:
cd ${PREFIX}/lib && \
ln -s swipl-$V/lib/${FULLARCH}/libpl.so.${LIBpl_VERSION}
mv ${PREFIX}/lib/swipl-${V}/xpce-${XV}/man/xpce-client.1 \
${PREFIX}/man/man1/
# XXX figure out why these tests fail
######pre-regress:
###### rm ${WRKBUILD}/src/Tests/thread/agc.pl
###### rm ${WRKBUILD}/src/Tests/thread/agc2.pl
.include <bsd.port.mk>
.for _m in ${MACHINE_ARCH}
. if !empty(LP64_ARCHS:M${_m})
2008-08-29 08:30:21 -04:00
BOOT = boot64
. endif
.endfor
2008-08-29 08:30:21 -04:00
BOOT ?= boot32