diff --git a/srcpkgs/libcanberra/template b/srcpkgs/libcanberra/template index 2a4ae6db04..60c23745a0 100644 --- a/srcpkgs/libcanberra/template +++ b/srcpkgs/libcanberra/template @@ -1,11 +1,10 @@ # Template build file for 'libcanberra'. pkgname=libcanberra version=0.30 -revision=4 +revision=5 build_style=gnu-configure configure_args="--enable-alsa --enable-null - --enable-gstreamer --disable-oss --with-builtin=dso --disable-lynx - --with-systemdsystemunitdir=/usr/lib/systemd/system" + --enable-gstreamer --disable-oss --with-builtin=dso --disable-lynx" hostmakedepends="libtool pkg-config intltool" makedepends=" gtk+-devel gtk+3-devel libvorbis-devel libltdl-devel @@ -18,6 +17,11 @@ license="LGPL-2.1" distfiles="http://0pointer.de/lennart/projects/$pkgname/$pkgname-$version.tar.xz" checksum=c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72 +build_options="systemd" +if [ "$build_option_systemd" ]; then + configure_args+=" --with-systemdsystemunitdir=/usr/lib/systemd/system" +fi + pre_configure() { libtoolize -f }