#1894 closed defect (fixed)
graphics/pngmeta doesn't configure
Reported by: | chris.ridd@… | Owned by: | fkr@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
The configure phase fails on Panther with a DP version of libpng and zlib installed: % port installed | egrep 'png|zlib'
libpng-1.2.5 pngcrush-1.5.10 zlib-1.1.4
configure output:
DEBUG: Assembled command: 'cd "/Users/cjr/Documents/Projects/darwinports/dports/graphics/ pngmeta/work/pngmeta-1.11" && ./configure --prefix=/opt/local --with-png=/opt/local' creating cache ./config.cache checking for a BSD compatible install... /opt/local/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for installed zlib... yes checking for local copy of libpng distribution... /opt/local checking for zlibVersion in -lz... no configure: error: could not find libz
Here's the config.log output: configure:1048: checking for installed zlib configure:1059: gcc -o conftest -g -O2 conftest.c -lz 1>&5 configure: In function `main': configure:1055: warning: initialization discards qualifiers from pointer target type configure:1134: checking for local copy of libpng distribution configure:1174: checking for zlibVersion in -lz configure:1193: gcc -o conftest -g -O2 -I/opt/local conftest.c -lz -L/opt/lo cal -lpng 1>&5 ld: can't locate file for: -lpng
It seems like configure is using the literal value of --with-png to set the include path and lib search paths, so how could this ever have worked?
Changing the configure.args as follows looks really nasty, but does seem to work!
configure.args --with-png-includes="${prefix}/include" \
--with-png-lib="${prefix}/lib" \ --with-png="${prefix}/include" --with-zlib="${prefix}/include" \ --with-zlib-includes="${prefix}/include" \ --with-zlib-lib="${prefix}/lib"
Attachments (1)
Change History (2)
Changed 20 years ago by thomas+opendarwin@…
Attachment: | pngmeta-1.11_0-zlib-png-path-fix.patch added |
---|
comment:1 Changed 20 years ago by fkr@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
committed. thanks a lot!
patch for the pngmeta 1.11_0 Portfile