2017-04-17 22:23:21 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio
|
2017-03-13 22:51:36 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries"
|
2017-10-14 23:58:26 +02:00
|
|
|
TERMUX_PKG_VERSION=11.1
|
|
|
|
TERMUX_PKG_SHA256=f2521c525a77166189e3cb9169f75c2ee2b82fa3fcf9476024fbc2c3a6c9cd9e
|
2017-03-13 22:51:36 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz
|
2017-06-20 01:35:56 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libltdl, libsndfile, libandroid-glob"
|
2017-09-12 02:05:33 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="libtool"
|
2017-03-13 22:51:36 +01:00
|
|
|
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="share/vala"
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-neon-opt --disable-alsa --disable-esound --disable-glib2 --disable-openssl --without-caps --with-database=simple"
|
|
|
|
TERMUX_PKG_CONFFILES="etc/pulse/client.conf etc/pulse/daemon.conf etc/pulse/dafault.pa etc/pulse/system.pa"
|
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
2017-06-20 01:35:56 +02:00
|
|
|
LDFLAGS+=" -llog -landroid-glob"
|
2017-03-13 22:51:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install () {
|
|
|
|
# Some binaries link against these:
|
|
|
|
cd $TERMUX_PREFIX/lib
|
|
|
|
for lib in pulseaudio/lib*.so* pulse-${TERMUX_PKG_VERSION}/modules/lib*.so*; do
|
|
|
|
ln -s -f $lib `basename $lib`
|
|
|
|
done
|
|
|
|
|
|
|
|
# Pulseaudio fails to start when it cannot detect any sound hardware
|
|
|
|
# so disable hardware detection.
|
|
|
|
sed -i $TERMUX_PREFIX/etc/pulse/default.pa \
|
|
|
|
-e '/^load-module module-detect$/s/^/#/'
|
|
|
|
}
|