pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/40473 ("babl" package doesn't build under Mac OS X PowerPC)



Synopsis: "babl" package doesn't build under Mac OS X PowerPC

State-Changed-From-To: open->analyzed
State-Changed-By: tron%NetBSD.org@localhost
State-Changed-When: Sun, 25 Jan 2009 18:12:39 +0000
State-Changed-Why:
The following patch fixes the build problem for me:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/babl/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile    19 Aug 2008 17:51:14 -0000      1.1.1.1
+++ Makefile    25 Jan 2009 18:11:36 -0000
@@ -1,5 +1,4 @@
 # $NetBSD: Makefile,v 1.1.1.1 2008/08/19 17:51:14 bjs Exp $
-#
 
 DISTNAME=      babl-${BABL_VERSION}
 CATEGORIES=    graphics
@@ -23,5 +22,17 @@
 
 .include "Makefile.version"
 
+# Work around broken makefile, please see here:
+# http://bugzilla.gnome.org/show_bug.cgi?id=569085
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Darwin"
+SUBST_CLASSES+=                plugin
+SUBST_STAGE.plugin=    post-configure
+SUBST_FILES.plugin=    extensions/Makefile
+SUBST_SED.plugin=      -e "s/SHREXT = .dylib/SHREXT = .so/"
+SUBST_SED.plugin+=     -e "s/DYNAMICLIB = -dynamiclib/DYNAMICLIB = -bundle/"
+SUBST_SED.plugin+=     -e 
"s/BABL_API_VERSION...SHREXT./BABL_API_VERSION).dylib/"
+.endif
+
 .include "../../mk/dlopen.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/babl/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo    19 Aug 2008 17:51:14 -0000      1.1.1.1
+++ distinfo    25 Jan 2009 18:11:36 -0000
@@ -5,3 +5,4 @@
 Size (babl-0.0.22.tar.bz2) = 396413 bytes
 SHA1 (patch-aa) = f9f29ca359160ca37193cab85c5ab794208e84b1
 SHA1 (patch-ab) = 1fc18c1767277f92c0c65a1e27a72e4636eb406b
+SHA1 (patch-ac) = ab520d63cc602790a818aa9b5d8d3c1995d444ac
Index: patches/patch-ac
===================================================================
RCS file: patches/patch-ac
diff -N patches/patch-ac
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-ac    25 Jan 2009 18:11:36 -0000
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Mac OS X build fix, taken from:
+http://svn.gnome.org/viewvc/babl/trunk/babl/babl-cpuaccel.c?r1=316&r2=347
+
+--- babl/babl-cpuaccel.c.orig  2008-05-23 15:37:21.000000000 +0100
++++ babl/babl-cpuaccel.c       2009-01-25 15:13:14.000000000 +0000
+@@ -39,6 +39,7 @@
+ typedef unsigned int guint32;
+ typedef int gint;
+ typedef char gchar;
++typedef size_t gsize;
+ #define TRUE  1
+ #define FALSE 0
+ #define G_GNUC_CONST




Home | Main Index | Thread Index | Old Index