2002-02-08 19:27:10 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: swftools
|
|
|
|
# Date created: Feb 9, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= swftools
|
2005-03-02 05:32:02 +00:00
|
|
|
PORTVERSION= 0.6.3
|
2002-02-08 19:27:10 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://www.quiss.org/swftools/
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= SWF manipulation and generation utilities
|
2002-02-08 19:27:10 +00:00
|
|
|
|
2005-03-02 05:32:02 +00:00
|
|
|
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \
|
2004-02-08 13:59:23 +00:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2005-03-02 05:32:02 +00:00
|
|
|
ungif.5:${PORTSDIR}/graphics/libungif \
|
2004-10-12 12:55:44 +00:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
|
2002-02-08 19:27:10 +00:00
|
|
|
|
2002-06-19 08:18:10 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-02-17 13:59:23 +00:00
|
|
|
USE_BISON= yes
|
2003-01-12 01:21:21 +00:00
|
|
|
USE_GMAKE= yes
|
2002-02-08 19:27:10 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-08-22 01:18:33 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-10-12 12:55:44 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
|
2005-03-02 05:32:02 +00:00
|
|
|
MAN1= font2swf.1 gif2swf.1 jpeg2swf.1 pdf2swf.1 png2swf.1 \
|
|
|
|
swfbbox.1 swfc.1 swfcombine.1 swfdump.1 swfextract.1 \
|
|
|
|
swfstrings.1 wav2swf.1
|
2002-02-08 19:27:10 +00:00
|
|
|
|
2004-10-12 12:55:44 +00:00
|
|
|
CPPFLAGS= `pkg-config --cflags-only-I fontconfig freetype2` \
|
|
|
|
-I${LOCALBASE}/include
|
|
|
|
LDFLAGS= `pkg-config --libs-only-L fontconfig freetype2` \
|
|
|
|
-L${LOCALBASE}/lib
|
2002-05-31 23:19:36 +00:00
|
|
|
|
2005-03-02 05:32:02 +00:00
|
|
|
.if defined(WITH_LAME) || exists(${LOCALBASE}/lib/libmp3lame.a)
|
|
|
|
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-lame
|
|
|
|
.endif
|
|
|
|
|
2002-05-31 23:19:36 +00:00
|
|
|
post-patch:
|
2004-08-22 01:18:33 +00:00
|
|
|
@${REINPLACE_CMD} -e 's| -O | |g ; \
|
|
|
|
s|/usr/local/include|${LOCALBASE}/include|g ; \
|
2004-10-12 12:55:44 +00:00
|
|
|
s|/usr/local/lib|${LOCALBASE}/lib|g ; \
|
|
|
|
s|HAVE_FONTCONFIG_H|HAVE_FONTCONFIG_FONTCONFIG_H|g ; \
|
|
|
|
s| fontconfig\.h| fontconfig/fontconfig.h|g ; \
|
|
|
|
s|<fontconfig\.h>|<fontconfig/fontconfig.h>|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|HAVE_FONTCONFIG_H|HAVE_FONTCONFIG_FONTCONFIG_H|g' ${WRKSRC}/config.h.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|;make|;\$$\(MAKE\)|g' ${WRKSRC}/lib/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|HAVE_FONTCONFIG_H|HAVE_FONTCONFIG_FONTCONFIG_H|g ; \
|
|
|
|
s|<fontconfig\.h>|<fontconfig/fontconfig.h>|g' ${WRKSRC}/pdf2swf/SWFOutputDev.cc
|
2002-02-08 19:27:10 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|