1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/graphics/swftools/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

78 lines
2.1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= swftools
PORTVERSION= 0.9.2
PORTREVISION= 5
CATEGORIES= graphics
MASTER_SITES= http://www.swftools.org/ \
http://www.c-s.li/ports/
MAINTAINER= dinoex@FreeBSD.org
COMMENT= SWF manipulation and generation utilities
LICENSE= GPLv2
LIB_DEPENDS= libt1.so:${PORTSDIR}/devel/t1lib \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libgif.so:${PORTSDIR}/graphics/giflib \
libfftw3.so:${PORTSDIR}/math/fftw3 \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
USES= gmake pkgconfig
USE_GL= glut
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_lib_zzip_zzip_file_open=no
MAN1= as3compile.1 font2swf.1 gif2swf.1 jpeg2swf.1 pdf2swf.1 \
png2swf.1 swfbbox.1 swfc.1 swfcombine.1 swfdump.1 \
swfextract.1 swfrender.1 swfstrings.1 wav2swf.1
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
BINFILES= as3compile font2swf gif2swf jpeg2swf pdf2swf png2swf \
swfbbox swfc swfcombine swfdump swfextract swfrender \
swfstrings wav2swf
OPTIONS_DEFINE= LAME PDF
OPTIONS_SUB= yes
LAME_LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame
PDF_LIB_DEPENDS= libpdf.so:${PORTSDIR}/print/pdflib
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MLAME}
CONFIGURE_ENV+= ac_cv_lib_mp3lame_lame_init=no
.endif
.if ${PORT_OPTIONS:MPDF}
MAN1+= pdf2pdf.1
BINFILES+= pdf2pdf
.else
CONFIGURE_ENV+= ac_cv_lib_pdf_PDF_open_file=no
.endif
post-patch:
${REINPLACE_CMD} -e 's| -O | |g ; \
s|/usr/include/fontconfig|${LOCALBASE}/include/fontconfig|g ; \
s|/usr/local/include|${LOCALBASE}/include|g ; \
s|/usr/local/lib|${LOCALBASE}/lib|g' ${WRKSRC}/configure
${REINPLACE_CMD} -e '/python/d ; \
/avi2swf/d' ${WRKSRC}/Makefile.in
do-install:
.for i in ${BINFILES}
${INSTALL_PROGRAM} ${WRKSRC}/src/${i} ${STAGEDIR}${PREFIX}/bin/
.endfor
.for i in ${MAN1}
${INSTALL_DATA} ${WRKSRC}/src/${i} ${STAGEDIR}${PREFIX}/man/man1/
.endfor
${MKDIR} ${STAGEDIR}${DATADIR}/swfs
${INSTALL_DATA} ${WRKSRC}/swfs/*.swf ${STAGEDIR}${DATADIR}/swfs/
${LN} -s simple_viewer.swf ${STAGEDIR}${DATADIR}/swfs/default_viewer.swf
${LN} -s tessel_loader.swf ${STAGEDIR}${DATADIR}/swfs/default_loader.swf
.include <bsd.port.mk>