[37447] trunk/dports/graphics/cairo/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Jun 8 01:38:26 PDT 2008
Revision: 37447
http://trac.macosforge.org/projects/macports/changeset/37447
Author: ryandesign at macports.org
Date: 2008-06-08 01:38:25 -0700 (Sun, 08 Jun 2008)
Log Message:
-----------
cairo:
* move Mac OS X-specific Quartz backends to `platform macosx` section; don't try to build Quartz support on other platforms
* manually install cairo-quartz-font.pc which cairo apparently forgets to do on its own
Closes #15209.
Modified Paths:
--------------
trunk/dports/graphics/cairo/Portfile
Modified: trunk/dports/graphics/cairo/Portfile
===================================================================
--- trunk/dports/graphics/cairo/Portfile 2008-06-08 07:42:38 UTC (rev 37446)
+++ trunk/dports/graphics/cairo/Portfile 2008-06-08 08:38:25 UTC (rev 37447)
@@ -5,11 +5,12 @@
name cairo
set my_name cairo
version 1.6.4
+revision 1
categories graphics
maintainers ryandesign
homepage http://cairographics.org/
master_sites ${homepage}releases/
-platforms darwin
+platforms darwin macosx
use_parallel_build yes
dist_subdir ${my_name}
distname ${my_name}-${version}
@@ -44,14 +45,14 @@
# configure.args must not be empty!
configure.args \
--disable-glitz \
+ --disable-quartz \
+ --disable-quartz-font \
+ --disable-quartz-image \
--disable-xcb \
--enable-freetype \
--enable-pdf \
--enable-png \
--enable-ps \
- --enable-quartz \
- --enable-quartz-font \
- --enable-quartz-image \
--enable-svg \
--enable-xlib \
--enable-xlib-xrender \
@@ -80,7 +81,23 @@
--without-x
}
-set my_worksrcpaths ${worksrcpath}
+platform macosx {
+ configure.args-delete \
+ --disable-quartz \
+ --disable-quartz-font \
+ --disable-quartz-image \
+
+ configure.args-append \
+ --enable-quartz \
+ --enable-quartz-font \
+ --enable-quartz-image \
+
+ post-destroot {
+ xinstall -m 0644 -W [lindex ${my_worksrcpaths} 0] \
+ src/cairo-quartz-font.pc \
+ ${destroot}${prefix}/lib/pkgconfig
+ }
+}
post-configure {
foreach my_worksrcpath ${my_worksrcpaths} {
@@ -90,9 +107,15 @@
set my_universal_archs {i386 ppc}
set first_arch [lindex ${my_universal_archs} 0]
-set my_worksrcpaths {}
+set my_worksrcpaths ${worksrcpath}
+
variant universal {
+ set my_worksrcpaths {}
+ foreach arch ${my_universal_archs} {
+ lappend my_worksrcpaths ${workpath}/${arch}
+ }
+
post-patch {
foreach arch ${my_universal_archs} {
if {[string equal ${arch} ${first_arch}]} {
@@ -100,7 +123,6 @@
} else {
copy ${workpath}/${first_arch} ${workpath}/${arch}
}
- lappend my_worksrcpaths ${workpath}/${arch}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080608/a5599c2a/attachment.htm
More information about the macports-changes
mailing list