@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE = https://www.freedesktop.org/wiki/Software/PulseAudio
TERMUX_PKG_HOMEPAGE = https://www.freedesktop.org/wiki/Software/PulseAudio
TERMUX_PKG_DESCRIPTION = "A featureful, general-purpose sound server - shared libraries"
TERMUX_PKG_DESCRIPTION = "A featureful, general-purpose sound server - shared libraries"
TERMUX_PKG_VERSION = 12.2
TERMUX_PKG_VERSION = 12.2
TERMUX_PKG_REVISION = 5
TERMUX_PKG_REVISION = 6
TERMUX_PKG_SHA256 = 809668ffc296043779c984f53461c2b3987a45b7a25eb2f0a1d11d9f23ba4055
TERMUX_PKG_SHA256 = 809668ffc296043779c984f53461c2b3987a45b7a25eb2f0a1d11d9f23ba4055
TERMUX_PKG_SRCURL = https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${ TERMUX_PKG_VERSION } .tar.xz
TERMUX_PKG_SRCURL = https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${ TERMUX_PKG_VERSION } .tar.xz
TERMUX_PKG_DEPENDS = "libltdl, libsndfile, libandroid-glob, libsoxr"
TERMUX_PKG_DEPENDS = "libltdl, libsndfile, libandroid-glob, libsoxr"
@ -20,15 +20,27 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-neon-opt
ax_cv_PTHREAD_PRIO_INHERIT = no
ax_cv_PTHREAD_PRIO_INHERIT = no
ac_cv_func_posix_madvise = no"
ac_cv_func_posix_madvise = no"
TERMUX_PKG_CONFFILES = "etc/pulse/client.conf etc/pulse/daemon.conf etc/pulse/default.pa etc/pulse/system.pa"
TERMUX_PKG_CONFFILES = "etc/pulse/client.conf etc/pulse/daemon.conf etc/pulse/default.pa etc/pulse/system.pa"
TERMUX_PKG_API_LEVEL = 26
termux_step_pre_configure ( ) {
termux_step_pre_configure ( ) {
# Our aaudio sink module needs libaaudio.so from a later android api version:
local _NDK_ARCHNAME = $TERMUX_ARCH
if [ " $TERMUX_ARCH " = "aarch64" ] ; then
_NDK_ARCHNAME = arm64
elif [ " $TERMUX_ARCH " = "i686" ] ; then
_NDK_ARCHNAME = x86
fi
mkdir $TERMUX_PKG_TMPDIR /libaaudio
cp $NDK /platforms/android-26/arch-$_NDK_ARCHNAME /usr/lib*/libaaudio.so \
$TERMUX_PKG_TMPDIR /libaaudio/
LDFLAGS += " -L $TERMUX_PKG_TMPDIR /libaaudio/ "
mkdir $TERMUX_PKG_SRCDIR /src/modules/sles
mkdir $TERMUX_PKG_SRCDIR /src/modules/sles
cp $TERMUX_PKG_BUILDER_DIR /module-sles-sink.c $TERMUX_PKG_SRCDIR /src/modules/sles
cp $TERMUX_PKG_BUILDER_DIR /module-sles-sink.c $TERMUX_PKG_SRCDIR /src/modules/sles
mkdir $TERMUX_PKG_SRCDIR /src/modules/aaudio
mkdir $TERMUX_PKG_SRCDIR /src/modules/aaudio
cp $TERMUX_PKG_BUILDER_DIR /module-aaudio-sink.c $TERMUX_PKG_SRCDIR /src/modules/aaudio
cp $TERMUX_PKG_BUILDER_DIR /module-aaudio-sink.c $TERMUX_PKG_SRCDIR /src/modules/aaudio
intltoolize --automake --copy --force
intltoolize --automake --copy --force
CFLAGS += " -D__ANDROID_API__=21"
LDFLAGS += " -llog -landroid-glob"
LDFLAGS += " -llog -landroid-glob"
}
}