Hello Benjamin!

On PPC Leopard I have X11 updated with the version available from Mac OS forge. 
It has:

lrwxr-xr-x  1 root  wheel  14  7 Aug  2011 /usr/X11R6/include/png.h -> 
libpng15/png.h
lrwxr-xr-x  1 root  admin  14  6 Mär 17:43 /sw/include/png.h -> libpng12/png.h

The Makefile has a COMPILE macro in which /usr/X11R6/include comes before 
/sw/include. So when gdk_imlib/io-png.c is compiled pngconf.h and png.h are 
taken from X11 instead of Fink – and compilation fails.

This patch corrects this behaviour:

--- imlib-1.9.15/gdk_imlib/Makefile.in.orig     2004-09-23 03:16:09.000000000 
+0200
+++ imlib-1.9.15/gdk_imlib/Makefile.in  2012-03-07 00:38:20.000000000 +0100
@@ -244,7 +244,7 @@
 
 include_HEADERS = gdk_imlib.h gdk_imlib_private.h gdk_imlib_types.h
 
-INCLUDES = -I. -I$(srcdir) -I.. -I$(srcdir)/.. \
+INCLUDES = -I. -I$(srcdir) -I.. -I$(srcdir)/.. $(CPPFLAGS) \
        $(GTK_CFLAGS) $(X_CFLAGS) $(GMODULE_FLAGS) 
 
 

Using a

CompileScript: <<
        ./configure %c
        make --debug=jv
        fink-package-precedence --prohibit-bdep=%n .
<<

reports the two C header files reliably (when the PATCH is not used).


Is there a reason why this package can't use modern netpbm10? A build at least 
succeeds...

--
Greetings

  Pete

It's not the valleys in life I dread so much as the dips.
                                – Garfield


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to