summaryrefslogtreecommitdiffstats
path: root/lang/hugs
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2004-11-19 21:14:04 +0000
committerobraun <obraun@FreeBSD.org>2004-11-19 21:14:04 +0000
commita4ee6e94de9d28bccc8d12eeef0d122a4cb947d0 (patch)
treebd9602680c54c9877bf5e88e957e1f2bf19fca74 /lang/hugs
parente546dc68a29ea6c152bd11c7d356fa9e459f4a03 (diff)
downloadFreeBSD-ports-a4ee6e94de9d28bccc8d12eeef0d122a4cb947d0.zip
FreeBSD-ports-a4ee6e94de9d28bccc8d12eeef0d122a4cb947d0.tar.gz
Add OPTION for compiling hugs with OpenGL/GLUT support.
Requested by: Jan Rochel <jannisan@t-online.de>
Diffstat (limited to 'lang/hugs')
-rw-r--r--lang/hugs/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile
index 2174c6e..7e525f6 100644
--- a/lang/hugs/Makefile
+++ b/lang/hugs/Makefile
@@ -17,6 +17,7 @@ COMMENT= An interpreter for the functional programming language Haskell 98
WRKSRC= ${WRKDIR}/${DISTNAME}/src
+OPTIONS= HUGS_OPENGL "OpenGL/GLUT support" off
HUGS_DATE= Nov2003
USE_REINPLACE= yes
USE_BISON= yes
@@ -24,10 +25,17 @@ CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-ffi
CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}"
ALL_TARGET= default ffihugs
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_HUGS_OPENGL)
+CONFIGURE_ARGS+= --enable-hopengl --enable-mesa
+USE_GL= yes
+.endif
+
MAN1= hugs.1 hugs-package.1
.if ${MACHINE_ARCH:L} == "amd64"
-CFLAGS+= "-fPIC"
+CFLAGS+= "-fPIC"
.endif
post-patch:
@@ -48,4 +56,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/../Readme ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud