wok-next view pulseaudio/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="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="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 --disable-bluez4 \
25 --disable-bluez5 \
26 --disable-rpath \
27 \
28 --disable-oss-output \
29 --disable-oss-wrapper \
30 $CONFIGURE_ARGS &&
31 fix libtool &&
32 make &&
33 make install || return 1
35 rm $install/etc/dbus-1/system.d/pulseaudio-system.conf
36 sed -i '/load-module module-console-kit/ s|^|#|' $install/etc/pulse/default.pa
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 *-alsa)
42 copy libalsa-util.so module-alsa-sink.so module-alsa-source.so \
43 module-alsa-card.so alsa-mixer/
44 CAT="multimedia|ALSA support"
45 DEPENDS="alsa-lib dbus eudev pulseaudio"
46 ;;
47 *-cli)
48 copy libcli.so module-cli.so libprotocol-cli.so \
49 module-cli-protocol-tcp.so module-cli-protocol-unix.so
50 CAT="multimedia|CLI support"
51 DEPENDS="pulseaudio"
52 ;;
53 *-esound)
54 copy libprotocol-esound.so module-esound-protocol-tcp.so \
55 module-esound-protocol-unix.so
56 CAT="multimedia|EsounD protocol support"
57 DEPENDS="pulseaudio"
58 ;;
59 *-glib)
60 copy libpulse-mainloop-glib.so*
61 CAT="multimedia|Glib bindings"
62 DEPENDS="glib pulseaudio"
63 ;;
64 *-http)
65 copy libprotocol-http.so module-http-protocol-tcp.so \
66 module-http-protocol-unix.so module-rygel-media-server.so
67 CAT="multimedia|HTTP protocol support"
68 DEPENDS="dbus pulseaudio"
69 ;;
70 *-native)
71 copy libprotocol-native.so module-native-protocol-tcp.so \
72 module-native-protocol-fd.so module-native-protocol-unix.so \
73 module-x11-publish.so module-stream-restore.so \
74 module-device-manager.so module-device-restore.so
75 CAT="multimedia|native protocol support"
76 DEPENDS="dbus pulseaudio xorg-libxcb"
77 ;;
78 *-rtp)
79 copy librtp.so module-rtp-recv.so module-rtp-send.so libraop.so \
80 module-raop-sink.so
81 CAT="multimedia|RTP protocol support"
82 DEPENDS="openssl pulseaudio"
83 ;;
84 *-simple)
85 copy libprotocol-simple.so module-simple-protocol-tcp.so \
86 module-simple-protocol-unix.so
87 CAT="multimedia|simple protocol support"
88 DEPENDS="pulseaudio"
89 ;;
90 pulseaudio)
91 copy @std @rm
92 CAT="multimedia|main part"
93 DEPENDS="dbus eudev libcap libltdl libsndfile speexdsp \
94 xorg-libICE xorg-libSM xorg-libX11 xorg-libXtst xorg-libxcb"
95 SUGGESTED="consolekit2"
96 ;;
97 *-dev)
98 copy @dev
99 DEPENDS="${SPLIT/$PACKAGE/} glib-dev"
100 ;;
101 esac
102 }