aboutsummaryrefslogtreecommitdiff
path: root/graphics/renrot
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2012-11-01 08:53:01 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2012-11-01 08:53:01 +0000
commit25e37416fd88acd9731adf2ec564275cb104b2b8 (patch)
tree53e573019c57ebae32037ac95a138e9efa9de6d4 /graphics/renrot
parentff01005299804917fabee172e132139330e52096 (diff)
downloadports-25e37416fd88acd9731adf2ec564275cb104b2b8.tar.gz
ports-25e37416fd88acd9731adf2ec564275cb104b2b8.zip
- Convert to the new OPTIONS framework
- Use more detailed description for IMAGEMAGICK option - Depend on ${SITE_PERL}/${PERL_ARCH}/Image/Magick.pm in RUN_DEPENDS - Trim Makefile header per new world order Approved by: maintainer (implicit) Feature safe: yes
Notes
Notes: svn path=/head/; revision=306786
Diffstat (limited to 'graphics/renrot')
-rw-r--r--graphics/renrot/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/graphics/renrot/Makefile b/graphics/renrot/Makefile
index 9c8063a20754..0a65bb3fbf7b 100644
--- a/graphics/renrot/Makefile
+++ b/graphics/renrot/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: RenRot
-# Date created: 11 Dec 2011
-# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
-#
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= renrot
PORTVERSION= 1.1
@@ -20,15 +16,16 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
-OPTIONS= IMAGEMAGICK "Enable Image::Magick module support" off
+OPTIONS_DEFINE= IMAGEMAGICK DOCS
+IMAGEMAGICK_DESC= Image::Magick Perl module support
MAN1= ${PORTNAME}.1
PORTDOCS= AUTHORS README ChangeLog NEWS TODO
.include <bsd.port.options.mk>
-.if defined(WITH_IMAGEMAGICK)
-RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
+.if ${PORT_OPTIONS:MIMAGEMAGICK}
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Image/Magick.pm:${PORTSDIR}/graphics/ImageMagick
.endif
post-install:
@@ -37,7 +34,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/etc/${conf} \
${PREFIX}/etc/${PORTNAME}/${conf}.sample
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif