wok-next view pulseaudio/receipt @ rev 20079
Up emacs (2.53)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 25 11:21:45 2017 +0200 (2017-10-25) |
parents | 8ed808e48732 |
children | e6615350078d |
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/stable/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 gtk+3-dev \
17 dbus-dev eudev-dev openssl-dev speexdsp-dev"
18 SPLIT="pulseaudio-alsa pulseaudio-cli pulseaudio-esound pulseaudio-glib \
19 pulseaudio-http pulseaudio-native pulseaudio-rtp pulseaudio-simple pulseaudio \
20 pulseaudio-dev"
22 compile_rules() {
23 ./configure \
24 --sysconfdir=/etc \
25 --localstatedir=/var \
26 --disable-bluez4 \
27 --disable-bluez5 \
28 --disable-rpath \
29 \
30 --disable-oss-output \
31 --disable-oss-wrapper \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install || return 1
36 rm $install/etc/dbus-1/system.d/pulseaudio-system.conf
37 sed -i '/load-module module-console-kit/ s|^|#|' $install/etc/pulse/default.pa
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 *-alsa)
43 copy libalsa-util.so module-alsa-sink.so module-alsa-source.so \
44 module-alsa-card.so alsa-mixer/
45 CAT="multimedia|ALSA support"
46 DEPENDS="pulseaudio alsa-lib"
47 ;;
48 *-cli)
49 copy libcli.so module-cli.so libprotocol-cli.so \
50 module-cli-protocol-tcp.so module-cli-protocol-unix.so
51 CAT="multimedia|CLI support"
52 DEPENDS="pulseaudio"
53 ;;
54 *-esound)
55 copy libprotocol-esound.so module-esound-protocol-tcp.so \
56 module-esound-protocol-unix.so
57 CAT="multimedia|EsounD protocol support"
58 DEPENDS="pulseaudio"
59 ;;
60 *-glib)
61 copy libpulse-mainloop-glib.so*
62 CAT="multimedia|Glib bindings"
63 DEPENDS="pulseaudio glib"
64 ;;
65 *-http)
66 copy libprotocol-http.so module-http-protocol-tcp.so \
67 module-http-protocol-unix.so module-rygel-media-server.so
68 CAT="multimedia|HTTP protocol support"
69 DEPENDS="pulseaudio"
70 ;;
71 *-native)
72 copy libprotocol-native.so module-native-protocol-tcp.so \
73 module-native-protocol-fd.so module-native-protocol-unix.so \
74 module-x11-publish.so module-stream-restore.so \
75 module-device-manager.so module-device-restore.so
76 CAT="multimedia|native protocol support"
77 DEPENDS="pulseaudio"
78 ;;
79 *-rtp)
80 copy librtp.so module-rtp-recv.so module-rtp-send.so libraop.so \
81 module-raop-sink.so
82 CAT="multimedia|RTP protocol support"
83 DEPENDS="pulseaudio libcrypto libssl"
84 ;;
85 *-simple)
86 copy libprotocol-simple.so module-simple-protocol-tcp.so \
87 module-simple-protocol-unix.so
88 CAT="multimedia|simple protocol support"
89 DEPENDS="pulseaudio"
90 ;;
91 pulseaudio)
92 copy @std
93 remove_already_packed
94 CAT="multimedia|main part"
95 DEPENDS="dbus eudev gdbm libcap libltdl libsndfile speexdsp \
96 xorg-libICE xorg-libSM xorg-libX11 xorg-libXtst xorg-libxcb"
97 SUGGESTED="consolekit2"
98 ;;
99 *-dev)
100 copy @dev
101 DEPENDS="${SPLIT/$PACKAGE/} \
102 dbus-dev flac-dev gdbm-dev glib-dev libcap-dev libogg-dev \
103 libsndfile-dev libtool libvorbis-dev pcre-dev speexdsp-dev \
104 util-linux-uuid-dev xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev \
105 xorg-libXau-dev xorg-libxcb-dev xorg-libXdmcp-dev xorg-libXext-dev \
106 xorg-libXi-dev xorg-libXtst-dev"
107 ;;
108 esac
109 }