[35420] trunk/dports/graphics/cairo/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Mar 27 14:33:43 PDT 2008
Revision: 35420
http://trac.macosforge.org/projects/macports/changeset/35420
Author: ryandesign at macports.org
Date: 2008-03-27 14:33:42 -0700 (Thu, 27 Mar 2008)
Log Message:
-----------
cairo: whitespace changes only
Modified Paths:
--------------
trunk/dports/graphics/cairo/Portfile
Modified: trunk/dports/graphics/cairo/Portfile
===================================================================
--- trunk/dports/graphics/cairo/Portfile 2008-03-27 21:32:21 UTC (rev 35419)
+++ trunk/dports/graphics/cairo/Portfile 2008-03-27 21:33:42 UTC (rev 35420)
@@ -1,76 +1,76 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name cairo
-version 1.4.14
-categories graphics
-maintainers ryandesign
-homepage http://cairographics.org/
-master_sites ${homepage}releases/
-platforms darwin
+name cairo
+version 1.4.14
+categories graphics
+maintainers ryandesign
+homepage http://cairographics.org/
+master_sites ${homepage}releases/
+platforms darwin
description \
- Cairo is a vector graphics library with cross-device output support.
+ Cairo is a vector graphics library with cross-device output support.
long_description \
- Cairo is designed to produce identical output on all output media \
- while taking advantage of display hardware acceleration when available \
- (eg. through the X Render Extension).
+ Cairo is designed to produce identical output on all output media \
+ while taking advantage of display hardware acceleration when available \
+ (eg. through the X Render Extension).
checksums \
- md5 e8c442ff821c0719a69508fecba9038f \
- sha1 63310243ba8af949060b06c01fc28ee5471ed5a4 \
- rmd160 9e7c87a292c889b06b29e9622be0a7daa3ddd6fd
+ md5 e8c442ff821c0719a69508fecba9038f \
+ sha1 63310243ba8af949060b06c01fc28ee5471ed5a4 \
+ rmd160 9e7c87a292c889b06b29e9622be0a7daa3ddd6fd
depends_build \
- port:pkgconfig
+ port:pkgconfig
depends_lib \
- port:xrender \
- port:fontconfig \
- port:freetype \
- port:libpng \
- port:render \
- port:zlib \
- port:expat
+ port:xrender \
+ port:fontconfig \
+ port:freetype \
+ port:libpng \
+ port:render \
+ port:zlib \
+ port:expat
# The +universal variant is easier to code if there is always something in
# configure.args, so define these here, even though they're the default.
configure.args \
- --enable-shared \
- --enable-static
+ --enable-shared \
+ --enable-static
variant glitz conflicts no_x11 description {Add glitz graphics interface} {
- depends_lib-append port:glitz
- configure.args-append --enable-glitz
+ depends_lib-append port:glitz
+ configure.args-append --enable-glitz
}
# Quartz and ATSUI support is still experimental in cairo, and the use of
# these variants is not expected to bring you joy at this time.
variant quartz description {Add experimental Quartz graphics interface} {
- configure.args-append --enable-quartz
+ configure.args-append --enable-quartz
}
variant atsui description {Add experimental ATSUI font interface} {
- configure.args-append --enable-atsui
+ configure.args-append --enable-atsui
}
variant no_x11 requires quartz atsui conflicts glitz description {Omit X11 support and build with experimental Quartz and ATSUI support only} {
- depends_lib-delete \
- port:xrender \
- port:render
- configure.args-append \
- --disable-xlib
+ depends_lib-delete \
+ port:xrender \
+ port:render
+ configure.args-append \
+ --disable-xlib
}
variant pdf description "Enable PDF backend" {
- configure.args-append --enable-pdf
+ configure.args-append --enable-pdf
}
set my_worksrcpaths ${worksrcpath}
post-configure {
- foreach my_worksrcpath ${my_worksrcpaths} {
- reinplace "s/-dynamiclib/-dynamiclib -flat_namespace/" ${my_worksrcpath}/libtool
- }
+ foreach my_worksrcpath ${my_worksrcpaths} {
+ reinplace "s/-dynamiclib/-dynamiclib -flat_namespace/" ${my_worksrcpath}/libtool
+ }
}
set my_universal_archs {i386 ppc}
@@ -78,47 +78,47 @@
set my_worksrcpaths {}
variant universal {
- post-patch {
- foreach arch ${my_universal_archs} {
- if {[string equal ${arch} ${first_arch}]} {
- move ${worksrcpath} ${workpath}/${first_arch}
- } else {
- copy ${workpath}/${first_arch} ${workpath}/${arch}
- }
- lappend my_worksrcpaths ${workpath}/${arch}
- }
- }
-
- configure {
- foreach arch ${my_universal_archs} {
- set my_arch_flag "-arch ${arch}"
- set my_cflags "${configure.cflags} -isysroot ${sysroot} ${my_arch_flag}"
- set my_ldflags "${configure.ldflags} ${my_arch_flag}"
- system "cd ${workpath}/${arch} && CFLAGS=\"${my_cflags}\" CXXFLAGS=\"${my_cflags}\" LDFLAGS=\"${my_ldflags}\" ${configure.cmd} ${configure.pre_args} ${configure.args}"
- }
- }
-
- build {
- foreach arch ${my_universal_archs} {
- system "cd ${workpath}/${arch} && ${build.cmd} ${build.pre_args}"
- }
- }
-
- destroot {
- system "cd ${workpath}/${first_arch} && ${destroot.cmd} ${destroot.pre_args} ${destroot.post_args}"
- foreach lib [list [file readlink ${workpath}/${first_arch}/src/.libs/libcairo.dylib] libcairo.a] {
- set output_lib ${destroot}${prefix}/lib/${lib}
- set lipo_args {}
- foreach arch ${my_universal_archs} {
- lappend lipo_args -arch ${arch} ${workpath}/${arch}/src/.libs/${lib}
- }
- lappend lipo_args -create -output ${output_lib}
- delete ${output_lib}
- system "lipo ${lipo_args}"
- }
- }
+ post-patch {
+ foreach arch ${my_universal_archs} {
+ if {[string equal ${arch} ${first_arch}]} {
+ move ${worksrcpath} ${workpath}/${first_arch}
+ } else {
+ copy ${workpath}/${first_arch} ${workpath}/${arch}
+ }
+ lappend my_worksrcpaths ${workpath}/${arch}
+ }
+ }
+
+ configure {
+ foreach arch ${my_universal_archs} {
+ set my_arch_flag "-arch ${arch}"
+ set my_cflags "${configure.cflags} -isysroot ${sysroot} ${my_arch_flag}"
+ set my_ldflags "${configure.ldflags} ${my_arch_flag}"
+ system "cd ${workpath}/${arch} && CFLAGS=\"${my_cflags}\" CXXFLAGS=\"${my_cflags}\" LDFLAGS=\"${my_ldflags}\" ${configure.cmd} ${configure.pre_args} ${configure.args}"
+ }
+ }
+
+ build {
+ foreach arch ${my_universal_archs} {
+ system "cd ${workpath}/${arch} && ${build.cmd} ${build.pre_args}"
+ }
+ }
+
+ destroot {
+ system "cd ${workpath}/${first_arch} && ${destroot.cmd} ${destroot.pre_args} ${destroot.post_args}"
+ foreach lib [list [file readlink ${workpath}/${first_arch}/src/.libs/libcairo.dylib] libcairo.a] {
+ set output_lib ${destroot}${prefix}/lib/${lib}
+ set lipo_args {}
+ foreach arch ${my_universal_archs} {
+ lappend lipo_args -arch ${arch} ${workpath}/${arch}/src/.libs/${lib}
+ }
+ lappend lipo_args -create -output ${output_lib}
+ delete ${output_lib}
+ system "lipo ${lipo_args}"
+ }
+ }
}
-livecheck.check regex
-livecheck.url ${homepage}news/
-livecheck.regex ${name}-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
+livecheck.check regex
+livecheck.url ${homepage}news/
+livecheck.regex ${name}-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080327/b887b20f/attachment-0001.html
More information about the macports-changes
mailing list