aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2014-03-30 23:18:18 +0800
committerdinoex <dinoex@FreeBSD.org>2014-03-30 23:18:18 +0800
commit9929b73bbe0367638a0996f8843937e08bb0750c (patch)
tree91a97e15192277a4dc1f1df757d1b09e34df72bf /graphics
parent85e19c10177d552f52132b580c3ffeabad1313ee (diff)
downloadfreebsd-ports-gnome-9929b73bbe0367638a0996f8843937e08bb0750c.tar.gz
freebsd-ports-gnome-9929b73bbe0367638a0996f8843937e08bb0750c.tar.zst
freebsd-ports-gnome-9929b73bbe0367638a0996f8843937e08bb0750c.zip
- use STAGEDIR
- take maintainership
Diffstat (limited to 'graphics')
-rw-r--r--graphics/swftools/Makefile21
-rw-r--r--graphics/swftools/pkg-plist15
2 files changed, 33 insertions, 3 deletions
diff --git a/graphics/swftools/Makefile b/graphics/swftools/Makefile
index 53bc29ccb03c..daa32d375c99 100644
--- a/graphics/swftools/Makefile
+++ b/graphics/swftools/Makefile
@@ -8,7 +8,7 @@ CATEGORIES= graphics
MASTER_SITES= http://www.swftools.org/ \
http://www.c-s.li/ports/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= dinoex@FreeBSD.org
COMMENT= SWF manipulation and generation utilities
LICENSE= GPLv2
@@ -20,8 +20,6 @@ LIB_DEPENDS= libt1.so:${PORTSDIR}/devel/t1lib \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
-NO_STAGE= yes
-
USES= pkgconfig gmake
USE_GL= glut
GNU_CONFIGURE= yes
@@ -34,6 +32,10 @@ MAN1= as3compile.1 font2swf.1 gif2swf.1 jpeg2swf.1 pdf2swf.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
@@ -47,6 +49,7 @@ CONFIGURE_ENV+= ac_cv_lib_mp3lame_lame_init=no
.if ${PORT_OPTIONS:MPDF}
MAN1+= pdf2pdf.1
+BINFILES+= pdf2pdf
.else
CONFIGURE_ENV+= ac_cv_lib_pdf_PDF_open_file=no
.endif
@@ -59,4 +62,16 @@ post-patch:
${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>
diff --git a/graphics/swftools/pkg-plist b/graphics/swftools/pkg-plist
index b600c1bcd11c..84d74b835064 100644
--- a/graphics/swftools/pkg-plist
+++ b/graphics/swftools/pkg-plist
@@ -13,6 +13,21 @@ bin/swfextract
bin/swfrender
bin/swfstrings
bin/wav2swf
+man/man1/as3compile.1.gz
+man/man1/font2swf.1.gz
+man/man1/gif2swf.1.gz
+man/man1/jpeg2swf.1.gz
+%%PDF%%man/man1/pdf2pdf.1.gz
+man/man1/pdf2swf.1.gz
+man/man1/png2swf.1.gz
+man/man1/swfbbox.1.gz
+man/man1/swfc.1.gz
+man/man1/swfcombine.1.gz
+man/man1/swfdump.1.gz
+man/man1/swfextract.1.gz
+man/man1/swfrender.1.gz
+man/man1/swfstrings.1.gz
+man/man1/wav2swf.1.gz
%%DATADIR%%/swfs/PreLoaderTemplate.swf
%%DATADIR%%/swfs/default_loader.swf
%%DATADIR%%/swfs/default_viewer.swf