wok-next view pulseaudio/receipt @ rev 21045

Up cookutils (1094)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 26 12:14:47 2018 +0200 (2018-11-26)
parents f48456621a9d
children 5669e8b3be70
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pulseaudio"
4 VERSION="10.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="A sound system for POSIX OSes"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1 GPL2 MIT AGPL3 BSD Sun"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/PulseAudio/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/multimedia/pulseaudio.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://www.freedesktop.org/software/pulseaudio/releases/$TARBALL"
15 BUILD_DEPENDS="intltool libtool xorg-libxcb-dev xorg-libICE-dev xorg-libSM-dev \
16 xorg-libXtst-dev libcap-dev check-dev libsndfile-dev alsa-lib-dev gtk3-dev \
17 dbus-dev eudev-dev openssl-dev speexdsp-dev"
18 SPLIT="$PACKAGE-alsa $PACKAGE-cli $PACKAGE-esound $PACKAGE-glib $PACKAGE-http \
19 $PACKAGE-native $PACKAGE-rtp $PACKAGE-simple $PACKAGE $PACKAGE-dev"
21 compile_rules() {
22 ./configure \
23 --disable-bluez4 \
24 --disable-bluez5 \
25 --disable-rpath \
26 \
27 --disable-oss-output \
28 --disable-oss-wrapper \
29 $CONFIGURE_ARGS &&
30 fix libtool &&
31 make &&
32 make install || return 1
34 rm $install/etc/dbus-1/system.d/pulseaudio-system.conf
35 sed -i '/load-module module-console-kit/ s|^|#|' $install/etc/pulse/default.pa
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 *-alsa)
41 copy libalsa-util.so module-alsa-sink.so module-alsa-source.so \
42 module-alsa-card.so alsa-mixer/
43 CAT="multimedia|ALSA support"
44 DEPENDS="alsa-lib dbus eudev pulseaudio"
45 ;;
46 *-cli)
47 copy libcli.so module-cli.so libprotocol-cli.so \
48 module-cli-protocol-tcp.so module-cli-protocol-unix.so
49 CAT="multimedia|CLI support"
50 DEPENDS="pulseaudio"
51 ;;
52 *-esound)
53 copy libprotocol-esound.so module-esound-protocol-tcp.so \
54 module-esound-protocol-unix.so
55 CAT="multimedia|EsounD protocol support"
56 DEPENDS="pulseaudio"
57 ;;
58 *-glib)
59 copy libpulse-mainloop-glib.so*
60 CAT="multimedia|Glib bindings"
61 DEPENDS="glib pulseaudio"
62 ;;
63 *-http)
64 copy libprotocol-http.so module-http-protocol-tcp.so \
65 module-http-protocol-unix.so module-rygel-media-server.so
66 CAT="multimedia|HTTP protocol support"
67 DEPENDS="dbus pulseaudio"
68 ;;
69 *-native)
70 copy libprotocol-native.so module-native-protocol-tcp.so \
71 module-native-protocol-fd.so module-native-protocol-unix.so \
72 module-x11-publish.so module-stream-restore.so \
73 module-device-manager.so module-device-restore.so
74 CAT="multimedia|native protocol support"
75 DEPENDS="dbus pulseaudio xorg-libxcb"
76 ;;
77 *-rtp)
78 copy librtp.so module-rtp-recv.so module-rtp-send.so libraop.so \
79 module-raop-sink.so
80 CAT="multimedia|RTP protocol support"
81 DEPENDS="openssl pulseaudio"
82 ;;
83 *-simple)
84 copy libprotocol-simple.so module-simple-protocol-tcp.so \
85 module-simple-protocol-unix.so
86 CAT="multimedia|simple protocol support"
87 DEPENDS="pulseaudio"
88 ;;
89 pulseaudio)
90 copy @std @rm
91 CAT="multimedia|main part"
92 DEPENDS="dbus eudev libcap libltdl libsndfile speexdsp \
93 xorg-libICE xorg-libSM xorg-libX11 xorg-libXtst xorg-libxcb"
94 SUGGESTED="consolekit2"
95 ;;
96 *-dev)
97 copy @dev
98 DEPENDS="${SPLIT/$PACKAGE/} glib-dev"
99 ;;
100 esac
101 }