openbsd-ports/lang/swi-prolog/Makefile

81 lines
2.0 KiB
Makefile
Raw Normal View History

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'
BROKEN-hppa = undefined reference to `__sync_fetch_and_add_4'
BROKEN-sparc64 = infinite loop or aborts during build
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
PKGNAME = swi-prolog-$V
2013-02-01 11:34:36 -05:00
REVISION = 1
CATEGORIES = lang
2012-10-01 17:16:00 -04:00
SHARED_LIBS = pl 4.0
HOMEPAGE = http://www.swi-prolog.org/
# LGPLv2.1
2008-08-29 08:30:21 -04:00
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${HOMEPAGE}/download/stable/src/ \
http://distfiles.nl/
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 \
${WRKSRC}/packages/jpl \
${WRKSRC}/packages/xpce/src
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 \
--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}
LIB_DEPENDS = devel/gmp \
2012-10-01 17:16:00 -04:00
devel/libexecinfo \
graphics/jpeg
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
FULLARCH = ${MACHINE_ARCH:S/amd64/x86_64/}-openbsd${OSREV}
2012-10-01 17:16:00 -04:00
SUBST_VARS += V BOOT FULLARCH
post-install:
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
.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