Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 15:23:30 +0000 (UTC)
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304358 - head/graphics/png
Message-ID:  <201209161523.q8GFNU0F016929@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dinoex
Date: Sun Sep 16 15:23:30 2012
New Revision: 304358
URL: http://svn.freebsd.org/changeset/ports/304358

Log:
  - use OPTIONS_DEFINE

Modified:
  head/graphics/png/Makefile

Modified: head/graphics/png/Makefile
==============================================================================
--- head/graphics/png/Makefile	Sun Sep 16 15:20:12 2012	(r304357)
+++ head/graphics/png/Makefile	Sun Sep 16 15:23:30 2012	(r304358)
@@ -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



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