On May 22, 2007, at 00:39, [EMAIL PROTECTED] wrote:
+# MacPorts 1.4.1 or higher adds -I${prefix}/include and -L$
{prefix}/lib flags to the configure by default.
+# This change may break building ghostscript. Here is a workaround
to avoid this issue.
+configure.cppflags {}
+configure.ldflags {}
That seems to work... That is, +universal seems to build a universal
binary:
$ file /opt/local/bin/gs
/opt/local/bin/gs: Mach-O universal binary with 2 architectures
/opt/local/bin/gs (for architecture i386): Mach-O executable i386
/opt/local/bin/gs (for architecture ppc): Mach-O executable ppc
It looks like ghostscript makes use of installed X libraries:
$ otool -L /opt/local/bin/gs
/opt/local/bin/gs:
/usr/X11R6/lib/libXt.6.dylib (compatibility version 6.0.0,
current version 6.0.0)
/usr/X11R6/lib/libSM.6.dylib (compatibility version 6.0.0,
current version 6.0.0)
/usr/X11R6/lib/libICE.6.dylib (compatibility version 6.3.0,
current version 6.3.0)
/usr/X11R6/lib/libXext.6.dylib (compatibility version 6.4.0,
current version 6.4.0)
/usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0,
current version 6.2.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.3.7)
So you should probably add
depends_lib lib:libX11.6:XFree86
to the portfile.
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev