aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jasper
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2012-06-16 00:46:55 +0800
committerdinoex <dinoex@FreeBSD.org>2012-06-16 00:46:55 +0800
commit6414130614e60c5b97ef32058ae07377d94f7074 (patch)
treeeb1391835f44f6f5c9414fa141f11fd8ba7ed117 /graphics/jasper
parent2aa400d97e5806df3b3f289f79875ca4fbc32acb (diff)
downloadfreebsd-ports-gnome-6414130614e60c5b97ef32058ae07377d94f7074.tar.gz
freebsd-ports-gnome-6414130614e60c5b97ef32058ae07377d94f7074.tar.zst
freebsd-ports-gnome-6414130614e60c5b97ef32058ae07377d94f7074.zip
- use OPTIONS_DEFINE
Diffstat (limited to 'graphics/jasper')
-rw-r--r--graphics/jasper/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/graphics/jasper/Makefile b/graphics/jasper/Makefile
index 5b08fa263935..a5d8db1f4a42 100644
--- a/graphics/jasper/Makefile
+++ b/graphics/jasper/Makefile
@@ -34,12 +34,13 @@ MASTER_SITE_IMAGEMAGICK= \
ftp://ftp.imagemagick.org/pub/%SUBDIR%/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/&,}
-OPTIONS= OPENGL "OpenGL support" off \
- UUID "UUID support (required by GDAL)" off
+OPTIONS_DEFINE= OPENGL UUID
+OPTIONS_DEFAULT=
+UUID_DESC= UUID support (required by GDAL)
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_OPENGL)
+.if ${PORT_OPTIONS:MOPENGL}
USE_GL= glut
CONFIGURE_ARGS+=--enable-opengl
PLIST_SUB+= OPENGL=""
@@ -48,7 +49,7 @@ CONFIGURE_ARGS+=--disable-opengl
PLIST_SUB+= OPENGL="@comment "
.endif
-.if defined(WITH_UUID)
+.if ${PORT_OPTIONS:MUUID}
EXTRA_PATCHES+= ${FILESDIR}/uuid.patch
.endif
@@ -65,4 +66,4 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>