aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2012-08-03 03:45:16 +0000
committerGabor Pali <pgj@FreeBSD.org>2012-08-03 03:45:16 +0000
commit41ee178e295c80edd4dd11564e339f19aef3d781 (patch)
treeb26349811b68134bac67fae6d91e176c66eb103c
parent8337e56bc374ee46b21f2caf52ecb7003307172c (diff)
downloadports-41ee178e295c80edd4dd11564e339f19aef3d781.tar.gz
ports-41ee178e295c80edd4dd11564e339f19aef3d781.zip
Notes
-rw-r--r--lang/ohugs/Makefile16
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>