2018-12-02 11:42:25 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.27 2018/12/02 11:42:25 sthen Exp $
|
|
|
|
|
|
|
|
BROKEN-i386= various errors from gplc during build (segv, "fatal error", etc at various different points)
|
2004-10-07 18:30:26 +00:00
|
|
|
|
2018-11-23 09:17:36 +00:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386 powerpc sparc64
|
2004-09-26 14:48:29 +00:00
|
|
|
|
|
|
|
COMMENT= Prolog compiler
|
|
|
|
|
2018-11-12 19:15:40 +00:00
|
|
|
DISTNAME= gprolog-1.4.5
|
2018-11-23 09:23:14 +00:00
|
|
|
REVISION= 3
|
2018-11-23 09:11:15 +00:00
|
|
|
|
2004-09-26 14:48:29 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
|
2009-12-27 19:30:21 +00:00
|
|
|
HOMEPAGE= http://www.gprolog.org/
|
2004-09-26 14:48:29 +00:00
|
|
|
|
2009-12-27 19:30:21 +00:00
|
|
|
# GPLv2
|
2004-09-26 14:48:29 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2009-12-27 19:30:21 +00:00
|
|
|
|
2005-02-24 13:20:41 +00:00
|
|
|
WANTLIB= c m
|
2004-09-26 14:48:29 +00:00
|
|
|
|
2018-08-19 23:45:00 +00:00
|
|
|
MASTER_SITES= http://www.gprolog.org/ \
|
|
|
|
http://www.gprolog.org/old_versions/ \
|
|
|
|
${MASTER_SITE_GNU:=gprolog/}
|
2004-09-26 14:48:29 +00:00
|
|
|
|
2017-08-22 10:27:33 +00:00
|
|
|
COMPILER = base-gcc ports-gcc
|
2017-07-26 21:28:51 +00:00
|
|
|
COMPILER_LANGS = c
|
2018-11-23 09:13:40 +00:00
|
|
|
CONFIGURE_STYLE= gnu dest no-autoheader
|
2004-09-26 14:48:29 +00:00
|
|
|
|
2009-12-27 19:30:21 +00:00
|
|
|
CONFIGURE_ARGS+= --with-install-dir='${PREFIX}/libdata/gprolog' \
|
2004-09-26 14:48:29 +00:00
|
|
|
--without-links-dir \
|
|
|
|
--disable-ebp \
|
|
|
|
--disable-piped-consult \
|
|
|
|
--disable-gui-console \
|
2009-12-27 19:30:21 +00:00
|
|
|
--with-examples-dir='${PREFIX}/share/examples/gprolog' \
|
|
|
|
--with-html-dir='${PREFIX}/share/doc/gprolog/html' \
|
|
|
|
--with-doc-dir='${PREFIX}/share/doc/gprolog' \
|
2017-06-08 15:25:57 +00:00
|
|
|
--with-c-flags="${CFLAGS}"
|
2018-11-23 09:23:14 +00:00
|
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
|
|
|
|
|
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
.if ${MACHINE_ARCH:Mi386}
|
|
|
|
LDFLAGS+= -Wl,-znotext
|
|
|
|
.endif
|
2009-12-27 19:30:21 +00:00
|
|
|
|
2004-09-26 14:48:29 +00:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
2004-09-26 15:21:13 +00:00
|
|
|
post-install:
|
|
|
|
for i in gplc hexgplc gprolog pl2wam wam2ma ma2asm fd2c; do \
|
2004-09-26 15:32:27 +00:00
|
|
|
ln -sf ${TRUEPREFIX}/libdata/gprolog/bin/$$i ${PREFIX}/bin/$$i; \
|
2004-09-26 15:21:13 +00:00
|
|
|
done
|
2004-09-26 14:48:29 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|