openbsd-ports/lang/gprolog/Makefile
sthen 945fa9eb2f Fix segfault during build with PIE-by-default on i386 by not using %ebx there.
Not quite sure why this is needed as it looks to be built without PIE
anyway, so XXX comment added to patch, but this makes things work.

N.B. regression tests fail, "error: objects are initialised from 1st to last
(should be from last to 1st) - undefine constant OBJ_CHAIN_REVERSE_ORDER in
obj_chain.h" but this is not new and they also fail on amd64.

Regen distinfo while there.
2014-01-08 11:54:12 +00:00

46 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.16 2014/01/08 11:54:12 sthen Exp $
ONLY_FOR_ARCHS= amd64 i386
COMMENT= Prolog compiler
DISTNAME= gprolog-1.3.1
REVISION= 0
CATEGORIES= lang
HOMEPAGE= http://www.gprolog.org/
MAINTAINER= Nuno Morgadinho <nuno.morgadinho@gmail.com>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c m
MASTER_SITES= ${MASTER_SITE_GNU:=gprolog/}
AUTOCONF_VERSION= 2.61
CONFIGURE_STYLE= autoconf dest no-autoheader
CONFIGURE_ARGS+= --with-install-dir='${PREFIX}/libdata/gprolog' \
--without-links-dir \
--disable-ebp \
--disable-piped-consult \
--disable-gui-console \
--with-examples-dir='${PREFIX}/share/examples/gprolog' \
--with-html-dir='${PREFIX}/share/doc/gprolog/html' \
--with-doc-dir='${PREFIX}/share/doc/gprolog' \
--with-c-flags="${CFLAGS} -fno-pie -nopie"
WRKDIST= ${WRKDIR}/${DISTNAME}/src
TEST_DEPENDS= textproc/gdiff
post-install:
for i in gplc hexgplc gprolog pl2wam wam2ma ma2asm fd2c; do \
ln -sf ${TRUEPREFIX}/libdata/gprolog/bin/$$i ${PREFIX}/bin/$$i; \
done
.include <bsd.port.mk>