[99530] trunk/dports/graphics
ryandesign at macports.org
ryandesign at macports.org
Thu Nov 8 09:36:02 PST 2012
Revision: 99530
http://trac.macports.org//changeset/99530
Author: ryandesign at macports.org
Date: 2012-11-08 09:36:02 -0800 (Thu, 08 Nov 2012)
Log Message:
-----------
libpixman, libpixman-devel: fix build on ppc (#36923)
Modified Paths:
--------------
trunk/dports/graphics/libpixman/Portfile
trunk/dports/graphics/libpixman-devel/Portfile
Added Paths:
-----------
trunk/dports/graphics/libpixman/files/
trunk/dports/graphics/libpixman/files/pixman_pixman-ppc.c.patch
trunk/dports/graphics/libpixman-devel/files/
trunk/dports/graphics/libpixman-devel/files/pixman_pixman-ppc.c.patch
Modified: trunk/dports/graphics/libpixman/Portfile
===================================================================
--- trunk/dports/graphics/libpixman/Portfile 2012-11-08 15:39:09 UTC (rev 99529)
+++ trunk/dports/graphics/libpixman/Portfile 2012-11-08 17:36:02 UTC (rev 99530)
@@ -31,6 +31,8 @@
# freedesktop is down at the moment...
master_sites-append ftp://distfiles.pld-linux.org/distfiles/by-md5/7/0/703c3f62437b161c610056e076560570
+patchfiles pixman_pixman-ppc.c.patch
+
# llvm-gcc-4.2 makes cairo fail to generate PDFs properly
# clang on Xcode 4.1 cannot build libpixman
if {${configure.compiler} == "llvm-gcc-4.2"} {
Added: trunk/dports/graphics/libpixman/files/pixman_pixman-ppc.c.patch
===================================================================
--- trunk/dports/graphics/libpixman/files/pixman_pixman-ppc.c.patch (rev 0)
+++ trunk/dports/graphics/libpixman/files/pixman_pixman-ppc.c.patch 2012-11-08 17:36:02 UTC (rev 99530)
@@ -0,0 +1,26 @@
+--- pixman/pixman-ppc.c.orig 2012-11-08 05:24:48.000000000 +1100
++++ pixman/pixman-ppc.c 2012-11-08 21:21:09.000000000 +1100
+@@ -37,10 +37,10 @@
+ static pixman_bool_t
+ pixman_have_vmx (void)
+ {
++ int error, have_vmx;
+ size_t length = sizeof(have_vmx);
+- int error, have_mmx;
+
+- sysctlbyname ("hw.optional.altivec", &have_vmx, &length, NULL, 0);
++ error = sysctlbyname ("hw.optional.altivec", &have_vmx, &length, NULL, 0);
+
+ if (error)
+ return FALSE;
+@@ -56,9 +56,9 @@ pixman_have_vmx (void)
+ static pixman_bool_t
+ pixman_have_vmx (void)
+ {
++ int error, have_vmx;
+ int mib[2] = { CTL_MACHDEP, CPU_ALTIVEC };
+ size_t length = sizeof(have_vmx);
+- int error, have_vmx;
+
+ error = sysctl (mib, 2, &have_vmx, &length, NULL, 0);
+
Modified: trunk/dports/graphics/libpixman-devel/Portfile
===================================================================
--- trunk/dports/graphics/libpixman-devel/Portfile 2012-11-08 15:39:09 UTC (rev 99529)
+++ trunk/dports/graphics/libpixman-devel/Portfile 2012-11-08 17:36:02 UTC (rev 99530)
@@ -28,6 +28,8 @@
checksums rmd160 2b60d9ec6c4f1313201f835659dd5e1ebc3a9754 \
sha256 3309ec71b9a8f77b9c82daf88e54642f73a8f4abf7e1e10e2a43a2f6f814b3c3
+patchfiles pixman_pixman-ppc.c.patch
+
# llvm-gcc-4.2 makes cairo fail to generate PDFs properly
# clang on Xcode 4.1 cannot build libpixman
if {${configure.compiler} == "llvm-gcc-4.2"} {
Added: trunk/dports/graphics/libpixman-devel/files/pixman_pixman-ppc.c.patch
===================================================================
--- trunk/dports/graphics/libpixman-devel/files/pixman_pixman-ppc.c.patch (rev 0)
+++ trunk/dports/graphics/libpixman-devel/files/pixman_pixman-ppc.c.patch 2012-11-08 17:36:02 UTC (rev 99530)
@@ -0,0 +1,26 @@
+--- pixman/pixman-ppc.c.orig 2012-11-08 05:24:48.000000000 +1100
++++ pixman/pixman-ppc.c 2012-11-08 21:21:09.000000000 +1100
+@@ -37,10 +37,10 @@
+ static pixman_bool_t
+ pixman_have_vmx (void)
+ {
++ int error, have_vmx;
+ size_t length = sizeof(have_vmx);
+- int error, have_mmx;
+
+- sysctlbyname ("hw.optional.altivec", &have_vmx, &length, NULL, 0);
++ error = sysctlbyname ("hw.optional.altivec", &have_vmx, &length, NULL, 0);
+
+ if (error)
+ return FALSE;
+@@ -56,9 +56,9 @@ pixman_have_vmx (void)
+ static pixman_bool_t
+ pixman_have_vmx (void)
+ {
++ int error, have_vmx;
+ int mib[2] = { CTL_MACHDEP, CPU_ALTIVEC };
+ size_t length = sizeof(have_vmx);
+- int error, have_vmx;
+
+ error = sysctl (mib, 2, &have_vmx, &length, NULL, 0);
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121108/59a254cc/attachment.html>
More information about the macports-changes
mailing list