2013-03-11 07:20:26 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.47 2013/03/11 11:20:28 espie Exp $
|
2012-11-30 10:16:48 -05:00
|
|
|
|
|
|
|
BROKEN-mips64 = undefined reference to `__sync_fetch_and_add_8'
|
2012-12-20 10:52:36 -05:00
|
|
|
BROKEN-hppa = undefined reference to `__sync_fetch_and_add_4'
|
|
|
|
BROKEN-sparc64 = infinite loop or aborts during build
|
2006-10-09 06:20:24 -04:00
|
|
|
|
2010-12-22 18:24:21 -05:00
|
|
|
COMMENT = Prolog for the real world
|
|
|
|
|
2012-10-01 17:16:00 -04:00
|
|
|
V = 6.2.2
|
2008-08-29 08:30:21 -04:00
|
|
|
DISTNAME = pl-$V
|
2010-07-24 19:05:08 -04:00
|
|
|
PKGNAME = swi-prolog-$V
|
2013-02-01 11:34:36 -05:00
|
|
|
REVISION = 1
|
2010-12-22 18:24:21 -05:00
|
|
|
CATEGORIES = lang
|
2006-10-09 06:20:24 -04:00
|
|
|
|
2012-10-01 17:16:00 -04:00
|
|
|
SHARED_LIBS = pl 4.0
|
2006-10-09 06:20:24 -04:00
|
|
|
|
2010-12-22 18:24:21 -05:00
|
|
|
HOMEPAGE = http://www.swi-prolog.org/
|
|
|
|
|
|
|
|
# LGPLv2.1
|
2008-08-29 08:30:21 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
2010-12-27 11:07:08 -05:00
|
|
|
MASTER_SITES = ${HOMEPAGE}/download/stable/src/ \
|
|
|
|
http://distfiles.nl/
|
2010-12-22 18:24:21 -05:00
|
|
|
|
2008-08-29 08:30:21 -04:00
|
|
|
CONFIGURE_STYLE = autoconf
|
2012-10-01 17:16:00 -04:00
|
|
|
AUTOCONF_VERSION = 2.68
|
2008-08-29 08:30:21 -04:00
|
|
|
AUTOCONF_DIR = ${WRKSRC}/src ${WRKSRC}/packages/semweb
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/src \
|
2007-06-10 19:32:27 -04:00
|
|
|
${WRKSRC}/packages/jpl \
|
|
|
|
${WRKSRC}/packages/xpce/src
|
2011-08-18 06:51:08 -04:00
|
|
|
|
2012-10-01 17:16:00 -04:00
|
|
|
CONFIGURE_ENV += CIFLAGS=' -I${LOCALBASE}/include' \
|
|
|
|
LDFLAGS=' -L${LOCALBASE}/lib' \
|
|
|
|
COFLAGS='-O2 -pipe -g'
|
|
|
|
|
2008-08-29 08:30:21 -04:00
|
|
|
CONFIGURE_ARGS = --enable-mt \
|
2006-10-09 06:20:24 -04:00
|
|
|
--disable-custom-flags \
|
|
|
|
--with-world \
|
2011-04-11 02:43:39 -04:00
|
|
|
--with-jpeg=${LOCALBASE} \
|
2006-10-09 06:20:24 -04:00
|
|
|
${CONFIGURE_SHARED}
|
|
|
|
|
2008-08-29 08:30:21 -04:00
|
|
|
USE_GMAKE = Yes
|
2010-12-22 18:24:21 -05:00
|
|
|
USE_GROFF = Yes
|
2006-10-09 06:20:24 -04:00
|
|
|
|
2008-08-29 08:30:21 -04:00
|
|
|
MAKE_FLAGS = SONAMEOPT= \
|
2007-01-27 12:35:46 -05:00
|
|
|
SHAREDV=libpl.so.${LIBpl_VERSION}
|
2006-10-09 06:20:24 -04:00
|
|
|
|
2011-04-11 02:43:39 -04:00
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
2011-09-17 12:06:32 -04:00
|
|
|
LIB_DEPENDS = devel/gmp \
|
2012-10-01 17:16:00 -04:00
|
|
|
devel/libexecinfo \
|
|
|
|
graphics/jpeg
|
2011-08-18 06:51:08 -04:00
|
|
|
|
2012-10-01 17:16:00 -04:00
|
|
|
WANTLIB += ICE SM X11 Xext Xft Xinerama Xpm Xt c crypto execinfo
|
|
|
|
WANTLIB += expat fontconfig freetype gmp jpeg m ncursesw pthread
|
|
|
|
WANTLIB += readline ssl z
|
2010-12-22 18:24:21 -05:00
|
|
|
|
|
|
|
FULLARCH = ${MACHINE_ARCH:S/amd64/x86_64/}-openbsd${OSREV}
|
2012-10-01 17:16:00 -04:00
|
|
|
SUBST_VARS += V BOOT FULLARCH
|
2011-04-28 15:18:22 -04:00
|
|
|
|
2008-08-29 07:52:20 -04:00
|
|
|
post-install:
|
2011-09-17 12:06:32 -04:00
|
|
|
cd ${PREFIX}/lib && \
|
2012-10-01 17:16:00 -04:00
|
|
|
ln -sf swipl-$V/lib/${FULLARCH}/libpl.so.${LIBpl_VERSION}
|
|
|
|
|
|
|
|
# Swipl multithreading flaky at best on OpenBSD.
|
|
|
|
# We are not sure if this is our threading implementation or their code.
|
|
|
|
# The following tests fail (hang). We remove them to allow the rest
|
|
|
|
# of the tests to execute atleast.
|
|
|
|
# When updating, uncomment these to see if they still fail.
|
2013-03-11 07:20:26 -04:00
|
|
|
pre-test:
|
2012-10-01 17:16:00 -04:00
|
|
|
rm -f ${WRKBUILD}/src/Tests/thread/test_signal.pl
|
|
|
|
rm -f ${WRKBUILD}/src/Tests/core/test_resource_error.pl
|
2008-08-29 07:52:20 -04:00
|
|
|
|
2006-10-09 06:20:24 -04:00
|
|
|
.include <bsd.port.mk>
|
2006-10-18 13:56:14 -04:00
|
|
|
|
|
|
|
.for _m in ${MACHINE_ARCH}
|
|
|
|
. if !empty(LP64_ARCHS:M${_m})
|
2008-08-29 08:30:21 -04:00
|
|
|
BOOT = boot64
|
2006-10-18 13:56:14 -04:00
|
|
|
. endif
|
|
|
|
.endfor
|
2008-08-29 08:30:21 -04:00
|
|
|
BOOT ?= boot32
|