Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 02:24:15 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172019: graphics/metapixel: Support PORTEXAMPLES
Message-ID:  <20120926022415.d62565d0077124824e9bd2aa@yahoo.com>
Resent-Message-ID: <201209251810.q8PIAT4I021510@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172019
>Category:       ports
>Synopsis:       graphics/metapixel: Support PORTEXAMPLES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 25 18:10:29 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Add LICENSE
- Support PORTEXAMPLES

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/metapixel/Makefile graphics/metapixel/Makefile
--- /usr/ports/graphics/metapixel/Makefile	2012-06-01 14:20:21.000000000 +0900
+++ graphics/metapixel/Makefile	2012-09-25 03:34:56.000000000 +0900
@@ -1,7 +1,4 @@
-# Ports collection makefile for:	metapixel
-# Date created:			2002-05-23
-# Whom:				Tilman Linneweh <arved@FreeBSD.org>
-#
+# Created by: Tilman Linneweh <arved@FreeBSD.org>
 # $FreeBSD: ports/graphics/metapixel/Makefile,v 1.28 2012/06/01 05:20:21 dinoex Exp $
 
 PORTNAME=	metapixel
@@ -14,20 +11,28 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A photomosaic generator
 
-LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
-		jpeg.11:${PORTSDIR}/graphics/jpeg \
-		gif.5:${PORTSDIR}/graphics/giflib
+LICENSE=	GPLv2 # (or later)
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	gif:${PORTSDIR}/graphics/giflib \
+		jpeg:${PORTSDIR}/graphics/jpeg \
+		png15:${PORTSDIR}/graphics/png
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 USE_GMAKE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include -I. -I${LOCALBASE}/include/libpng15
-LDFLAGS+=	-L${LOCALBASE}/lib
+MAKE_JOBS_SAFE=	yes
+
+CPPFLAGS+=	$$(libpng-config --I_opts) -I${LOCALBASE}/include -I.
+LDFLAGS+=	$$(libpng-config --L_opts) -L${LOCALBASE}/lib
 
-PLIST_FILES=	bin/metapixel bin/metapixel-convert bin/metapixel-imagesize \
-		bin/metapixel-prepare bin/metapixel-sizesort \
-		share/examples/metapixel/metapixelrc
-PLIST_DIRS=	share/examples/metapixel
-PORTDOCS=	README NEWS
 MAN1=		metapixel.1
+PORTDOCS=	README NEWS
+PORTEXAMPLES=	metapixelrc
+PLIST_FILES=	bin/metapixel bin/metapixel-convert bin/metapixel-imagesize \
+		bin/metapixel-prepare bin/metapixel-sizesort
+
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${RM} ${WRKSRC}/getopt.h
@@ -38,12 +43,14 @@
 	${INSTALL_PROGRAM} ${WRKSRC}/metapixel-imagesize ${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKSRC}/metapixel-prepare ${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKSRC}/metapixel-sizesort ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/metapixel.1 ${PREFIX}/man/man1
-	${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/metapixelrc ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/metapixel.1 ${MANPREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 .endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
+.endif
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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