aboutsummaryrefslogtreecommitdiff
path: root/graphics/jasper
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-07-08 08:02:51 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-07-08 08:02:51 +0000
commit0d72b6f41f53664598ec6fd3da38055a5c08fb8e (patch)
tree8f4c825c90a1c065828b157289542c9004d11084 /graphics/jasper
parent4a36135c3b35f4deec09d37b496e6680db4e341a (diff)
downloadports-0d72b6f41f53664598ec6fd3da38055a5c08fb8e.tar.gz
ports-0d72b6f41f53664598ec6fd3da38055a5c08fb8e.zip
Notes
Diffstat (limited to 'graphics/jasper')
-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 06c758978944..a4507a460010 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 74805190bf9f..25529ed774f1 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