From 0d72b6f41f53664598ec6fd3da38055a5c08fb8e Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sun, 8 Jul 2007 08:02:51 +0000 Subject: - Add OPTIONS knobs for opengl Submitted by: ports@ ml Reviewed by: rafan (thanks) --- graphics/jasper/Makefile | 18 +++++++++++++++--- graphics/jasper/pkg-plist | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'graphics/jasper') 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 + +.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 +.include 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 -- cgit v1.2.3