aboutsummaryrefslogtreecommitdiff
path: root/lang/neko
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2007-08-23 04:33:00 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2007-08-23 04:33:00 +0000
commit6957530bf423a1a169409c15b5e66ae4b762e6d9 (patch)
tree18abfbef75abc246c7a5e42b490e22b338b7754a /lang/neko
parent2574f69107121a3cc7cb9276abdedad5a76633c7 (diff)
downloadports-6957530bf423a1a169409c15b5e66ae4b762e6d9.tar.gz
ports-6957530bf423a1a169409c15b5e66ae4b762e6d9.zip
Notes
Diffstat (limited to 'lang/neko')
-rw-r--r--lang/neko/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/neko/Makefile b/lang/neko/Makefile
index a0b9ec42e84c..37208962e73e 100644
--- a/lang/neko/Makefile
+++ b/lang/neko/Makefile
@@ -7,6 +7,7 @@
PORTNAME= neko
PORTVERSION= 1.6.0
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://nekovm.org/_media/
@@ -28,7 +29,9 @@ OPTIONS= APACHE13 "Build with mod_neko for Apache 1.3.x" off \
# Neko needs boehm-gc with POSIX thread support.
BC_DIR!= cd ${PORTSDIR}/devel/boehm-gc && ${MAKE} -V WRKSRC
+BC_MAKEARGS= BATCH=yes WITH_THREADING=true
+BC_CFLAGS:= ${CFLAGS}
CFLAGS= -I${WRKSRC} -I${PREFIX}/include
LDFLAGS= -L${BC_DIR}/.libs -L${PREFIX}/lib
LIBKEYNAME=
@@ -91,6 +94,7 @@ PLIST_SUB+= GTK2="@comment "
.endif
.if ${ARCH} == "amd64"
+BC_CFLAGS+= -fPIC
CFLAGS+= -D_64BITS -fPIC
.endif
@@ -137,7 +141,7 @@ post-patch:
pre-build:
@(cd ${PORTSDIR}/devel/boehm-gc/ && \
- ${MAKE} BATCH=yes WITH_THREADING=true clean all)
+ ${MAKE} CFLAGS="${BC_CFLAGS}" ${BC_MAKEARGS} clean all)
@${RM} -f ${BC_DIR}/.libs/*.so*
@for BLIB in `${LS} ${BC_DIR}/.libs/libgc.*`; do \
${MV} $${BLIB} `echo $${BLIB} | ${SED} -e 's/libgc/libnekogc/'`; \