wok-next view libcanberra/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 342b30daff76
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libcanberra"
4 VERSION="0.30"
5 CATEGORY="sound"
6 SHORT_DESC="Portable sound event library"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://0pointer.de/lennart/projects/libcanberra/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/multimedia/libcanberra.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$WEB_SITE/$TARBALL"
15 BUILD_DEPENDS="libtool gtk2-dev libvorbis-dev alsa-lib-dev eudev-dev \
16 gstreamer1-dev gtk3-dev"
17 SPLIT="libcanberra-gnome libcanberra-gstreamer1 libcanberra-gtk2 \
18 libcanberra-gtk3 libcanberra libcanberra-dev"
20 compile_rules() {
21 ./configure \
22 --enable-gtk \
23 --disable-oss \
24 $CONFIGURE_ARGS &&
25 fix libtool &&
26 make &&
27 make -j1 docdir=/usr/share/doc/libcanberra-$VERSION install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 *-gnome)
33 copy gnome-settings-daemon-3.0/ gdm/ gnome/ canberra-boot
34 CAT="gnome|GNOME integration"
35 DEPENDS="eudev libcanberra"
36 ;;
37 *-gstreamer1)
38 copy libcanberra-gstreamer.so
39 CAT="sound|Gstreamer bindings"
40 DEPENDS="glib gstreamer1 libcanberra"
41 ;;
42 *-gtk2)
43 copy gtk-2.0/modules/*.so libcanberra-gtk.so*
44 CAT="sound|GTK+2 integration"
45 DEPENDS="glib gtk2 libcanberra xorg-libX11"
46 ;;
47 *-gtk3)
48 copy gtk-3.0/modules/*.so libcanberra-gtk3.so* canberra-gtk-play
49 CAT="sound|GTK+3 integration"
50 DEPENDS="glib gtk3 libcanberra xorg-libX11"
51 ;;
52 libcanberra)
53 copy @std @rm
54 DEPENDS="alsa-lib libltdl libvorbis"
55 ;;
56 *-dev)
57 copy @dev
58 DEPENDS="${SPLIT/$PACKAGE/} \
59 gtk2-dev gtk3-dev xorg-libX11-dev"
60 ;;
61 esac
62 }