Remove the references to "gambit-c". More info: http://article.gmane.org/gmane.lisp.scheme.gambit/7938
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.21 2015/09/06 22:32:17 juanfra Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= complete, efficient and reliable implementation of Scheme
|
|
|
|
V= 4.7.9
|
|
DISTNAME= gambc-v${V:S/./_/g}
|
|
PKGNAME= gambit-$V
|
|
API_V= ${V:R:S/./0/}00${V:E}
|
|
SUBST_VARS+= API_V
|
|
|
|
CATEGORIES= lang
|
|
|
|
HOMEPAGE= http://gambitscheme.org/
|
|
|
|
# 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
|
|
|
|
WANTLIB += c m util
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
|
|
--disable-cplusplus \
|
|
--disable-absolute-shared-libs \
|
|
--docdir=${PREFIX}/share/doc/gambit/ \
|
|
--includedir=${PREFIX}/include/gambit/ \
|
|
--libdir=${PREFIX}/lib/gambit/ \
|
|
--enable-c-opt="${CFLAGS}"
|
|
|
|
MAKE_FILE= ${WRKSRC}/makefile
|
|
|
|
# On sparc64, gcc crashes with the default stack limit:
|
|
# "cc: Internal error: Illegal instruction" on _gambc.c
|
|
do-build:
|
|
ulimit -s 12288 && cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET}
|
|
|
|
post-install:
|
|
.for l in gambc gambcgsc gambcgsi
|
|
cd ${PREFIX}/lib/ && ln -s gambit/lib$l.so
|
|
.endfor
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${MAKE_PROGRAM} \
|
|
${TEST_FLAGS} -f makefile ${TEST_TARGET}
|
|
|
|
# hppa: "virtual memory exhausted: Cannot allocate memory" (in a system with 2GB RAM)
|
|
.if ${MACHINE_ARCH} == "hppa"
|
|
CFLAGS += -O0
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|