taglib stable port information

Info4: <<
Package: taglib
Version: 1.6.3
Revision: 1
Description: Audio meta-data library
License: LGPL
Maintainer: Benjamin Reed

Depends: %N-shlibs (>= %v-%r)
BuildDepends: <<
kde4-buildenv (>= 4.5.1-1),
fink (>= 0.29.7-1)
<<
BuildDependsOnly: true
GCC: 4.0

CustomMirror: <<
Primary: http://www.finkproject.org/~ranger/distfiles
eur-NL: http://www.finkproject.org/~ranger/distfiles
nam-US: http://ranger.befunk.com/fink
<<
Source: http://ktown.kde.org/~wheeler/files/src/%n-%v.tar.gz
Source-MD5: ddf02f4e1d2dc30f76734df806e613eb
PatchFile: %n.patch
PatchFile-MD5: 6574a9274cf593111487b7313c6ff174

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
UseMaxBuildJobs: true
CompileScript: <<
#!/bin/sh -ev


export KDE4_PREFIX="%p" KDE4_TYPE="x11" KDE4_INSTALL_PREFIX="%p"
. %p/sbin/kde4-buildenv.sh

mkdir -p build
pushd build
cmake $KDE4_CMAKE_ARGS -DWITH_ASF:BOOL=TRUE -DWITH_MP4:BOOL=TRUE ..
# ugh, the things I do to remain backwards-compatible with libtool versioning
perl -pi -e 's,-compatibility_version 1.0.0 -current_version %v,,' taglib/CMakeFiles/tag.dir/link.txt
make VERBOSE=1
popd
<<

InstallScript: <<
#!/bin/sh -ev

pushd build
make -j1 install/fast DESTDIR="%d"

install -d -m 755 %i/share/doc/%N
mv examples %i/share/doc/%N/

mkdir -p %i/share/doc/installed-packages
touch %i/share/doc/installed-packages/%N
touch %i/share/doc/installed-packages/%N-base
<<
DocFiles: AUTHORS COPYING* doc/*
SplitOff: <<
Package: %N-shlibs
Description: Shared libraries for the taglib meta-data library
DocFiles: COPYING*
Files: <<
lib/libtag.1*.dylib
lib/libtag_c.0*.dylib
<<
Shlibs: <<
%p/lib/libtag.1.dylib 9.0.0 %n (>= 1.6.1-1)
%p/lib/libtag_c.0.dylib 1.0.0 %n (>= 1.4-1)
<<
<<

Homepage: http://ktown.kde.org/~wheeler/taglib.html
<<

taglib stable port .patch

diff -Nurd taglib-1.6.1/CMakeLists.txt taglib-1.6.1-new/CMakeLists.txt
--- taglib-1.6.1/CMakeLists.txt 2009-10-31 05:23:58.000000000 -0400
+++ taglib-1.6.1-new/CMakeLists.txt 2010-02-21 10:03:09.000000000 -0500
@@ -38,6 +38,12 @@
set(CMAKE_DEBUG_POSTFIX "d")
endif (WIN32)

+if(APPLE)
+ set(CPACK_SET_DESTDIR ON)
+ set(CPACK_PACKAGE_RELOCATABLE OFF)
+ set(CMAKE_INSTALL_NAME_DIR ${LIB_DESTINATION})
+endif(APPLE)
+
SET(TAGLIB_LIB_MAJOR_VERSION "1")
SET(TAGLIB_LIB_MINOR_VERSION "6")
SET(TAGLIB_LIB_PATCH_VERSION "1")
Binary files taglib-1.6.1/bindings/c/.CMakeLists.txt.swp and taglib-1.6.1-new/bindings/c/.CMakeLists.txt.swp differ
diff -Nurd taglib-1.6.1/bindings/c/CMakeLists.txt taglib-1.6.1-new/bindings/c/CMakeLists.txt
--- taglib-1.6.1/bindings/c/CMakeLists.txt 2009-09-08 04:52:57.000000000 -0400
+++ taglib-1.6.1-new/bindings/c/CMakeLists.txt 2010-02-21 15:10:32.000000000 -0500
@@ -44,6 +44,7 @@
SET_TARGET_PROPERTIES(tag_c PROPERTIES
VERSION 0.0.0
SOVERSION 0
+ LINK_FLAGS "-Wl,-compatibility_version,1 -Wl,-current_version,1"
DEFINE_SYMBOL MAKE_TAGLIB_C_LIB
INSTALL_NAME_DIR ${LIB_INSTALL_DIR}
)
diff -Nurd taglib-1.6.1/taglib/CMakeLists.txt taglib-1.6.1-new/taglib/CMakeLists.txt
--- taglib-1.6.1/taglib/CMakeLists.txt 2009-10-24 12:55:54.000000000 -0400
+++ taglib-1.6.1-new/taglib/CMakeLists.txt 2010-02-21 15:10:13.000000000 -0500
@@ -199,6 +199,7 @@
SET_TARGET_PROPERTIES(tag PROPERTIES
VERSION ${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}
SOVERSION ${TAGLIB_LIB_MAJOR_VERSION}
+ LINK_FLAGS "-Wl,-compatibility_version,9 -Wl,-current_version,9"
INSTALL_NAME_DIR ${LIB_INSTALL_DIR}
DEFINE_SYMBOL MAKE_TAGLIB_LIB
LINK_INTERFACE_LIBRARIES ""

taglib _unstable_ port .patch