wok-next view pulseaudio/receipt @ rev 21198
updated pulseaudio (10.0 -> 12.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Nov 29 17:34:14 2019 +0100 (2019-11-29) |
parents | 5669e8b3be70 |
children | bc2b795b38a8 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pulseaudio"
4 VERSION="12.2"
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="alsa-lib-dev check-dev dbus-dev eudev-dev gcc83 gtk3-dev
16 intltool libcap-dev libice-dev libsm-dev libsndfile-dev libtool
17 libxcb-dev libxtst-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 {
23 ./bootstrap.sh &&
24 ./configure \
25 CC=gcc-83 \
26 CXX=g++-83 \
27 --disable-bluez4 \
28 --disable-bluez5 \
29 --disable-rpath \
30 --disable-systemd-daemon \
31 --disable-systemd-login \
32 --disable-systemd-journal \
33 --disable-oss-output \
34 --disable-oss-wrapper \
35 $CONFIGURE_ARGS &&
36 fix libtool &&
37 make &&
38 make install || return 1
40 rm $install/etc/dbus-1/system.d/pulseaudio-system.conf
41 sed -i '/load-module module-console-kit/ s|^|#|' $install/etc/pulse/default.pa
42 }
44 genpkg_rules()
45 {
46 case $PACKAGE in
47 (*-alsa)
48 copy libalsa-util.so module-alsa-sink.so module-alsa-source.so \
49 module-alsa-card.so alsa-mixer/
50 CAT="multimedia|ALSA support"
51 DEPENDS="alsa-lib dbus eudev pulseaudio"
52 ;;
53 (*-cli)
54 copy libcli.so module-cli.so libprotocol-cli.so \
55 module-cli-protocol-tcp.so module-cli-protocol-unix.so
56 CAT="multimedia|CLI support"
57 DEPENDS="pulseaudio"
58 ;;
59 (*-esound)
60 copy libprotocol-esound.so module-esound-protocol-tcp.so \
61 module-esound-protocol-unix.so
62 CAT="multimedia|EsounD protocol support"
63 DEPENDS="pulseaudio"
64 ;;
65 (*-glib)
66 copy libpulse-mainloop-glib.so*
67 CAT="multimedia|Glib bindings"
68 DEPENDS="glib pulseaudio"
69 ;;
70 (*-http)
71 copy libprotocol-http.so module-http-protocol-tcp.so \
72 module-http-protocol-unix.so module-rygel-media-server.so
73 CAT="multimedia|HTTP protocol support"
74 DEPENDS="dbus pulseaudio"
75 ;;
76 (*-native)
77 copy libprotocol-native.so module-native-protocol-tcp.so \
78 module-native-protocol-fd.so module-native-protocol-unix.so \
79 module-x11-publish.so module-stream-restore.so \
80 module-device-manager.so module-device-restore.so
81 CAT="multimedia|native protocol support"
82 DEPENDS="dbus pulseaudio libxcb"
83 ;;
84 (*-rtp)
85 copy librtp.so module-rtp-recv.so module-rtp-send.so libraop.so \
86 module-raop-sink.so
87 CAT="multimedia|RTP protocol support"
88 DEPENDS="openssl pulseaudio"
89 ;;
90 (*-simple)
91 copy libprotocol-simple.so module-simple-protocol-tcp.so \
92 module-simple-protocol-unix.so
93 CAT="multimedia|simple protocol support"
94 DEPENDS="pulseaudio"
95 ;;
96 (pulseaudio)
97 copy @std @rm
98 CAT="multimedia|main part"
99 DEPENDS="dbus eudev libcap libltdl libsndfile speexdsp \
100 libice libsm libx11 libxtst libxcb"
101 SUGGESTED="consolekit2"
102 ;;
103 (*-dev)
104 copy @dev
105 DEPENDS="${SPLIT/$PACKAGE/} glib-dev"
106 ;;
107 esac
108 }