wok-next view libcanberra/receipt @ rev 20206
Up PyQt-x11-gpl (4.12.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 09:19:58 2017 +0100 (2017-11-04) |
parents | 0e8dadf052b9 |
children | d43bf7aae921 |
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 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --enable-gtk \
25 --disable-oss \
26 $CONFIGURE_ARGS &&
27 make &&
28 make -j1 docdir=/usr/share/doc/libcanberra-$VERSION install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 *-gnome)
36 copy gnome-settings-daemon-3.0/ gdm/ gnome/ canberra-boot
37 CAT="gnome|GNOME integration"
38 DEPENDS="eudev libcanberra"
39 ;;
40 *-gstreamer1)
41 copy libcanberra-gstreamer.so
42 CAT="sound|Gstreamer bindings"
43 DEPENDS="libcanberra glib gstreamer1 libffi libltdl libogg \
44 libvorbis pcre"
45 ;;
46 *-gtk2)
47 copy gtk-2.0/modules/*.so libcanberra-gtk.so*
48 CAT="sound|GTK+2 integration"
49 DEPENDS="libcanberra atk bzlib cairo fontconfig freetype \
50 gdk-pixbuf glib gtk+ libffi libharfbuzz libltdl liblzma libogg \
51 libpng16 libvorbis libxml2 pango pcre util-linux-blkid \
52 util-linux-mount util-linux-uuid xorg-libX11 xorg-libXau \
53 xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libxcb xorg-pixman \
54 zlib"
55 ;;
56 *-gtk3)
57 copy gtk-3.0/modules/*.so libcanberra-gtk3.so* canberra-gtk-play
58 CAT="sound|GTK+3 integration"
59 DEPENDS="libcanberra atk bzlib cairo fontconfig freetype \
60 gdk-pixbuf glib gtk+3 libffi libharfbuzz libltdl liblzma libogg \
61 libpng16 libvorbis libxml2 pango pcre util-linux-blkid \
62 util-linux-mount util-linux-uuid xorg-libX11 xorg-libXau \
63 xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libxcb xorg-pixman \
64 zlib"
65 ;;
66 libcanberra)
67 copy @std
68 remove_already_packed
69 DEPENDS="alsa-lib libltdl libogg libvorbis"
70 ;;
71 *-dev)
72 copy @dev
73 DEPENDS="${SPLIT/$PACKAGE/} \
74 alsa-lib-dev atk-dev bzip2-dev cairo-dev fontconfig-dev \
75 freetype-dev gdk-pixbuf-dev glib-dev gstreamer1-dev gtk+-dev \
76 gtk+3-dev harfbuzz-dev libffi-dev libogg-dev libpng16-dev libtool \
77 libvorbis-dev libxml2-dev pango-dev pcre-dev util-linux-blkid-dev \
78 util-linux-mount-dev util-linux-uuid-dev xorg-libX11-dev \
79 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
80 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
81 ;;
82 esac
83 }