Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2012 08:53:01 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306786 - head/graphics/renrot
Message-ID:  <201211010853.qA18r1sR053901@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Nov  1 08:53:01 2012
New Revision: 306786
URL: http://svn.freebsd.org/changeset/ports/306786

Log:
  - 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

Modified:
  head/graphics/renrot/Makefile

Modified: head/graphics/renrot/Makefile
==============================================================================
--- head/graphics/renrot/Makefile	Thu Nov  1 08:29:17 2012	(r306785)
+++ head/graphics/renrot/Makefile	Thu Nov  1 08:53:01 2012	(r306786)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211010853.qA18r1sR053901>