wok-next diff pulseaudio/receipt @ rev 20143
postgresql: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 11:18:25 2017 +0100 (2017-11-01) |
parents | 8ed808e48732 |
children | e6615350078d |
line diff
1.1 --- a/pulseaudio/receipt Mon Mar 23 00:00:29 2015 -0400 1.2 +++ b/pulseaudio/receipt Wed Nov 01 11:18:25 2017 +0100 1.3 @@ -1,40 +1,109 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="pulseaudio" 1.8 -VERSION="5.0" 1.9 +VERSION="10.0" 1.10 CATEGORY="multimedia" 1.11 -SHORT_DESC="A sound system for POSIX OSes." 1.12 +SHORT_DESC="A sound system for POSIX OSes" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 -LICENSE="LGPL2.1 GPL2 MIT" 1.15 +LICENSE="LGPL2.1 GPL2 MIT AGPL3 BSD Sun" 1.16 +WEB_SITE="https://www.freedesktop.org/wiki/Software/PulseAudio/" 1.17 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/multimedia/pulseaudio.html" 1.18 + 1.19 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.20 -WEB_SITE="http://www.pulseaudio.org/" 1.21 -WGET_URL="http://www.freedesktop.org/software/pulseaudio/releases/$TARBALL" 1.22 +WGET_URL="https://www.freedesktop.org/software/pulseaudio/releases/$TARBALL" 1.23 1.24 -DEPENDS="libcap libjson-c libsndfile flac libvorbis dbus gdbm libcap attr \ 1.25 -speex libsamplerate" 1.26 -BUILD_DEPENDS="pkg-config libtool automake autoconf intltool m4 libcap-dev \ 1.27 -libjson-c-dev libsndfile-dev flac-dev libvorbis-dev util-linux-uuid-dev \ 1.28 -dbus-dev speex-dev udev-dev libsamplerate-dev alsa-lib-dev" 1.29 +BUILD_DEPENDS="intltool libtool xorg-libxcb-dev xorg-libICE-dev xorg-libSM-dev \ 1.30 +xorg-libXtst-dev libcap-dev check-dev libsndfile-dev alsa-lib-dev gtk+3-dev \ 1.31 +dbus-dev eudev-dev openssl-dev speexdsp-dev" 1.32 +SPLIT="pulseaudio-alsa pulseaudio-cli pulseaudio-esound pulseaudio-glib \ 1.33 +pulseaudio-http pulseaudio-native pulseaudio-rtp pulseaudio-simple pulseaudio \ 1.34 +pulseaudio-dev" 1.35 1.36 -# Rules to configure and make the package. 1.37 -compile_rules() 1.38 -{ 1.39 - ./bootstrap.sh 1.40 - ./configure --prefix=/usr \ 1.41 +compile_rules() { 1.42 + ./configure \ 1.43 --sysconfdir=/etc \ 1.44 + --localstatedir=/var \ 1.45 + --disable-bluez4 \ 1.46 + --disable-bluez5 \ 1.47 + --disable-rpath \ 1.48 + \ 1.49 + --disable-oss-output \ 1.50 + --disable-oss-wrapper \ 1.51 $CONFIGURE_ARGS && 1.52 make && 1.53 - make -j 1 DESTDIR=$DESTDIR install 1.54 + make install || return 1 1.55 + 1.56 + rm $install/etc/dbus-1/system.d/pulseaudio-system.conf 1.57 + sed -i '/load-module module-console-kit/ s|^|#|' $install/etc/pulse/default.pa 1.58 } 1.59 1.60 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.61 -genpkg_rules() 1.62 -{ 1.63 - mkdir -p $fs/usr/lib/pulseaudio 1.64 - cp -a $install/etc $fs 1.65 - cp -a $install/usr/bin $fs/usr 1.66 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.67 - cp -a $install/usr/lib/pulseaudio/*.so* $fs/usr/lib/pulseaudio 1.68 - cp -a $install/usr/lib/pulse-$VERSION $fs/usr/lib 1.69 - rm -fr $fs/etc/dbus-1 1.70 +genpkg_rules() { 1.71 + case $PACKAGE in 1.72 + *-alsa) 1.73 + copy libalsa-util.so module-alsa-sink.so module-alsa-source.so \ 1.74 + module-alsa-card.so alsa-mixer/ 1.75 + CAT="multimedia|ALSA support" 1.76 + DEPENDS="pulseaudio alsa-lib" 1.77 + ;; 1.78 + *-cli) 1.79 + copy libcli.so module-cli.so libprotocol-cli.so \ 1.80 + module-cli-protocol-tcp.so module-cli-protocol-unix.so 1.81 + CAT="multimedia|CLI support" 1.82 + DEPENDS="pulseaudio" 1.83 + ;; 1.84 + *-esound) 1.85 + copy libprotocol-esound.so module-esound-protocol-tcp.so \ 1.86 + module-esound-protocol-unix.so 1.87 + CAT="multimedia|EsounD protocol support" 1.88 + DEPENDS="pulseaudio" 1.89 + ;; 1.90 + *-glib) 1.91 + copy libpulse-mainloop-glib.so* 1.92 + CAT="multimedia|Glib bindings" 1.93 + DEPENDS="pulseaudio glib" 1.94 + ;; 1.95 + *-http) 1.96 + copy libprotocol-http.so module-http-protocol-tcp.so \ 1.97 + module-http-protocol-unix.so module-rygel-media-server.so 1.98 + CAT="multimedia|HTTP protocol support" 1.99 + DEPENDS="pulseaudio" 1.100 + ;; 1.101 + *-native) 1.102 + copy libprotocol-native.so module-native-protocol-tcp.so \ 1.103 + module-native-protocol-fd.so module-native-protocol-unix.so \ 1.104 + module-x11-publish.so module-stream-restore.so \ 1.105 + module-device-manager.so module-device-restore.so 1.106 + CAT="multimedia|native protocol support" 1.107 + DEPENDS="pulseaudio" 1.108 + ;; 1.109 + *-rtp) 1.110 + copy librtp.so module-rtp-recv.so module-rtp-send.so libraop.so \ 1.111 + module-raop-sink.so 1.112 + CAT="multimedia|RTP protocol support" 1.113 + DEPENDS="pulseaudio libcrypto libssl" 1.114 + ;; 1.115 + *-simple) 1.116 + copy libprotocol-simple.so module-simple-protocol-tcp.so \ 1.117 + module-simple-protocol-unix.so 1.118 + CAT="multimedia|simple protocol support" 1.119 + DEPENDS="pulseaudio" 1.120 + ;; 1.121 + pulseaudio) 1.122 + copy @std 1.123 + remove_already_packed 1.124 + CAT="multimedia|main part" 1.125 + DEPENDS="dbus eudev gdbm libcap libltdl libsndfile speexdsp \ 1.126 + xorg-libICE xorg-libSM xorg-libX11 xorg-libXtst xorg-libxcb" 1.127 + SUGGESTED="consolekit2" 1.128 + ;; 1.129 + *-dev) 1.130 + copy @dev 1.131 + DEPENDS="${SPLIT/$PACKAGE/} \ 1.132 + dbus-dev flac-dev gdbm-dev glib-dev libcap-dev libogg-dev \ 1.133 + libsndfile-dev libtool libvorbis-dev pcre-dev speexdsp-dev \ 1.134 + util-linux-uuid-dev xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev \ 1.135 + xorg-libXau-dev xorg-libxcb-dev xorg-libXdmcp-dev xorg-libXext-dev \ 1.136 + xorg-libXi-dev xorg-libXtst-dev" 1.137 + ;; 1.138 + esac 1.139 }