2001-07-08 07:57:56 +00:00
|
|
|
# New ports collection makefile for: gprolog
|
|
|
|
# Date created: 30 June 2001
|
|
|
|
# Whom: Douglas Anestad <yotta@dougdidit.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gprolog
|
2005-02-17 15:58:21 +00:00
|
|
|
PORTVERSION= 1.2.18
|
2006-08-29 07:39:34 +00:00
|
|
|
PORTREVISION= 2
|
2001-07-08 07:57:56 +00:00
|
|
|
CATEGORIES= lang
|
2005-02-17 15:58:21 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN} ftp://ftp.inria.fr/INRIA/Projects/contraintes/gprolog/:doc
|
|
|
|
MASTER_SITE_SUBDIR= pool/main/g/${PORTNAME}
|
|
|
|
DISTFILES= ${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DISTFILES+= manual.pdf.gz:doc manual-html.tar.gz:doc
|
|
|
|
.endif
|
|
|
|
DIST_SUBDIR= gprolog
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}
|
2001-07-08 07:57:56 +00:00
|
|
|
|
2004-03-10 13:16:50 +00:00
|
|
|
MAINTAINER= vs@FreeBSD.org
|
2003-06-22 22:09:39 +00:00
|
|
|
COMMENT= A free Prolog compiler
|
2001-07-08 07:57:56 +00:00
|
|
|
|
2003-10-05 09:16:54 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2005-02-17 15:58:21 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}.orig/src/src
|
2001-07-08 07:57:56 +00:00
|
|
|
|
2006-03-16 09:43:10 +00:00
|
|
|
USE_GCC= 2.95
|
2003-06-22 22:09:39 +00:00
|
|
|
USE_GMAKE= yes
|
2005-11-15 06:52:12 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:253
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-02-17 15:58:21 +00:00
|
|
|
CONFIGURE_ARGS= --with-c-flags="${CFLAGS}" \
|
|
|
|
--with-doc-dir=none \
|
|
|
|
--with-examples-dir="${EXAMPLESDIR}"
|
2002-11-23 00:43:33 +00:00
|
|
|
|
2003-06-22 22:09:39 +00:00
|
|
|
PLIST_SUB+= GPROLOG_VER=${PORTVERSION}
|
2002-11-23 08:20:10 +00:00
|
|
|
|
2006-08-29 07:39:34 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2004-09-18 17:49:31 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-03-16 09:43:10 +00:00
|
|
|
.if defined(WITHOUT_FD)
|
2006-01-10 09:51:24 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-fd-solver
|
|
|
|
PLIST_SUB+= FD="@comment "
|
|
|
|
PKGNAMESUFFIX= -nofd
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FD=""
|
2005-11-21 01:32:18 +00:00
|
|
|
.endif
|
|
|
|
|
2005-02-17 15:58:21 +00:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${PORTSDIR}/Templates/config.sub ${WRKSRC}
|
|
|
|
|
2003-06-22 22:09:39 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/EnginePl/machine.c
|
2001-07-08 07:57:56 +00:00
|
|
|
|
2005-02-17 15:58:21 +00:00
|
|
|
post-install:
|
|
|
|
. if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@cd ${DOCSDIR} && ${GZIP_CMD} -cd ${_DISTDIR}/manual.pdf.gz >manual.pdf
|
|
|
|
@cd ${DOCSDIR} && ${TAR} zxf ${_DISTDIR}/manual-html.tar.gz
|
2006-08-29 07:39:34 +00:00
|
|
|
@${FIND} ${DOCSDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
|
|
|
|
@${FIND} ${DOCSDIR}/ -type f -exec ${CHOWN} ${SHAREOWN}:${SHAREGRP} {} \;
|
2005-02-17 15:58:21 +00:00
|
|
|
. endif
|
|
|
|
|
2004-09-18 17:49:31 +00:00
|
|
|
.include <bsd.port.post.mk>
|