Changeset View
Changeset View
Standalone View
Standalone View
lang/gprolog/Makefile
# Created by: Douglas Anestad <yotta@dougdidit.com> | # Created by: Douglas Anestad <yotta@dougdidit.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gprolog | PORTNAME= gprolog | ||||
PORTVERSION= 1.4.4 | PORTVERSION= 1.4.5 | ||||
PORTREVISION= 8 | |||||
CATEGORIES= lang | CATEGORIES= lang | ||||
MASTER_SITES= http://www.gprolog.org/ | MASTER_SITES= http://www.gprolog.org/ | ||||
MAINTAINER= ports@FreeBSD.org | MAINTAINER= ports@FreeBSD.org | ||||
COMMENT= Free Prolog compiler | COMMENT= Free Prolog compiler | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
BROKEN= fails to build | BROKEN= fails to build | ||||
DEPRECATED= Abandonware upstream (more than five years), fails in various ways with remotely recent compilers | DEPRECATED= Abandonware upstream (more than five years), fails in various ways with remotely recent compilers | ||||
# Bumped EXPIRATION date due to new release | # Bumped EXPIRATION date due to new release | ||||
# and efforts to get it in: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231393 | # and efforts to get it in: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231393 | ||||
EXPIRATION_DATE= 2019-08-31 | EXPIRATION_DATE= 2019-08-31 | ||||
ONLY_FOR_ARCHS= i386 amd64 | ONLY_FOR_ARCHS= amd64 i386 | ||||
CFLAGS+= -Ofast | |||||
USES= gmake | |||||
USE_GCC= any | |||||
CFLAGS+= -O3 # gcc5/gcc6 + -O2 = pl2wam hangs | |||||
PLIST_SUB= GPROLOG_VER=${PORTVERSION} | PLIST_SUB= GPROLOG_VER=${PORTVERSION} | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --with-c-flags="${CFLAGS}" \ | CONFIGURE_ARGS= --with-c-flags="${CFLAGS}" \ | ||||
--with-doc-dir="${DOCSDIR}" \ | --with-doc-dir="${DOCSDIR}" \ | ||||
--with-examples-dir="${EXAMPLESDIR}" | --with-examples-dir="${EXAMPLESDIR}" \ | ||||
--disable-regs | |||||
CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/}-portbld-${OPSYS:tl}${OSREL} | CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/}-portbld-${OPSYS:tl}${OSREL} | ||||
MAKE_JOBS_UNSAFE= yes | MAKE_JOBS_UNSAFE= yes | ||||
WRKSRC_SUBDIR= src | WRKSRC_SUBDIR= src | ||||
OPTIONS_DEFINE= FD DOCS EXAMPLES | OPTIONS_DEFINE= FD DOCS EXAMPLES | ||||
OPTIONS_DEFAULT= FD | OPTIONS_DEFAULT= FD | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
FD_DESC= Enable finite domain constraint solver | FD_DESC= Enable finite domain constraint solver | ||||
FD_CONFIGURE_OFF= --disable-fd-solver | FD_CONFIGURE_OFF= --disable-fd-solver | ||||
.include <bsd.port.options.mk> | |||||
# Disable registers on i386. This fixes build with gcc6. | |||||
# See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852008 | |||||
.if ${ARCH} == i386 | |||||
CONFIGURE_ARGS+= --disable-regs | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} \ | @${REINPLACE_CMD} \ | ||||
'/LINKS_DIR/s|$$(INSTALL_DIR)|../${PORTNAME}-${PORTVERSION}|' \ | '/LINKS_DIR/s|$$(INSTALL_DIR)|../${PORTNAME}-${PORTVERSION}|' \ | ||||
${WRKSRC}/Makefile.in | ${WRKSRC}/Makefile.in | ||||
post-install-EXAMPLES-off: | |||||
${RM} -r ${STAGEDIR}${EXAMPLESDIR} | |||||
post-install-DOCS-off: | |||||
${RM} -r ${STAGEDIR}${DOCSDIR} | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |