Lines 2-52
Link Here
|
2 |
# $FreeBSD: head/lang/gambit-c/Makefile 363390 2014-07-29 20:55:27Z adamw $ |
2 |
# $FreeBSD: head/lang/gambit-c/Makefile 363390 2014-07-29 20:55:27Z adamw $ |
3 |
|
3 |
|
4 |
PORTNAME= gambit-c |
4 |
PORTNAME= gambit-c |
5 |
DISTVERSION= v4_6_6 |
5 |
DISTVERSION= v4_7_3 |
6 |
PORTEPOCH= 1 |
6 |
PORTEPOCH= 1 |
7 |
CATEGORIES= lang |
7 |
CATEGORIES= lang |
8 |
MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/ |
8 |
MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.7/source/ |
9 |
DISTNAME= gambc-${DISTVERSION} |
9 |
DISTNAME= gambc-${DISTVERSION} |
10 |
|
10 |
|
11 |
MAINTAINER= ports@FreeBSD.org |
11 |
MAINTAINER= ports@FreeBSD.org |
12 |
COMMENT= Gambit programming system where the compiler generates portable C code |
12 |
COMMENT= Gambit programming system where the compiler generates portable C code |
13 |
|
13 |
|
14 |
LICENSE= APACHE20 |
14 |
LICENSE= APACHE20 LGPL21 |
|
|
15 |
LICENSE_COMB= dual |
15 |
|
16 |
|
16 |
MAN1= gsi.1 |
17 |
USES= compiler gmake tar:tgz |
17 |
|
|
|
18 |
USES= gmake tar:tgz |
19 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
20 |
CONFIGURE_ARGS= --enable-single-host --enable-gcc-opts |
19 |
CONFIGURE_ARGS= --enable-single-host \ |
21 |
CONFIGURE_ARGS+=--prefix=${PREFIX} --docdir=${PREFIX}/share/doc/gambit-c |
20 |
--enable-gcc-opts \ |
22 |
CONFIGURE_ARGS+=--libdir=${PREFIX}/lib/gambit-c/ --includedir=${PREFIX}/include/gambit-c |
21 |
--docdir=${DOCSDIR} \ |
23 |
CONFIGURE_ARGS+=--enable-interpreter-name=gsi-gambit --enable-compiler-name=gsc-gambit |
22 |
--includedir=${PREFIX}/include/gambit-c \ |
|
|
23 |
--libdir=${PREFIX}/lib/gambit-c \ |
24 |
--enable-compiler-name=gsc-gambit \ |
25 |
--enable-interpreter-name=gsi-gambit |
26 |
MAKEFILE= makefile |
27 |
USE_LDCONFIG= ${PREFIX}/lib/gambit-c |
24 |
|
28 |
|
25 |
INFO= gambit-c |
29 |
INFO= gambit-c |
26 |
|
30 |
|
|
|
31 |
OPTIONS_DEFINE= DOCS |
27 |
|
32 |
|
28 |
USE_LDCONFIG= ${PREFIX}/lib/gambit-c |
33 |
.include <bsd.port.pre.mk> |
29 |
|
|
|
30 |
PLIST_SUB+= GSI_INC=include/gambit-c |
31 |
PLIST_SUB+= GSI_DOC=share/doc/gambit-c |
32 |
PLIST_SUB+= GSI_LIB=lib/gambit-c |
33 |
|
34 |
|
|
|
35 |
.if ${COMPILER_TYPE} == gcc |
34 |
# This is needed because 4.2 < gcc -v < 4.4 has optimisations that make the |
36 |
# This is needed because 4.2 < gcc -v < 4.4 has optimisations that make the |
35 |
# build take more than 20Gb of virtual memory. |
37 |
# build take more than 20Gb of virtual memory. |
36 |
CFLAGS+= -fno-move-loop-invariants |
38 |
CFLAGS+= -fno-move-loop-invariants |
|
|
39 |
.endif |
37 |
|
40 |
|
38 |
NO_STAGE= yes |
|
|
39 |
post-patch: |
41 |
post-patch: |
40 |
@${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/makefile.in |
42 |
.for i in makefile.in gsc/makefile.in gsi/makefile.in lib/makefile.in |
41 |
@${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/makefile.in |
43 |
@${REINPLACE_CMD} -e \ |
42 |
@${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/lib/makefile.in |
44 |
's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}| ; \ |
43 |
@${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/lib/makefile.in |
45 |
s|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/${i} |
44 |
@${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsi/makefile.in |
46 |
.endfor |
45 |
@${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsi/makefile.in |
|
|
46 |
@${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsc/makefile.in |
47 |
@${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsc/makefile.in |
48 |
|
47 |
|
49 |
post-configure: |
48 |
post-install: |
50 |
@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile |
49 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs[ci]-gambit |
51 |
|
50 |
|
52 |
.include <bsd.port.mk> |
51 |
.include <bsd.port.post.mk> |