# $Id$ PNAME="amarok2" PVER="2.2.2" PBUILD="r1" PCATEGORIE="media-sound" STATE="unstable" DESCRIPTION="amaroK2 is a soundsystem-independent music player for KDE4." HOMEPAGE="http://amarok.kde.org/" DEPEND=">= app-misc/strigi-0.7 >= kde-base/kdelibs4-4.4 >= kde-base/kdebase4-runtime-4.4 >= kde-base/kdemultimedia4-kioslave-4.4 >= app-crypt/qca-2 >= dev-libs/glib2-2.22 >= dev-libs/libxml2-2.7 >= dev-libs/openssl-0.9.8 >= dev-db/mysql5-5.1 >= media-libs/taglib-1.6 >= media-libs/taglib-extras-1.0.1 >= media-libs/libgpod-0.7.2 >= media-libs/liblastfm-0.3.0 >= media-libs/libmtp-0.3.0 >= net-libs/loudmouth-1.4.3 >= net-misc/curl-7 >= sys-libs/zlib-1.2.3 >= x11-libs/qt4-core-4.6 >= x11-libs/qt4-dbus-4.6 >= x11-libs/qtscriptgenerator-0.1.0 >= virtual/phonon" SRCFILE="${PNAME/2/}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}" SRC_URI=( kde://${PNAME/2/}/${PVER}/src/${SRCFILE} mirror://${PNAME/2/}/${SRCFILE} mirror://${PNAME/2/}/${PNAME/2/}-${PVER}-kde220532.patch mirror://${PNAME/2/}/${PNAME/2/}-${PVER}-fix-photo-widget.patch ) sminclude kde4 src_prepare() { # warn about /proc in chroot environments # qtscript bindings test needs mounted /proc or it segfaults! # # test can be done via: # cd /var/tmp/magebuild/amarok-2.2.2/cmake/modules/bindingstest # mkdir build; cd build # cmake .. # make VERBOSE=1 # ./bindingstest; echo $? # -> must return 0 # without mounted proc it segfaults: # => frost64 build # ./bindingstest; echo $? # => Segmentation fault # => 139 [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments." munpack ${SRCFILE} || die cd ${SRCDIR} # fix semantic desktop scanning issues # see: https://bugs.kde.org/220532 mpatch ${PNAME/2/}-${PVER}-kde220532.patch || die # fix issues with the photo widget mpatch ${PNAME/2/}-${PVER}-fix-photo-widget.patch || die } src_compile() { cd ${SRCDIR} kde4_configure \ $(cmake_with PLAYER) \ $(cmake_with UTILITIES) \ $(cmake_with ipod) \ $(cmake_with Gdk) \ $(cmake_with LibLastFm) \ $(cmake_with mtp) \ $(cmake_with MP3Tunes) \ $(cmake_with QCA) \ || die mmake || die } src_install() { kde4_src_install || die # provide a amarok2 symlink mlink amarok ${KDEDIR}/bin/amarok2 || die }