aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2004-11-20 05:14:04 +0800
committerobraun <obraun@FreeBSD.org>2004-11-20 05:14:04 +0800
commita4ee6e94de9d28bccc8d12eeef0d122a4cb947d0 (patch)
treebd9602680c54c9877bf5e88e957e1f2bf19fca74 /lang
parente546dc68a29ea6c152bd11c7d356fa9e459f4a03 (diff)
downloadfreebsd-ports-gnome-a4ee6e94de9d28bccc8d12eeef0d122a4cb947d0.tar.gz
freebsd-ports-gnome-a4ee6e94de9d28bccc8d12eeef0d122a4cb947d0.tar.zst
freebsd-ports-gnome-a4ee6e94de9d28bccc8d12eeef0d122a4cb947d0.zip
Add OPTION for compiling hugs with OpenGL/GLUT support.
Requested by: Jan Rochel <jannisan@t-online.de>
Diffstat (limited to 'lang')
-rw-r--r--lang/hugs/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile
index 2174c6eced1f..7e525f673faa 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>