[55558] trunk/dports/graphics/libpixman-devel
ryandesign at macports.org
ryandesign at macports.org
Thu Aug 13 04:16:29 PDT 2009
Revision: 55558
http://trac.macports.org/changeset/55558
Author: ryandesign at macports.org
Date: 2009-08-13 04:16:25 -0700 (Thu, 13 Aug 2009)
Log Message:
-----------
libpixman-devel: update to 0.15.20
Modified Paths:
--------------
trunk/dports/graphics/libpixman-devel/Portfile
Added Paths:
-----------
trunk/dports/graphics/libpixman-devel/files/
trunk/dports/graphics/libpixman-devel/files/5db6db74f9539885314762d6f263c826fe7931e0.diff
Modified: trunk/dports/graphics/libpixman-devel/Portfile
===================================================================
--- trunk/dports/graphics/libpixman-devel/Portfile 2009-08-13 11:09:18 UTC (rev 55557)
+++ trunk/dports/graphics/libpixman-devel/Portfile 2009-08-13 11:16:25 UTC (rev 55558)
@@ -5,7 +5,7 @@
name libpixman-devel
set my_name pixman
-version 0.15.18
+version 0.15.20
categories graphics
platforms darwin
maintainers ryandesign
@@ -24,10 +24,12 @@
PixRegion is a set of Y-X banded rectangles that cover the desired region.
checksums \
- md5 87d256db0440e579f113cd4fb67cbfb0 \
- sha1 30d953ff32338740dfdba8764f4cc8545b96d370 \
- rmd160 f2aa711db7154faafd85d9567686ab77fb36a955
+ md5 8cca7bdf45bd3c31cf95ecea0f05bddc \
+ sha1 67a34a1fdc5431c9de5febd390057bdd9bb51df4 \
+ rmd160 95047e078ce8dfe47ff9e2ea50d587fcebbb2751
+depends_build port:autoconf
+
pre-extract {
if {"darwin" == ${os.platform} && 7 == ${os.major}} {
set minimum_xcodeversion 1.5
@@ -39,6 +41,11 @@
}
}
+patchfiles 5db6db74f9539885314762d6f263c826fe7931e0.diff
+patch.post_args -p1
+
+use_autoconf yes
+
configure.args \
--disable-gtk
Added: trunk/dports/graphics/libpixman-devel/files/5db6db74f9539885314762d6f263c826fe7931e0.diff
===================================================================
--- trunk/dports/graphics/libpixman-devel/files/5db6db74f9539885314762d6f263c826fe7931e0.diff (rev 0)
+++ trunk/dports/graphics/libpixman-devel/files/5db6db74f9539885314762d6f263c826fe7931e0.diff 2009-08-13 11:16:25 UTC (rev 55558)
@@ -0,0 +1,70 @@
+commit 5db6db74f9539885314762d6f263c826fe7931e0
+Author: Søren Sandmann Pedersen <sandmann at redhat.com>
+Date: Wed Aug 12 14:08:58 2009 -0400
+
+ Check if we have posix_memalign() in configure.ac. [23260, 23261]
+
+ Fall back to malloc() in blitters-test.c if we don't.
+
+diff --git a/configure.ac b/configure.ac
+index 6f9f600..e6c5e8e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -490,6 +490,14 @@ AC_SUBST(GTK_LIBS)
+ AC_SUBST(DEP_CFLAGS)
+ AC_SUBST(DEP_LIBS)
+
++dnl =====================================
++dnl posix_memalign
++
++AC_CHECK_FUNC(posix_memalign, have_posix_memalign=yes, have_posix_memalign=no)
++if test x$have_posix_memalign = xyes; then
++ AC_DEFINE(HAVE_POSIX_MEMALIGN, 1, [Whether we have posix_memalign()])
++fi
++
+ AC_OUTPUT([pixman-1.pc
+ pixman-1-uninstalled.pc
+ Makefile
+diff --git a/test/blitters-test.c b/test/blitters-test.c
+index 4838e81..23de6c2 100644
+--- a/test/blitters-test.c
++++ b/test/blitters-test.c
+@@ -24,7 +24,7 @@
+ #include <assert.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+-#include <malloc.h>
++#include <config.h>
+ #include "pixman.h"
+
+ /* A primitive pseudorandom number generator, taken from POSIX.1-2001 example */
+@@ -50,6 +50,20 @@ lcg_rand_n (int max)
+ return lcg_rand () % max;
+ }
+
++static void *
++aligned_malloc (size_t align, size_t size)
++{
++ void *result;
++
++#ifdef HAVE_POSIX_MEMALIGN
++ posix_memalign (&result, align, size);
++#else
++ result = malloc (size);
++#endif
++
++ return result;
++}
++
+ /*----------------------------------------------------------------------------*\
+ * CRC-32 version 2.0.0 by Craig Bruce, 2006-04-29.
+ *
+@@ -259,7 +273,7 @@ create_random_image (pixman_format_code_t *allowed_formats,
+ stride = (stride + 3) & ~3;
+
+ /* do the allocation */
+- buf = (uint32_t *)memalign (64, stride * height);
++ buf = aligned_malloc (64, stride * height);
+
+ /* initialize image with random data */
+ for (i = 0; i < stride * height; i++)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090813/4d0c14ef/attachment.html>
More information about the macports-changes
mailing list