From c3f521d45bc3f2f8c0651cc963b31d70d9e47fca Mon Sep 17 00:00:00 2001
From: Ying-Chieh Liao <ijliao@FreeBSD.org>
Date: Mon, 5 Feb 2007 16:13:14 +0000
Subject: [PATCH] upgrade to 0.8.0

---
 graphics/swftools/Makefile                | 29 ++++++-----------------
 graphics/swftools/distinfo                |  6 ++---
 graphics/swftools/files/patch-Makefile.in | 17 -------------
 3 files changed, 10 insertions(+), 42 deletions(-)
 delete mode 100644 graphics/swftools/files/patch-Makefile.in

diff --git a/graphics/swftools/Makefile b/graphics/swftools/Makefile
index e8ac8d99dab3..1589e306c4b8 100644
--- a/graphics/swftools/Makefile
+++ b/graphics/swftools/Makefile
@@ -7,7 +7,7 @@
 #
 
 PORTNAME=	swftools
-PORTVERSION=	0.7.0
+PORTVERSION=	0.8.0
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.swftools.org/
 
@@ -21,39 +21,24 @@ LIB_DEPENDS=	t1.5:${PORTSDIR}/devel/t1lib \
 		fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
 
 USE_BISON=	yes
+USE_GNOME=	pkgconfig
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-
-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
-
+CONFIGURE_ARGS=	--mandir=${MANPREFIX}/man
 CPPFLAGS=	`pkg-config --cflags-only-I fontconfig freetype2` \
 		-I${LOCALBASE}/include
 LDFLAGS=	`pkg-config --libs-only-L fontconfig freetype2` \
 		-L${LOCALBASE}/lib
 
+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
+
 .if defined(WITH_LAME) || exists(${LOCALBASE}/lib/libmp3lame.a)
 LIB_DEPENDS+=	mp3lame.0:${PORTSDIR}/audio/lame
 .else
 CONFIGURE_ARGS+=	--disable-lame
 .endif
 
-post-patch:
-	@${REINPLACE_CMD} -e 's| -O | |g ; \
-		 s|/usr/local/include|${LOCALBASE}/include|g ; \
-		 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
-
 .include <bsd.port.mk>
diff --git a/graphics/swftools/distinfo b/graphics/swftools/distinfo
index 35f584bc7bbf..ac2b490da98f 100644
--- a/graphics/swftools/distinfo
+++ b/graphics/swftools/distinfo
@@ -1,3 +1,3 @@
-MD5 (swftools-0.7.0.tar.gz) = 785d905756ada33779f3ad14ff8fd423
-SHA256 (swftools-0.7.0.tar.gz) = c8cbba0bf77825a59a2aff4798db399e42a9dcb37883cfc87186e60b286be4bc
-SIZE (swftools-0.7.0.tar.gz) = 1667005
+MD5 (swftools-0.8.0.tar.gz) = acc720839689fbf75c1b119fd00d555d
+SHA256 (swftools-0.8.0.tar.gz) = 2db4d7b88864e81727f8c8b36629749fbeaa5bc3c9ec1d8f74bc4c67837e8948
+SIZE (swftools-0.8.0.tar.gz) = 1734013
diff --git a/graphics/swftools/files/patch-Makefile.in b/graphics/swftools/files/patch-Makefile.in
deleted file mode 100644
index 565b6085aecc..000000000000
--- a/graphics/swftools/files/patch-Makefile.in
+++ /dev/null
@@ -1,17 +0,0 @@
---- Makefile.in.orig	Tue Jul 13 21:32:41 2004
-+++ Makefile.in	Sun Aug 22 00:26:59 2004
-@@ -8,14 +8,10 @@
- 	cd m4;$(MAKE) $@
- 	@echo making $@ in lib...
- 	cd lib;$(MAKE) $@
--	@echo making $@ in lib/python...
--	cd lib/python;$(MAKE) $@
- 	@echo making $@ in src...
- 	cd src;$(MAKE) $@
- 	@echo making $@ in pdf2swf...
- 	cd pdf2swf;$(MAKE) $@
--	@echo making $@ in avi2swf...
--	cd avi2swf;$(MAKE) $@
- 	@echo making $@ in swfs...
- 	cd swfs;$(MAKE) $@
- 	@$(MAKE) $@-local