2015-05-21 17:50:00 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2015/05/21 17:50:00 juanfra Exp $
|
2012-04-20 10:47:40 +00:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= complete, efficient and reliable implementation of Scheme
|
|
|
|
|
2015-05-21 17:50:00 +00:00
|
|
|
# 4.7.6 has a broken configure script due to an incompatible regex
|
2015-04-21 21:32:06 +00:00
|
|
|
V= 4.7.5
|
2012-04-20 10:47:40 +00:00
|
|
|
DISTNAME= gambc-v${V:S/./_/g}
|
|
|
|
PKGNAME= gambit-$V
|
|
|
|
|
|
|
|
CATEGORIES= lang
|
|
|
|
|
2014-07-13 08:59:41 +00:00
|
|
|
HOMEPAGE= http://gambitscheme.org/
|
2012-04-20 10:47:40 +00:00
|
|
|
|
|
|
|
# LGPLv2.1 / Apachev2.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v${V:R}/source/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2014-10-26 14:22:05 +00:00
|
|
|
WANTLIB += c m util
|
2012-04-20 10:47:40 +00:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2014-10-26 14:22:05 +00:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
|
|
|
|
--disable-cplusplus \
|
2012-04-20 10:47:40 +00:00
|
|
|
--disable-absolute-shared-libs \
|
|
|
|
--docdir=${PREFIX}/share/doc/gambit-c/ \
|
|
|
|
--includedir=${PREFIX}/include/gambit-c/ \
|
2014-03-10 22:16:19 +00:00
|
|
|
--libdir=${PREFIX}/lib/gambit-c/ \
|
|
|
|
--enable-c-opt="${CFLAGS}"
|
2013-06-12 12:57:20 +00:00
|
|
|
|
2012-04-20 10:47:40 +00:00
|
|
|
MAKE_FILE= ${WRKSRC}/makefile
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for l in gambc gambcgsc gambcgsi
|
|
|
|
cd ${PREFIX}/lib/ && ln -s gambit-c/lib$l.so
|
|
|
|
.endfor
|
|
|
|
|
2015-03-14 23:34:17 +00:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${TEST_FLAGS} -f makefile ${TEST_TARGET}
|
|
|
|
|
2015-03-19 15:47:38 +00:00
|
|
|
# "virtual memory exhausted: Cannot allocate memory" (in a system with 2GB RAM)
|
|
|
|
.if ${MACHINE_ARCH} == "hppa"
|
|
|
|
CFLAGS += -O0
|
|
|
|
.endif
|
|
|
|
|
2012-12-13 14:41:51 +00:00
|
|
|
.include <bsd.port.mk>
|