libgeotiff stable port information

Info2: <<
Package: libgeotiff
Version: 1.2.5
Revision: 6
Description: GeoTIFF handling library
License: BSD
Homepage: http://trac.osgeo.org/geotiff/
Maintainer: BABA Yoshihiko
Source: ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/%n-%v.tar.gz
Source-MD5: 000f247a88510f1b38d4b314d1e47048

Depends: <<
%n-shlibs (= %v-%r),
libjpeg-shlibs, libtiff-shlibs, proj-shlibs
<<
BuildDepends: <<
fink (>= 0.28),
libjpeg, libtiff, proj
<<
Replaces: %n-shlibs (<< 1.2.6-1)
BuildDependsOnly: True

PatchFile: %n.patch
PatchFile-MD5: 364f5761fd4ebcd3db3f985625c985b1

SetCPPFLAGS: -Os -I%p/include
SetDYLD_LIBRARY_PATH: %p/lib
ConfigureParams: --with-zip=/usr/include --with-jpeg=%p/include --with-libtiff=%p/include --with-proj-lib=%p/include

CompileScript: <<
#!/bin/sh -xe
./configure %c
make
<<
InstallScript: <<
#!/bin/sh -xe
make install prefix=%i
pushd %i/lib
mv %n.dylib.%v %n.%v.dylib
install_name_tool -id "%p/lib/%n.%v.dylib" %n.%v.dylib
rm libgeotiff.dylib*
ln -s libgeotiff.%v.dylib libgeotiff.1.2.dylib
ln -s libgeotiff.%v.dylib libgeotiff.1.dylib
ln -s libgeotiff.%v.dylib libgeotiff.dylib
popd

pushd %i/bin
install_name_tool -change libgeotiff.dylib.%v %p/lib/libgeotiff.%v.dylib geotifcp
install_name_tool -change libgeotiff.dylib.%v %p/lib/libgeotiff.%v.dylib listgeo
popd
<<
DocFiles: HOWTO-RELEASE LICENSE README README_BIN

SplitOff: <<
Package: %N-shlibs
# ***** Fink Shared Library Policy *****
# If you change the install_name, you *must* change Package the name.
# They are hard-coded here to avoid accidentally breaking things for users.
Files: lib/libgeotiff.1.2.5.dylib
Shlibs: <<
%p/lib/libgeotiff.1.2.5.dylib 0.0.0 %n (>= 1.2.5-1)
<<
Description: Shared libraries for libgeotiff package
DocFiles: HOWTO-RELEASE LICENSE README README_BIN
<<

# End of Info2
<<



libgeotiff stable port .patch

diff -ruN libgeotiff-1.2.5.orig/configure libgeotiff-1.2.5/configure
--- libgeotiff-1.2.5.orig/configure 2009-11-18 13:17:09.000000000 +0900
+++ libgeotiff-1.2.5/configure 2009-11-18 13:36:19.000000000 +0900
@@ -3094,11 +3094,11 @@
fi


- if test ! -z "`uname | grep Darwin`" \
- -a "$LD_SHARED" = "/bin/true" \
- -a -z "`${CXX} -dynamiclib conftest2.o -o libconftest.so 2>&1`" ; then
- ${CC} -c conftest1.c
- if test -z "`${CXX} conftest1.o libconftest.so -o conftest1 2>&1`"; then
+# if test ! -z "`uname | grep Darwin`" \
+# -a "$LD_SHARED" = "/bin/true" \
+# -a -z "`${CXX} -dynamiclib conftest2.o -o libconftest.so 2>&1`" ; then
+# ${CC} -c conftest1.c
+# if test -z "`${CXX} conftest1.o libconftest.so -o conftest1 2>&1`"; then
DYLD_LIBRARY_PATH_OLD="$DYLD_LIBRARY_PATH"
if test -z "$DYLD_LIBRARY_PATH" ; then
DYLD_LIBRARY_PATH="`pwd`"
@@ -3106,15 +3106,15 @@
DYLD_LIBRARY_PATH="`pwd`:$DYLD_LIBRARY_PATH"
fi
export DYLD_LIBRARY_PATH
- if test -z "`./conftest1 2>&1`" ; then
- echo "checking for ${CXX} -dynamiclib ... yes"
- LD_SHARED="${CXX} -dynamiclib"
+# if test -z "`./conftest1 2>&1`" ; then
+ echo "checking for gcc -dynamiclib ... yes"
+ LD_SHARED="gcc -dynamiclib"
SO_EXT=dylib
- fi
+# fi
DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH_OLD"
- fi
- rm -f conftest1.o
- fi
+# fi
+# rm -f conftest1.o
+# fi

if test "$LD_SHARED" = "/bin/true" \
-a -z "`${CXX} -shared $IRIX_ALL conftest2.o -o libconftest.so 2>&1|grep -v WARNING`" ; then

libgeotiff _unstable_ port .patch