diff options
author | olgeni <olgeni@FreeBSD.org> | 2012-04-17 05:33:40 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2012-04-17 05:33:40 +0800 |
commit | 1fb8bbc7d65215c75b79f9321a2cad2235d94c82 (patch) | |
tree | c7cb24770f10bca58cad65649bf34eaf7fbdce10 /lang | |
parent | e7e53601b237cf578f66d5ee8558b663eec2d247 (diff) | |
download | freebsd-ports-gnome-1fb8bbc7d65215c75b79f9321a2cad2235d94c82.tar.gz freebsd-ports-gnome-1fb8bbc7d65215c75b79f9321a2cad2235d94c82.tar.zst freebsd-ports-gnome-1fb8bbc7d65215c75b79f9321a2cad2235d94c82.zip |
* Disable support for WITHOUT_X11; a separate text-only version
will be provided in lang/racket-textual.
* Add missing libffi dependency.
* Reduce diffs with upcoming racket-textual port.
* Add support for RACKET_PLACES option[1].
Submitted by: Yves Fischer <yvesf@xapek.org> [1]
Diffstat (limited to 'lang')
-rw-r--r-- | lang/racket/Makefile | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/lang/racket/Makefile b/lang/racket/Makefile index a3d89c51233b..9d0be19bfce7 100644 --- a/lang/racket/Makefile +++ b/lang/racket/Makefile @@ -7,23 +7,24 @@ PORTNAME= racket PORTVERSION= 5.2.1 +PORTREVISION= 1 CATEGORIES= lang scheme -MASTER_SITES= http://download.racket-lang.org/installers/${PORTVERSION}/racket/ \ - http://www.eecs.northwestern.edu/racket/${PORTVERSION}/racket/ \ - http://www.cs.utah.edu/plt/installers/${PORTVERSION}/racket/ \ - http://mirror.informatik.uni-tuebingen.de/mirror/racket/${PORTVERSION}/racket/ \ - ftp://infogroep.be/pub/racket/installers/${PORTVERSION}/racket/ \ - http://russell.cs.bilgi.edu.tr/racket-installers/${PORTVERSION}/racket/ -DISTNAME= racket-${PORTVERSION}-src-unix +MASTER_SITES= http://download.racket-lang.org/installers/${PORTVERSION}/${PORTNAME}/ \ + http://www.eecs.northwestern.edu/racket/${PORTVERSION}/${PORTNAME}/ \ + http://www.cs.utah.edu/plt/installers/${PORTVERSION}/${PORTNAME}/ \ + http://mirror.informatik.uni-tuebingen.de/mirror/racket/${PORTVERSION}/${PORTNAME}/ \ + ftp://infogroep.be/pub/racket/installers/${PORTVERSION}/${PORTNAME}/ \ + http://russell.cs.bilgi.edu.tr/racket-installers/${PORTVERSION}/${PORTNAME}/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-src-unix EXTRACT_SUFX= .tgz -DIST_SUBDIR= racket/${PORTVERSION} +DIST_SUBDIR= ${PORTNAME}/${PORTVERSION} MAINTAINER= olgeni@FreeBSD.org COMMENT= An interactive, integrated, graphical Scheme programming environment MAKE_JOBS_UNSAFE=yes -OPTIONS= X11 "X11 support" ON +OPTIONS= RACKET_PLACES "Enable Places" ON GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-shared --enable-pthread \ @@ -32,35 +33,38 @@ CONFIGURE_SCRIPT= ../configure .include <bsd.port.options.mk> +.if defined(WITHOUT_X11) +IGNORE= requires X11; use lang/racket-textual instead +.endif + .if ${ARCH} == "i386" MANUAL_PACKAGE_BUILD= i386 requires kern.maxdsiz="640M" to build .endif -.if defined(WITH_X11) USE_GNOME= pango -LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo \ +LIB_DEPENDS+= ffi.5:${PORTSDIR}/devel/libffi \ + cairo.2:${PORTSDIR}/graphics/cairo \ jpeg.11:${PORTSDIR}/graphics/jpeg \ png.6:${PORTSDIR}/graphics/png + +.if defined(WITH_RACKET_PLACES) +CONFIGURE_ARGS+= --enable-places .else -BUILD_DEPENDS+= ${LOCALBASE}/bin/cjpeg:${PORTSDIR}/graphics/jpeg \ - ${LOCALBASE}/libdata/pkgconfig/cairo.pc:${PORTSDIR}/graphics/cairo \ - ${LOCALBASE}/libdata/pkgconfig/libpng14.pc:${PORTSDIR}/graphics/png \ - ${LOCALBASE}/libdata/pkgconfig/pango.pc:${PORTSDIR}/x11-toolkits/pango +CONFIGURE_ARGS+= --disable-places .endif # Force the "configure" script to look in $LOCALBASE for -lpng and -ljpeg LDFLAGS+= -L${LOCALBASE}/lib CPPFLAGS+= -I${LOCALBASE}/include -WRKSRC= ${WRKDIR}/racket-${PORTVERSION}/src/build +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src/build USE_ICONV= yes USE_LDCONFIG= yes USE_AUTOTOOLS= libtool:env -MAN1= drracket.1 gracket.1 mred.1 mzc.1 \ - mzscheme.1 plt-help.1 racket.1 \ - raco.1 setup-plt.1 tex2page.1 +MAN1= drracket.1 gracket.1 mred.1 mzc.1 mzscheme.1 plt-help.1 \ + racket.1 raco.1 setup-plt.1 tex2page.1 ONLY_FOR_ARCHS= i386 amd64 |