2012-10-25 10:32:46 +02:00
|
|
|
# Created by: Douglas Anestad <yotta@dougdidit.com>
|
2001-07-08 09:57:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gprolog
|
2014-07-14 13:24:32 +02:00
|
|
|
PORTVERSION= 1.4.4
|
2001-07-08 09:57:56 +02:00
|
|
|
CATEGORIES= lang
|
2014-07-14 13:24:32 +02:00
|
|
|
MASTER_SITES= http://www.gprolog.org/
|
2001-07-08 09:57:56 +02:00
|
|
|
|
2015-08-19 10:19:09 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-10-25 10:32:46 +02:00
|
|
|
COMMENT= Free Prolog compiler
|
2001-07-08 09:57:56 +02:00
|
|
|
|
2014-07-14 13:24:32 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2010-06-25 15:05:33 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2003-10-05 11:16:54 +02:00
|
|
|
|
2008-03-19 08:43:35 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
2001-07-08 09:57:56 +02:00
|
|
|
|
2014-05-26 16:47:56 +02:00
|
|
|
USES= gmake
|
2013-05-27 18:04:02 +02:00
|
|
|
USE_GCC= any
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2010-06-26 14:02:07 +02:00
|
|
|
CONFIGURE_ARGS= --with-c-flags="${CFLAGS}"
|
2010-06-25 15:05:33 +02:00
|
|
|
CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/}-portbld-freebsd${OSREL}
|
2014-07-14 13:24:32 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2002-11-23 01:43:33 +01:00
|
|
|
|
2003-06-23 00:09:39 +02:00
|
|
|
PLIST_SUB+= GPROLOG_VER=${PORTVERSION}
|
2002-11-23 09:20:10 +01:00
|
|
|
|
2014-07-15 17:49:33 +02:00
|
|
|
OPTIONS_DEFINE= FD DOCS EXAMPLES
|
2012-10-25 10:32:46 +02:00
|
|
|
OPTIONS_DEFAULT=FD
|
|
|
|
FD_DESC= Enable finite domain constraint solver
|
2010-06-26 14:02:07 +02:00
|
|
|
|
2012-10-25 10:32:46 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2006-08-29 09:39:34 +02:00
|
|
|
PORTDOCS= *
|
2010-06-26 14:02:07 +02:00
|
|
|
CONFIGURE_ARGS+=--with-doc-dir="${DOCSDIR}"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-doc-dir="${WRKDIR}/docs"
|
|
|
|
.endif
|
2006-08-29 09:39:34 +02:00
|
|
|
|
2012-10-25 10:32:46 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2010-06-26 14:02:07 +02:00
|
|
|
PORTEXAMPLES= *
|
|
|
|
CONFIGURE_ARGS+=--with-examples-dir="${EXAMPLESDIR}"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-examples-dir="${WRKDIR}/examples"
|
|
|
|
.endif
|
2004-09-18 19:49:31 +02:00
|
|
|
|
2012-10-25 10:32:46 +02:00
|
|
|
.if empty(PORT_OPTIONS:MFD)
|
2006-01-10 10:51:24 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-fd-solver
|
|
|
|
PLIST_SUB+= FD="@comment "
|
|
|
|
PKGNAMESUFFIX= -nofd
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FD=""
|
2005-11-21 02:32:18 +01:00
|
|
|
.endif
|
|
|
|
|
2014-07-14 13:24:32 +02:00
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -E 's|^(INSTALL_PROGRAM *= *install +-s +-m) 555|\1 755|g' ${WRKSRC}/Makefile
|
|
|
|
${REINPLACE_CMD} -E 's|^(INSTALL_DATA *= *install +-m) 444|\1 644|g' ${WRKSRC}/Makefile
|
|
|
|
${REINPLACE_CMD} 's|$$(LN_S) $$(INSTALL_DIR)/bin|$$(LN_S) ../${PORTNAME}-${PORTVERSION}/bin|g' ${WRKSRC}/Makefile
|
|
|
|
|
2012-10-25 10:32:46 +02:00
|
|
|
.include <bsd.port.mk>
|