On 02 Jul 2008, at 22:46, Jack Howarth wrote: > I am running into issues in the openmotif4 packaging > where the use of... > > --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib > > passed to configure seems to be preventing configure from > properly finding the fink freetype or libpng headers/libraries > despite the use of --with-freetype-includes, --with-freetype-lib, > --with-libpng-includes and --with-libpng-lib to point inside > /sw for these. The problem seems to be the fact that configure > places -I/usr/X11R6/include and -L/usr/X11R6/lib in front of the > flags for those directories in /sw. This means that the freetype > and libpng in /usr/X11R6 are always used instead of that in /sw. > Has anyone worked around this issue with other packages? > Jack
There is no direct freetype dependency : # for f in `dpkg -L openmotif4-bin openmotif4-shlibs|xargs file|fgrep 'Mach-O'|cut -f1 -d:`; do nm -mfgu $f|sed -e 's,.* (from ,,' -e 's,),,'; done | sort -u libMrm libSystem libX11 libXext libXft libXm libXmu libXp libXt libfontconfig libiconv libjpeg.62 libpng12 So the freetype dependency is only through x11's libfontconfig, which is linked to x11's freetype, so it seems safer to use that one's headers (freetype-includes and freetype-lib in %c), and to drop the freetype dependency. As to libpng _ here it is linked correctly to fink's libpng, but I'm using xorg, so have none in x11. It is only libXm that needs it _ for the other binaries, it appears among the load-commands just by lazyness.. That's a matter of adjusting flags _ many packages have to do such things.. Jean-Francois ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Fink-devel mailing list [email protected] http://news.gmane.org/gmane.os.apple.fink.devel
