# Description: Applications multimediai pour KDE4
# URL: http://www.kde.org
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: cmake,automoc4,kdelibs,taglib,taglib-extras,libmusicbrainz,cdparanoia,pulseaudio
# Run on:kdelibs,taglib,taglib-extras,libmusicbrainz,pulseaudio,cdparanoia

name=kdemultimedia
version=4.7.0
release=1
source=( ftp://ftp.kde.org/pub/kde/stable/$version/src/$name-$version.tar.bz2)

build() {
	cd $name-*
	mkdir build
	cd build
	cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_SKIP_RPATH=ON \
		-DKDE_DEFAULT_HOME=.kde \
                -DSYSCONF_INSTALL_DIR=/etc \
		-DWITH_PulseAudio=ON \
                -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
 
	make
	make DESTDIR=$PKG install
	
	for i in kioslave doc/kioslave libkcddb libkcompactdisc; do
		cd $SRC/$name-*/build/$i
		make DESTDIR=$PKG install
	done
}