wok-next view libcanberra/receipt @ rev 20862

lzip: up (1.20); rpm4 -> rpm: up (4.14.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 28 01:53:42 2018 +0300 (2018-06-28)
parents 0ec6086e21d6
children f48456621a9d
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/stable/multimedia/libcanberra.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$WEB_SITE/$TARBALL"
15 BUILD_DEPENDS="libtool gtk+-dev libvorbis-dev alsa-lib-dev eudev-dev \
16 gstreamer1-dev gtk+3-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 gtk+ 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 gtk+3 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 gtk+-dev gtk+3-dev xorg-libX11-dev"
60 ;;
61 esac
62 }