blob: 4a4872c44250094ae67f4a0dabff7a5b22f174c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Created by: Rob Zinkov
# $FreeBSD$
PORTNAME= gambit-c
PORTVERSION= 4.8.8
PORTREVISION= 6
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= lang
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Gambit programming system where the compiler generates portable C code
LICENSE= APACHE20 LGPL21
LICENSE_COMB= dual
USE_GITHUB= yes
GH_ACCOUNT= feeley
GH_PROJECT= gambit
USES= compiler gmake
GNU_CONFIGURE= yes
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
OPTIONS_DEFINE= DOCS GCC
OPTIONS_DEFAULT=GCC
GCC_DESC= Build with GCC
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MGCC}
USE_GCC= any
.endif
.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
post-patch:
.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>
|