[43696] trunk/dports/x11/mkfontscale/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 13 15:56:04 PST 2008


Revision: 43696
          http://trac.macports.org/changeset/43696
Author:   jeremyhu at macports.org
Date:     2008-12-13 15:56:04 -0800 (Sat, 13 Dec 2008)
Log Message:
-----------
mkfontscale: buildfix for Tiger using its own X11

Modified Paths:
--------------
    trunk/dports/x11/mkfontscale/Portfile

Modified: trunk/dports/x11/mkfontscale/Portfile
===================================================================
--- trunk/dports/x11/mkfontscale/Portfile	2008-12-13 23:52:53 UTC (rev 43695)
+++ trunk/dports/x11/mkfontscale/Portfile	2008-12-13 23:56:04 UTC (rev 43696)
@@ -31,3 +31,13 @@
 livecheck.check regex
 livecheck.url   [lindex ${master_sites} 0]?C=M&O=D
 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
+
+
+variant macosx {
+	if {${os.major} < 9 && ![file exists ${prefix}/lib/pkgconfig/fontenc.pc]} {
+		configure.env-append \
+			MKFONTSCALE_CFLAGS="-I${x11prefix}/include `pkg-config --cflags freetype2`" \
+			MKFONTSCALE_LIBS="-L${x11prefix}/lib -lfontenc `pkg-config --libs freetype2`"
+	}
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081213/014a323f/attachment.html>


More information about the macports-changes mailing list