diff options
author | pgj <pgj@FreeBSD.org> | 2012-08-03 11:45:16 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2012-08-03 11:45:16 +0800 |
commit | 1368f0bed884e322445414aa0c7c998890462818 (patch) | |
tree | b26349811b68134bac67fae6d91e176c66eb103c | |
parent | d1bde116e58c44a0b74a2f0c17178491c60be9cc (diff) | |
download | freebsd-ports-gnome-1368f0bed884e322445414aa0c7c998890462818.tar.gz freebsd-ports-gnome-1368f0bed884e322445414aa0c7c998890462818.tar.zst freebsd-ports-gnome-1368f0bed884e322445414aa0c7c998890462818.zip |
- Use the new options framework
Obtained from: FreeBSD Haskell
-rw-r--r-- | lang/ohugs/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lang/ohugs/Makefile b/lang/ohugs/Makefile index 4fed82fe5447..325b71436181 100644 --- a/lang/ohugs/Makefile +++ b/lang/ohugs/Makefile @@ -6,7 +6,7 @@ PORTNAME= ohugs PORTVERSION= 0.5 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= lang haskell MASTER_SITES= http://www.math.chalmers.se/~nordland/ohugs/ DISTNAME= ${PORTNAME}-${PORTVERSION}.src @@ -14,8 +14,12 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}.src MAINTAINER= haskell@FreeBSD.org COMMENT= Interpreter for Haskell with object-oriented features +OPTIONS_DEFINE= X11 + +.include <bsd.port.options.mk> + LIB_DEPENDS= readline.6:${PORTSDIR}/devel/readline -.if !defined(WITHOUT_X11) +.if empty(PORT_OPTIONS:MX11) LIB_DEPENDS= Tix8.4.3.0:${PORTSDIR}/x11-toolkits/tix .endif @@ -23,7 +27,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//} BUILD_WRKSRC= ${WRKSRC}/src USE_BISON= build LDFLAGS+= -lm -lreadline -ltermcap -.if !defined(WITHOUT_X11) +.if empty(PORT_OPTIONS:MX11) USE_TK= 84+ CFLAGS+= -I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR} -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -ltk${TK_VER:S/.//} -ltcl${TCL_VER:S/.//} -lTix8.4.3 @@ -31,11 +35,9 @@ LDFLAGS+= -L${LOCALBASE}/lib -ltk${TK_VER:S/.//} -ltcl${TCL_VER:S/.//} -lTix8.4. MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ INSTBIN=${PREFIX}/bin INSTLIB=${PREFIX}/lib/ohugs -.include <bsd.port.pre.mk> - post-patch: -.if defined(WITHOUT_X11) +.if empty(PORT_OPTIONS:MX11) @${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-src::prelude.h .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |