summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-09-16 15:23:30 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-09-16 15:23:30 +0000
commit98f63b20c27caf5fec7734045b014867e5d4143b (patch)
tree3cc8e818370f9324117f6c6d889ada8c7338b860 /graphics
parentAdd p5-Moose-Test 0.01, a Test Runner for the Moose test suite. (diff)
- use OPTIONS_DEFINE
Notes
Notes: svn path=/head/; revision=304358
Diffstat (limited to 'graphics')
-rw-r--r--graphics/png/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 5f228ea1e33a..140343cfa1bd 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -28,7 +28,9 @@ SOSUFFIX= .${PORTVERSION:E}
MAN3= libpng.3 libpngpf.3
MAN5= png.5
-OPTIONS= APNG "Animated PNG support" On
+OPTIONS_DEFINE=APNG
+OPTIONS_DEFAULT=APNG
+APNG_DESC=Enable Animated PNG support
.include <bsd.port.pre.mk>
@@ -36,17 +38,17 @@ OPTIONS= APNG "Animated PNG support" On
BROKEN= Please remove WITH_DEBUG for this port
.endif
-.if !defined(WITHOUT_APNG) || make(makesum) || defined(FETCH_ALL)
+.if ${PORT_OPTIONS:MAPNG} || make(makesum) || defined(FETCH_ALL)
MASTER_SITES+= SF/apng/libpng/libpng15/:apng
DISTFILES+= ${DISTNAME}-apng.patch.gz:apng
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
-.if !defined(WITHOUT_APNG)
+.if ${PORT_OPTIONS:MAPNG}
EXTRA_PATCHES= ${WRKSRC}/${DISTNAME}-apng.patch
.endif
post-extract:
-.if !defined(WITHOUT_APNG)
+.if ${PORT_OPTIONS:MAPNG}
@${LN} -sf ${WRKSRC} ${WRKSRC}/
${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}-apng.patch.gz ${WRKSRC}/
${GZIP_CMD} -d ${WRKSRC}/${DISTNAME}-apng.patch.gz