aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gprolog/Makefile
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2003-06-23 06:09:39 +0800
committererwin <erwin@FreeBSD.org>2003-06-23 06:09:39 +0800
commit0c91c4310b5dcdfc3e23fcd5df61f2c0291ec1b9 (patch)
treea8e9dea1f8fc8f4b098044a835013c80417d0e22 /lang/gprolog/Makefile
parent593b2b97e175eae3f26908e0ab1d45895d52e99b (diff)
downloadfreebsd-ports-gnome-0c91c4310b5dcdfc3e23fcd5df61f2c0291ec1b9.tar.gz
freebsd-ports-gnome-0c91c4310b5dcdfc3e23fcd5df61f2c0291ec1b9.tar.zst
freebsd-ports-gnome-0c91c4310b5dcdfc3e23fcd5df61f2c0291ec1b9.zip
- Fix build
- Support CFLAGS properly - Fix COMMENT format PR: 53390 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'lang/gprolog/Makefile')
-rw-r--r--lang/gprolog/Makefile25
1 files changed, 12 insertions, 13 deletions
diff --git a/lang/gprolog/Makefile b/lang/gprolog/Makefile
index 4f60e3afb828..b4979a8cd4a0 100644
--- a/lang/gprolog/Makefile
+++ b/lang/gprolog/Makefile
@@ -12,21 +12,20 @@ MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-COMMENT= A free Prolog compiler developed by Daniel Diaz
+COMMENT= A free Prolog compiler
-BROKEN= "Does not build"
-
-.include <bsd.port.pre.mk>
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
-CONFIGURE_ARGS= --disable-linedit
+USE_REINPLACE= yes
+USE_GMAKE= yes
+USE_AUTOCONF_VER= 253
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS= --disable-linedit --with-c-flags="${CFLAGS}"
-PLIST_SUB+= GPROLOG_VER=1.2.16
+PLIST_SUB+= GPROLOG_VER=${PORTVERSION}
-GNU_CONFIGURE= yes
-AUTOCONF= autoconf
-USE_AUTOCONF_VER= 253
-AUTOCONF_DIR= ${LOCALBASE}/share/autoconf
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
-USE_GMAKE= yes
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/EnginePl/machine.c
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>