diff options
Diffstat (limited to 'lang/gambit-c')
-rw-r--r-- | lang/gambit-c/Makefile | 63 | ||||
-rw-r--r-- | lang/gambit-c/distinfo | 6 | ||||
-rw-r--r-- | lang/gambit-c/pkg-descr | 5 | ||||
-rw-r--r-- | lang/gambit-c/pkg-plist | 80 |
4 files changed, 71 insertions, 83 deletions
diff --git a/lang/gambit-c/Makefile b/lang/gambit-c/Makefile index 2a9f2668dd9e..323ce43e1b9d 100644 --- a/lang/gambit-c/Makefile +++ b/lang/gambit-c/Makefile @@ -5,25 +5,38 @@ # $FreeBSD$ # -PORTNAME= gambc -DISTVERSION= v4_2_8 +PORTNAME= gambit-c +DISTVERSION= v4_4_3 PORTEPOCH= 1 CATEGORIES= lang -MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.2/source/ +MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.4/source/ EXTRACT_SUFX= .tgz +DISTNAME= gambc-${DISTVERSION} MAINTAINER= pmn@bakarika.net COMMENT= Gambit programming system where the compiler generates portable C code USE_GMAKE= yes GNU_CONFIGURE= yes -MAKE_ARGS= PREFIX="${PREFIX}" CONFIGURE_ARGS= --enable-single-host --enable-gcc-opts +CONFIGURE_ARGS+= --prefix=${PREFIX} --docdir=${PREFIX}/share/doc/gambit-c +CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/gambit-c/ --includedir=${PREFIX}/include/gambit-c -INFO= gambit-c +# Will need upstream patch to avoid the error +#INFO= gambit-c + +# Will need upstream patch too +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 post-patch: - @${REINPLACE_CMD} -e 's|^\(install: install-pre install-recursive\) install-post|\1|' ${WRKSRC}/makefile.in @${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 @@ -32,40 +45,10 @@ post-patch: @${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 - -pre-configure: - @${REINPLACE_CMD} -e 's|/4.2.8||' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|^EXECUTABLE = gsi@exe@|EXECUTABLE = gsi-gambit@exe@|' ${WRKSRC}/gsi/makefile.in + @${REINPLACE_CMD} -e 's|^EXECUTABLE = gsc@exe@|EXECUTABLE = gsc-gambit@exe@|' ${WRKSRC}/gsc/makefile.in post-configure: - @${CP} ${WRKSRC}/makefile ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/makefile - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/Makefile - - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/include/makefile - @${REINPLACE_CMD} -e 's|/include|/include/Gambit-C|' ${WRKSRC}/include/makefile - - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/lib/makefile - - @${REINPLACE_CMD} -e 's|/lib/|tempstr|' ${WRKSRC}/lib/makefile - @${REINPLACE_CMD} -e 's|/lib|/lib/Gambit-C|' ${WRKSRC}/lib/makefile - @${REINPLACE_CMD} -e 's|tempstr|/lib/|' ${WRKSRC}/lib/makefile - - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/bin/makefile - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/gsc/makefile - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/gsi/makefile - @${REINPLACE_CMD} -e 's| gsc | gsc-gambit |' ${WRKSRC}/bin/makefile - @${REINPLACE_CMD} -e 's|/gsc |/gsc-gambit |' ${WRKSRC}/bin/makefile - @${REINPLACE_CMD} -e 's|EXECUTABLE = gsc|EXECUTABLE = gsc-gambit|' ${WRKSRC}/gsc/makefile - - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/doc/makefile - - @${REINPLACE_CMD} -e 's|/doc|/share/doc/Gambit-C|' ${WRKSRC}/doc/makefile - - @${REINPLACE_CMD} -e 's|PACKAGE_SUBDIR = /v4.2.8|PACKAGE_SUBDIR = |' ${WRKSRC}/misc/makefile - - @${REINPLACE_CMD} -e 's|/v4.2.8|/share/emacs/site-lisp|' ${WRKSRC}/misc/makefile - - @${REINPLACE_CMD} -e 's|/syntax-case.scm|/share/Gambit-C/syntax-case.scm|' ${WRKSRC}/misc/makefile - @${REINPLACE_CMD} -e 's|/v4.2.8||' ${WRKSRC}/makefile + @${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/lang/gambit-c/distinfo b/lang/gambit-c/distinfo index 3778acc3a343..6440b31e7f6f 100644 --- a/lang/gambit-c/distinfo +++ b/lang/gambit-c/distinfo @@ -1,3 +1,3 @@ -MD5 (gambc-v4_2_8.tgz) = 1ebd2effeb9e936b380d6daffb9e11b8 -SHA256 (gambc-v4_2_8.tgz) = e07d0031e434fc98a8b3ac136fe2426280cc342b8e3b3a325c7348938d5bae11 -SIZE (gambc-v4_2_8.tgz) = 14255377 +MD5 (gambc-v4_4_3.tgz) = 925dad46461994e13b680dd3a9d4c38a +SHA256 (gambc-v4_4_3.tgz) = 8f5d9ad292d806c99baea11c696a34000ef0f38e175cc114dfee85128faaf565 +SIZE (gambc-v4_4_0.tgz) = 8028618 diff --git a/lang/gambit-c/pkg-descr b/lang/gambit-c/pkg-descr index 6dab4995bf4d..5681a3a7a70b 100644 --- a/lang/gambit-c/pkg-descr +++ b/lang/gambit-c/pkg-descr @@ -1,7 +1,8 @@ The Gambit programming system is a full implementation of the Scheme language which conforms to the R4RS and IEEE Scheme standards. It -consists of two main programs: gsi, the Gambit Scheme interpreter, and -gsc, the Gambit Scheme compiler. +consists of two main programs: gsi-gambit, the Gambit Scheme interpreter, +and gsc-gambit, the Gambit Scheme compiler. + Gambit-C is a version of the Gambit programming system in which the compiler generates portable C code, making the whole Gambit-C system diff --git a/lang/gambit-c/pkg-plist b/lang/gambit-c/pkg-plist index ac483d78f858..eddd0f70af6d 100644 --- a/lang/gambit-c/pkg-plist +++ b/lang/gambit-c/pkg-plist @@ -1,43 +1,47 @@ bin/six -bin/gsc-cc-o.bat +bin/gsi-gambit bin/gsc-gambit -bin/gsc-script -bin/gsi +bin/gsc-cc-o.bat +bin/gambc-doc.bat bin/gsi-script -bin/scheme-ieee-1178-1990 -bin/scheme-r4rs -bin/scheme-r5rs -bin/scheme-srfi-0 bin/six-script -share/doc/Gambit-C/gambit-c.html -share/doc/Gambit-C/gambit-c.pdf -share/doc/Gambit-C/gambit-c.txt -include/Gambit-C/gambit.h -include/Gambit-C/gambit-not402008.h -lib/Gambit-C/_gambc.c -lib/Gambit-C/_kernel#.scm -lib/Gambit-C/_system#.scm -lib/Gambit-C/_num#.scm -lib/Gambit-C/_std#.scm -lib/Gambit-C/_eval#.scm -lib/Gambit-C/_io#.scm -lib/Gambit-C/_nonstd#.scm -lib/Gambit-C/_thread#.scm -lib/Gambit-C/_repl#.scm -lib/Gambit-C/_gambit#.scm -lib/Gambit-C/digest#.scm -lib/Gambit-C/digest.scm -lib/Gambit-C/gambit#.scm -lib/_gambcgsi.c -lib/libgambcgsi.a -lib/_gambcgsc.c -lib/libgambcgsc.a -lib/Gambit-C/libgambc.a -lib/Gambit-C/r4rs#.scm -lib/Gambit-C/r5rs#.scm +bin/scheme-srfi-0 +bin/scheme-r5rs +bin/scheme-r4rs +bin/scheme-ieee-1178-1990 +bin/gsc-script +include/gambit-c/gambit.h +include/gambit-c/gambit-not404003.h +info/gambit-c.info +info/gambit-c.info-1 +info/gambit-c.info-2 +info/gambit-c.info-3 +lib/gambit-c/_gambc.c +lib/gambit-c/_kernel#.scm +lib/gambit-c/_system#.scm +lib/gambit-c/_num#.scm +lib/gambit-c/_std#.scm +lib/gambit-c/_eval#.scm +lib/gambit-c/_io#.scm +lib/gambit-c/_nonstd#.scm +lib/gambit-c/_thread#.scm +lib/gambit-c/_repl#.scm +lib/gambit-c/_gambit#.scm +lib/gambit-c/gambit#.scm +lib/gambit-c/r5rs#.scm +lib/gambit-c/r4rs#.scm +lib/gambit-c/digest#.scm +lib/gambit-c/digest.scm +lib/gambit-c/syntax-case.scm +lib/gambit-c/libgambc.a +lib/gambit-c/_gambcgsi.c +lib/gambit-c/libgambcgsi.a +lib/gambit-c/_gambcgsc.c +lib/gambit-c/libgambcgsc.a +share/doc/gambit-c/gambit-c.pdf +share/doc/gambit-c/gambit-c.html +share/doc/gambit-c/gambit-c.txt share/emacs/site-lisp/gambit.el -share/Gambit-C/syntax-case.scm -@dirrm include/Gambit-C -@dirrm share/doc/Gambit-C -@dirrm share/Gambit-C -@dirrm lib/Gambit-C +@dirrm include/gambit-c +@dirrm lib/gambit-c +@dirrm share/doc/gambit-c |