2007-01-19 23:08:32 +01:00
|
|
|
# New ports collection makefile for: gambc
|
|
|
|
# Date created: 28 December 2006
|
|
|
|
# Whom: Rob Zinkov
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2009-06-06 02:29:36 +02:00
|
|
|
PORTNAME= gambit-c
|
2010-10-01 14:44:34 +02:00
|
|
|
DISTVERSION= v4_6_0
|
2008-07-25 05:07:49 +02:00
|
|
|
PORTEPOCH= 1
|
2007-01-19 23:08:32 +01:00
|
|
|
CATEGORIES= lang
|
2010-10-01 14:44:34 +02:00
|
|
|
MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/
|
2009-06-06 02:29:36 +02:00
|
|
|
DISTNAME= gambc-${DISTVERSION}
|
2010-10-01 14:44:34 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
2007-01-19 23:08:32 +01:00
|
|
|
|
2008-06-05 14:11:54 +02:00
|
|
|
MAINTAINER= pmn@bakarika.net
|
2007-01-19 23:08:32 +01:00
|
|
|
COMMENT= Gambit programming system where the compiler generates portable C code
|
|
|
|
|
2010-10-01 14:44:34 +02:00
|
|
|
MAN1= gsi.1
|
|
|
|
|
2007-01-19 23:08:32 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2010-10-01 14:44:34 +02:00
|
|
|
CONFIGURE_ARGS = --enable-single-host --enable-gcc-opts
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} --docdir=${PREFIX}/share/doc/gambit-c
|
2009-06-06 02:29:36 +02:00
|
|
|
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/gambit-c/ --includedir=${PREFIX}/include/gambit-c
|
2010-10-01 14:44:34 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-interpreter-name=gsi-gambit --enable-compiler-name=gsc-gambit
|
2007-01-19 23:08:32 +01:00
|
|
|
|
2010-10-01 14:44:34 +02:00
|
|
|
INFO= gambit-c
|
2009-06-06 02:29:36 +02:00
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# This is needed because 4.2 < gcc -v < 4.4 has optimisations that make the
|
|
|
|
# build take more than 20Gb of virtual memory.
|
|
|
|
.if ${OSVERSION} >= 700042
|
|
|
|
CFLAGS+= -fno-move-loop-invariants
|
|
|
|
.endif
|
2007-01-19 23:08:32 +01:00
|
|
|
|
2008-07-25 05:07:49 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/lib/makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/lib/makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsi/makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsi/makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(FLAGS_OBJ = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsc/makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(FLAGS_DYN = \).*|\1 ${CFLAGS}|' ${WRKSRC}/gsc/makefile.in
|
2007-01-19 23:08:32 +01:00
|
|
|
|
|
|
|
post-configure:
|
2009-06-06 02:29:36 +02:00
|
|
|
@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
|
2007-01-19 23:08:32 +01:00
|
|
|
|
2009-06-06 02:29:36 +02:00
|
|
|
.include <bsd.port.post.mk>
|