ports/53390: Update port: lang/gprolog

KATO Tsuguru tkato at prontomail.com
Mon Jun 16 23:30:21 UTC 2003


>Number:         53390
>Category:       ports
>Synopsis:       Update port: lang/gprolog
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 16 16:30:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix build
- Support CFLAGS properly
- Fix COMMENT format

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/lang/gprolog/Makefile lang/gprolog/Makefile
--- /usr/ports/lang/gprolog/Makefile	Sun May 18 22:36:26 2003
+++ lang/gprolog/Makefile	Tue Jun 17 00:45:24 2003
@@ -12,21 +12,20 @@
 MASTER_SITE_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	ports at 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>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list