freebsd-ports/graphics/metapixel/Makefile
Tijl Coosemans 60945f0277 Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
the 32 ports that still use it.  Bump PORTREVISION on their dependent
ports except the ones that depend on these:

audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt

In these cases the same trick as in the recent gettext update is used.
The ports install a symlink with the old library version.  When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.

Also remove the devel/pcre dependency from USE_GNOME=glib20.  It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it.  The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20.  Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.

PR:		195724
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-12-08 16:48:38 +00:00

50 lines
1.4 KiB
Makefile

# Created by: Tilman Linneweh <arved@FreeBSD.org>
# $FreeBSD$
PORTNAME= metapixel
PORTVERSION= 1.0.2
PORTREVISION= 8
CATEGORIES= graphics
MASTER_SITES= http://www.complang.tuwien.ac.at/schani/metapixel/files/ \
http://mirror.roe.ch/dist/metapixel/
MAINTAINER= ports@FreeBSD.org
COMMENT= Photomosaic generator
LICENSE= GPLv2
LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng15.so:${PORTSDIR}/graphics/png
CPPFLAGS+= $$(libpng-config --I_opts) -I${LOCALBASE}/include -I.
LDFLAGS+= $$(libpng-config --L_opts) -L${LOCALBASE}/lib
USES= gmake shebangfix
SHEBANG_FILES= metapixel-prepare metapixel-sizesort
PLIST_FILES= bin/metapixel \
bin/metapixel-convert \
bin/metapixel-imagesize \
bin/metapixel-prepare \
bin/metapixel-sizesort \
man/man1/metapixel.1.gz
PORTDOCS= NEWS README
PORTEXAMPLES= metapixelrc
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${RM} ${WRKSRC}/getopt.h
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} metapixel metapixel-convert \
metapixel-imagesize ${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_SCRIPT} metapixel-prepare \
metapixel-sizesort ${STAGEDIR}${PREFIX}/bin)
${INSTALL_MAN} ${WRKSRC}/metapixel.1 ${STAGEDIR}${PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>