aboutsummaryrefslogtreecommitdiff
path: root/graphics/giftool
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 21:42:32 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 21:42:32 +0000
commit9010280b855a8f663dc0899ba61ab950e6b515da (patch)
treeade0e2be591e771231576c7a69bfc8a5cf0bc252 /graphics/giftool
parent06a3e062ca8655d412fd71bf237d2cbcb5d17726 (diff)
Conver to new options framework
Notes
Notes: svn path=/head/; revision=299156
Diffstat (limited to 'graphics/giftool')
-rw-r--r--graphics/giftool/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/graphics/giftool/Makefile b/graphics/giftool/Makefile
index 6ffed97b66c2..62de15e830e2 100644
--- a/graphics/giftool/Makefile
+++ b/graphics/giftool/Makefile
@@ -21,24 +21,26 @@ NO_WRKSUBDIR= yes
ALL_TARGET= giftool
MAKE_ARGS= CFLAGS="${CFLAGS}"
-OPTIONS= RETVALUE "Return value patch" on \
- MALLOCSIZE "Improve malloc size" on
+OPTIONS_DEFINE= RETVALUE MALLOCSIZE DOCS
+OPTIONS_DEFAULT= RETVALUE MALLOCSIZE
+RETVALUE_DESC= Return value patch
+MALLOCSIZE_DESC= Improve malloc size
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= COPYRIGHT README
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_RETVALUE)
+.if ${PORT_OPTIONS:MRETVALUE}
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-aa
.endif
-.if defined(WITH_MALLOCSIZE)
+.if ${PORT_OPTIONS:MMALLOCSIZE}
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ab
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/giftool ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
@@ -46,4 +48,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>