aboutsummaryrefslogtreecommitdiff
path: root/lang/gambit-c/Makefile
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-08-28 06:36:32 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-08-28 06:36:32 +0000
commiteff7a41a89a529719ab1daaefe8fa30f3181ad15 (patch)
tree3885784baf7be55cfbbb571ebc28f2cc6f782b0a /lang/gambit-c/Makefile
parent3968deee88b577b69f23b2c00b7c3ef3d69fabda (diff)
Update to version 4.7.3.
PR: ports/193039 Submitted by: Ports Fury.
Notes
Notes: svn path=/head/; revision=366381
Diffstat (limited to 'lang/gambit-c/Makefile')
-rw-r--r--lang/gambit-c/Makefile57
1 files changed, 28 insertions, 29 deletions
diff --git a/lang/gambit-c/Makefile b/lang/gambit-c/Makefile
index 609f4b9aa41e..86b06366a7b3 100644
--- a/lang/gambit-c/Makefile
+++ b/lang/gambit-c/Makefile
@@ -2,51 +2,50 @@
# $FreeBSD$
PORTNAME= gambit-c
-DISTVERSION= v4_6_6
+DISTVERSION= v4_7_3
PORTEPOCH= 1
CATEGORIES= lang
-MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/
+MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.7/source/
DISTNAME= gambc-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Gambit programming system where the compiler generates portable C code
-LICENSE= APACHE20
+LICENSE= APACHE20 LGPL21
+LICENSE_COMB= dual
-MAN1= gsi.1
-
-USES= gmake tar:tgz
+USES= compiler gmake tar:tgz
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-single-host --enable-gcc-opts
-CONFIGURE_ARGS+=--prefix=${PREFIX} --docdir=${PREFIX}/share/doc/gambit-c
-CONFIGURE_ARGS+=--libdir=${PREFIX}/lib/gambit-c/ --includedir=${PREFIX}/include/gambit-c
-CONFIGURE_ARGS+=--enable-interpreter-name=gsi-gambit --enable-compiler-name=gsc-gambit
+CONFIGURE_ARGS= --enable-single-host \
+ --enable-gcc-opts \
+ --docdir=${DOCSDIR} \
+ --includedir=${PREFIX}/include/gambit-c \
+ --libdir=${PREFIX}/lib/gambit-c \
+ --enable-compiler-name=gsc-gambit \
+ --enable-interpreter-name=gsi-gambit
+MAKEFILE= makefile
+USE_LDCONFIG= ${PREFIX}/lib/gambit-c
INFO= gambit-c
+OPTIONS_DEFINE= DOCS
-USE_LDCONFIG= ${PREFIX}/lib/gambit-c
-
-PLIST_SUB+= GSI_INC=include/gambit-c
-PLIST_SUB+= GSI_DOC=share/doc/gambit-c
-PLIST_SUB+= GSI_LIB=lib/gambit-c
+.include <bsd.port.pre.mk>
+.if ${COMPILER_TYPE} == gcc
# This is needed because 4.2 < gcc -v < 4.4 has optimisations that make the
# build take more than 20Gb of virtual memory.
CFLAGS+= -fno-move-loop-invariants
+.endif
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/makefile.in
- @${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/makefile.in
- @${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/lib/makefile.in
- @${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/lib/makefile.in
- @${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsi/makefile.in
- @${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsi/makefile.in
- @${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsc/makefile.in
- @${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsc/makefile.in
-
-post-configure:
- @${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
-
-.include <bsd.port.mk>
+.for i in makefile.in gsc/makefile.in gsi/makefile.in lib/makefile.in
+ @${REINPLACE_CMD} -e \
+ 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}| ; \
+ s|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/${i}
+.endfor
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs[ci]-gambit
+
+.include <bsd.port.post.mk>