phonon-x11 stable port information

Info3: <<
Package: phonon-x11
Version: 4.5.0
Revision: 6
Description: Qt-based multimedia framework
Type: phonon (x11)
License: LGPL
Maintainer: Benjamin Reed

Depends: %N-shlibs (>= %v-%r)
BuildDepends: <<
automoc-%type_pkg[phonon] (>= 0.9.89-0.999999.1),
cmake (>= 2.8.2-1),
fink (>= 0.30.0-1),
kde4-buildenv (>= 4.6.0-1),
system-openssl-dev,
qt4-base-%type_pkg[phonon] (>= 4.7.3-1)
<<
Replaces: qt4-%type_pkg[phonon] (<< 4.7.3-1)
BuildDependsOnly: true
GCC: 4.0

Source: mirror:kde:stable/phonon/%v/src/phonon-%v.tar.bz2
Source-MD5: 32f8d388c18fde2e23dea7bb103f9713
PatchFile: phonon.patch
PatchFile-MD5: f1dfbdbfa9d6c4816c23db7058d76ee7

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

export KDE4_PREFIX="%p" KDE4_TYPE="%type_pkg[phonon]" KDE4_INSTALL_PREFIX="%p/lib/qt4-%type_pkg[phonon]"
export PATH="%p/opt/kde4/%type_pkg[phonon]/bin:$PATH"
. %p/sbin/kde4-buildenv.sh

mkdir -p build
pushd build
cmake $KDE4_CMAKE_ARGS ..
make VERBOSE=1
popd
<<

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

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

pushd %i/lib/qt4-%type_pkg[phonon]/lib
ln -s libphonon.4.5.dylib libphonon.4.dylib
ln -s libphononexperimental.4.5.dylib libphononexperimental.4.dylib
install_name_tool -id %p/lib/qt4-%type_pkg[phonon]/lib/libphonon.4.dylib libphonon.%v.dylib
install_name_tool -id %p/lib/qt4-%type_pkg[phonon]/lib/libphononexperimental.4.dylib libphononexperimental.%v.dylib
install_name_tool -change %p/lib/qt4-%type_pkg[phonon]/lib/libphonon.4.5.dylib %p/lib/qt4-%type_pkg[phonon]/lib/libphonon.4.dylib libphononexperimental.%v.dylib
popd
<<
SplitOff: <<
Package: %N-shlibs
Description: Shared libraries for Phonon
Depends: <<
qt4-base-mac-qtcore-shlibs (>= 4.7.3-1),
qt4-base-mac-qtdbus-shlibs (>= 4.7.3-1),
qt4-base-mac-qtdesigner-shlibs (>= 4.7.3-1),
qt4-base-mac-qtgui-shlibs (>= 4.7.3-1)
<<
Replaces: <<
qt4-%type_pkg[phonon]-designer-shlibs (<< 4.7.3-1),
qt4-%type_pkg[phonon]-gui-shlibs (<< 4.7.3-1),
qt4-%type_pkg[phonon] (<< 4.7.3-1),
phonon-%type_pkg[phonon] (<< 4.5.0-5)
<<
Files: <<
lib/qt4-%type_pkg[phonon]/lib/libphonon.4*.dylib
lib/qt4-%type_pkg[phonon]/lib/libphononexperimental.4*.dylib
lib/qt4-%type_pkg[phonon]/plugins/designer/*phonon*
lib/qt4-%type_pkg[phonon]/share/dbus-1/interfaces
<<
Shlibs: <<
%p/lib/qt4-%type_pkg[phonon]/lib/libphonon.4.dylib 4.5.0 %n (>= 4.5.0-5)
%p/lib/qt4-%type_pkg[phonon]/lib/libphononexperimental.4.dylib 4.5.0 %n (>= 4.5.0-5)
<<
<<

PostInstScript: <<
if [ "$1" = "configure" ] && [ ! -f "%p/lib/qt4-%type_pkg[phonon]/include/phonon/Phonon/MediaNode" ]; then
# case-sensitive filesystem, make various build-system stuff happy
/bin/ln -sf . "%p/lib/qt4-%type_pkg[phonon]/include/phonon/Phonon"
fi
<<
PreRmScript: <<
# remove the symlinks we created earlier
if [ -h "%p/lib/qt4-%type_pkg[phonon]/include/Phonon" ]; then
/bin/rm "%p/lib/qt4-%type_pkg[phonon]/include/Phonon"
fi
if [ -h "%p/lib/qt4-%type_pkg[phonon]/include/phonon/Phonon" ]; then
/bin/rm "%p/lib/qt4-%type_pkg[phonon]/include/phonon/Phonon"
fi
<<

DescDetail: <<
Phonon is the Qt 4 multimedia API, which provides a task-oriented
abstraction layer for capturing, mixing, processing, and playing
audio and video content.
<<
<<