Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Mar 2014 15:18:19 +0000 (UTC)
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349635 - head/graphics/swftools
Message-ID:  <201403301518.s2UFIJYD032558@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dinoex
Date: Sun Mar 30 15:18:18 2014
New Revision: 349635
URL: http://svnweb.freebsd.org/changeset/ports/349635
QAT: https://qat.redports.org/buildarchive/r349635/

Log:
  - use STAGEDIR
  - take maintainership

Modified:
  head/graphics/swftools/Makefile
  head/graphics/swftools/pkg-plist

Modified: head/graphics/swftools/Makefile
==============================================================================
--- head/graphics/swftools/Makefile	Sun Mar 30 14:59:41 2014	(r349634)
+++ head/graphics/swftools/Makefile	Sun Mar 30 15:18:18 2014	(r349635)
@@ -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/
 		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
 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_i
 
 .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>

Modified: head/graphics/swftools/pkg-plist
==============================================================================
--- head/graphics/swftools/pkg-plist	Sun Mar 30 14:59:41 2014	(r349634)
+++ head/graphics/swftools/pkg-plist	Sun Mar 30 15:18:18 2014	(r349635)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403301518.s2UFIJYD032558>