aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/metapixel
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2012-11-10 19:57:18 +0800
committerpawel <pawel@FreeBSD.org>2012-11-10 19:57:18 +0800
commit9e15ec53f27e0b59e17dc6e3528cd5c8164ffec5 (patch)
tree4bf794cb8797fe7bfc160d7ac797593c552c7567 /graphics/metapixel
parentcd1d524d42cc977ed4f52b17ab1c11fd99cd2e35 (diff)
downloadfreebsd-ports-gnome-9e15ec53f27e0b59e17dc6e3528cd5c8164ffec5.tar.gz
freebsd-ports-gnome-9e15ec53f27e0b59e17dc6e3528cd5c8164ffec5.tar.zst
freebsd-ports-gnome-9e15ec53f27e0b59e17dc6e3528cd5c8164ffec5.zip
- Add LICENSE
- Support PORTEXAMPLES While I'm here: - Add missing deps this package links to - Fix COMMENT PR: ports/172019 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
Diffstat (limited to 'graphics/metapixel')
-rw-r--r--graphics/metapixel/Makefile48
1 files changed, 28 insertions, 20 deletions
diff --git a/graphics/metapixel/Makefile b/graphics/metapixel/Makefile
index b90ec3315885..2e3e5438e0cc 100644
--- a/graphics/metapixel/Makefile
+++ b/graphics/metapixel/Makefile
@@ -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$
PORTNAME= metapixel
@@ -12,22 +9,31 @@ MASTER_SITES= http://www.complang.tuwien.ac.at/schani/metapixel/files/ \
http://mirror.roe.ch/dist/metapixel/
MAINTAINER= ports@FreeBSD.org
-COMMENT= A photomosaic generator
+COMMENT= 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= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
+ gif:${PORTSDIR}/graphics/giflib \
+ jpeg:${PORTSDIR}/graphics/jpeg \
+ png15:${PORTSDIR}/graphics/png \
+ xcb:${PORTSDIR}/x11/libxcb
USE_GMAKE= yes
-CPPFLAGS+= -I${LOCALBASE}/include -I. -I${LOCALBASE}/include/libpng15
-LDFLAGS+= -L${LOCALBASE}/lib
+USE_XORG= ice sm x11 xau xdmcp
+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 +44,14 @@ do-install:
${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>