[45024] trunk/dports/graphics/libwmf/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Jan 6 11:40:09 PST 2009


Revision: 45024
          http://trac.macports.org/changeset/45024
Author:   jeremyhu at macports.org
Date:     2009-01-06 11:40:08 -0800 (Tue, 06 Jan 2009)
Log Message:
-----------
libwmf: Build universal, cache fonts, updated X11 dependencies

Modified Paths:
--------------
    trunk/dports/graphics/libwmf/Portfile

Modified: trunk/dports/graphics/libwmf/Portfile
===================================================================
--- trunk/dports/graphics/libwmf/Portfile	2009-01-06 16:53:04 UTC (rev 45023)
+++ trunk/dports/graphics/libwmf/Portfile	2009-01-06 19:40:08 UTC (rev 45024)
@@ -5,7 +5,8 @@
 
 name				libwmf
 version				0.2.8.4
-categories			graphics
+revision			1
+categories			graphics fonts
 maintainers			nomaintainer
 description			Library for converting WMF (Window Metafile Format) files
 long_description \
@@ -21,18 +22,26 @@
 
 checksums			md5 d1177739bf1ceb07f57421f0cee191e0
 
-depends_lib			lib:libz:zlib lib:libpng:libpng lib:libjpeg:jpeg \
-					lib:libfreetype:freetype
+depends_build \
+        port:autoconf \
+        port:automake \
+        port:libtool \
+        port:mkfontdir
 
+depends_lib \
+	port:zlib \
+	port:libpng \
+	port:jpeg \
+	port:freetype
+
 post-patch {
+	system "cd ${worksrcpath} && autoreconf -fvi"
 	reinplace "s|@LIBWMF_GDK_PIXBUF_TRUE@|#|g" ${worksrcpath}/src/Makefile.in
 	reinplace "s|@LIBWMF_GDK_PIXBUF_FALSE@||g" ${worksrcpath}/src/Makefile.in
 }
 
-configure.env  PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${x11prefix}/lib/pkgconfig"
+configure.args	--with-jpeg --without-x --with-fontdir=${prefix}/share/fonts/${name}
 
-configure.args	--with-jpeg --without-x
-
 post-destroot {
 	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
 	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING CREDITS ChangeLog \
@@ -40,18 +49,22 @@
 }
 
 variant expat conflicts xml2 description {Use expat not libxml2} {
-	depends_lib-append		lib:libexpat:expat
+	depends_lib-append	port:expat
 	configure.args-append	--with-expat
 }
 
 variant x11 description {Enable X11 support} {
-	depends_lib-append		lib:libX11.6:XFree86
+	depends_lib-append	lib:libX11.6:xorg-libX11
 	configure.args-delete	--without-x
 	configure.args-append	--with-x
+
+	post-destroot {
+		system "mkfontscale ${destroot}${prefix}/share/fonts/${name} && mkfontdir ${destroot}${prefix}/share/fonts/${name}"
+	}
 }
 
 variant xml2 conflicts expat description {Use libxml2 not expat} {
-	depends_lib-append		lib:libxml2:libxml2
+	depends_lib-append	port:libxml2
 	configure.args-append	--with-libxml2
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090106/1b64bcc6/attachment.html>


More information about the macports-changes mailing list