aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/jasper/Makefile18
-rw-r--r--graphics/jasper/pkg-plist2
2 files changed, 16 insertions, 4 deletions
diff --git a/graphics/jasper/Makefile b/graphics/jasper/Makefile
index 06c75897894..a4507a46001 100644
--- a/graphics/jasper/Makefile
+++ b/graphics/jasper/Makefile
@@ -7,7 +7,7 @@
PORTNAME= jasper
PORTVERSION= 1.900.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= http://www.ece.uvic.ca/~mdadams/jasper/software/ \
${MASTER_SITE_IMAGEMAGICK}
@@ -20,7 +20,6 @@ LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
USE_AUTOTOOLS= libtool:15
USE_ZIP= yes
-USE_GL= glut
USE_GNOME= gnometarget lthack
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@@ -32,6 +31,19 @@ MASTER_SITE_IMAGEMAGICK= \
ftp://ftp.imagemagick.org/pub/%SUBDIR%/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/&,}
+OPTIONS= OPENGL "OpenGL support" off
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITH_OPENGL)
+USE_GL= glut
+CONFIGURE_ARGS+=--enable-opengl
+PLIST_SUB+= OPENGL=""
+.else
+CONFIGURE_ARGS+=--disable-opengl
+PLIST_SUB+= OPENGL="@comment "
+.endif
+
.if !defined(NO_INSTALL_MANPAGES)
MAN1= imgcmp.1 imginfo.1 jasper.1 jiv.1
.endif
@@ -45,4 +57,4 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/jasper/pkg-plist b/graphics/jasper/pkg-plist
index 74805190bf9..25529ed774f 100644
--- a/graphics/jasper/pkg-plist
+++ b/graphics/jasper/pkg-plist
@@ -2,7 +2,7 @@ bin/imgcmp
bin/imginfo
bin/jasper
bin/tmrdemo
-bin/jiv
+%%OPENGL%%bin/jiv
include/jasper/jas_cm.h
include/jasper/jas_config.h
include/jasper/jas_config2.h