aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2012-11-01 16:53:01 +0800
committerdanfe <danfe@FreeBSD.org>2012-11-01 16:53:01 +0800
commitb7a20cb3dba5f88ebb0ed79cffb6122d836d942a (patch)
tree53e573019c57ebae32037ac95a138e9efa9de6d4 /graphics
parentede8581ea89084b396a078f043b117404b230029 (diff)
downloadfreebsd-ports-gnome-b7a20cb3dba5f88ebb0ed79cffb6122d836d942a.tar.gz
freebsd-ports-gnome-b7a20cb3dba5f88ebb0ed79cffb6122d836d942a.tar.zst
freebsd-ports-gnome-b7a20cb3dba5f88ebb0ed79cffb6122d836d942a.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
Diffstat (limited to 'graphics')
-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