libicns1 stable port information

Package: libicns1
Version: 0.7.1
Revision: 2
Description: Library for manipulating Mac icns format
DescDetail: <<
libicns is a library for manipulation of the Mac OS icns resource
format, also known as the IconFamily resource type. It can read and
write files from the Mac OS X icns format, as well as read from Mac OS
resource files and macbinary encoded Mac OS resource forks. As of
release 0.5.9, it can fully read and write any 128x128 and all smaller
32-bit icons, and read support for 8-bit, 4-bit, and 1-bit icons. If
linked against Jasper, it also has full support for 256x256 and 512x512
32-bit icons with masks as alpha channels.
<<
DescPackaging: <<
Does not build with libpng14 due to missing symbols.
<<
License: LGPL2
Homepage: http://icns.sourceforge.net/
Maintainer: Daniel Johnson

Source: mirror:sourceforge:icns/libicns-%v.tar.gz
Source-MD5: ff4624353a074c6cb51e41d145070e10

Depends: %n-shlibs (= %v-%r)
BuildDepends: <<
libjasper.1,
libpng3
<<
BuildDependsOnly: true

ConfigureParams: <<
--disable-dependency-tracking \
--disable-static
<<

CompileScript: <<
#!/bin/bash -ev
# This bit enables stripping unused libs on 10.5 and later.
let version=`uname -r | cut -f 1 -d .`
if [ $version -ge 9 ]; then
export LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
fi

%{default_script}
<<

InstallScript: <<
make install DESTDIR=%d
#No need for dependency_libs in .la files if not building static libs
perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/lib/*.la
<<

DocFiles: AUTHORS ChangeLog COPYING DEVNOTES NEWS README TODO

SplitOff: <<
Package: %N-shlibs

Depends: <<
libjasper.1-shlibs,
libpng3-shlibs
<<

Files: lib/libicns.*.dylib
Shlibs: <<
%p/lib/libicns.1.dylib 3.0.0 %n (>= 0.6.2-1)
<<

DocFiles: AUTHORS ChangeLog COPYING DEVNOTES NEWS README TODO
<<

SplitOff2: <<
Package: %N-bin
Description: Utilities to convert between icns and png
DescDetail: <<
Includes utilities:
icns2png
png2icns
icontainer2icns
<<
License: GPL2

Depends: %N-shlibs (= %v-%r)

Files: bin share

DocFiles: AUTHORS ChangeLog COPYING DEVNOTES NEWS README TODO
<<