new package: shairport-sync
This commit is contained in:
parent
9a290ac097
commit
9e06bda51f
44
packages/shairport-sync/build.sh
Normal file
44
packages/shairport-sync/build.sh
Normal file
@ -0,0 +1,44 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/mikebrady/shairport-sync
|
||||
TERMUX_PKG_DESCRIPTION="An AirPlay audio player"
|
||||
TERMUX_PKG_LICENSE="custom"
|
||||
TERMUX_PKG_LICENSE_FILE="LICENSES"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
# Cannot simply be updated to a newer version due to `pthread_cancel` being used
|
||||
TERMUX_PKG_VERSION=3.1.2
|
||||
TERMUX_PKG_SRCURL=https://github.com/mikebrady/shairport-sync/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=8c13f7ebbd417e8cab07ea9f74392ced0f54315d8697d4513580f472859a9c65
|
||||
TERMUX_PKG_DEPENDS="libconfig, libdaemon, libpopt, libsoxr, openssl, pulseaudio"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--with-pa
|
||||
--with-soxr
|
||||
--with-ssl=openssl
|
||||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
autoreconf -fi
|
||||
|
||||
CFLAGS+=" -fcommon"
|
||||
|
||||
_NEED_DUMMY_LIBPTHREAD_A=
|
||||
_LIBPTHREAD_A=$TERMUX_PREFIX/lib/libpthread.a
|
||||
if [ ! -e $_LIBPTHREAD_A ]; then
|
||||
_NEED_DUMMY_LIBPTHREAD_A=true
|
||||
echo '!<arch>' > $_LIBPTHREAD_A
|
||||
fi
|
||||
_NEED_DUMMY_LIBRT_A=
|
||||
_LIBRT_A=$TERMUX_PREFIX/lib/librt.a
|
||||
if [ ! -e $_LIBRT_A ]; then
|
||||
_NEED_DUMMY_LIBRT_A=true
|
||||
echo '!<arch>' > $_LIBRT_A
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
if [ $_NEED_DUMMY_LIBPTHREAD_A ]; then
|
||||
rm -f $_LIBPTHREAD_A
|
||||
fi
|
||||
if [ $_NEED_DUMMY_LIBRT_A ]; then
|
||||
rm -f $_LIBRT_A
|
||||
fi
|
||||
}
|
19
packages/shairport-sync/configure.ac.patch
Normal file
19
packages/shairport-sync/configure.ac.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
AC_PREREQ([2.50])
|
||||
AC_INIT([shairport-sync], [3.1.2rc0], [mikebrady@eircom.net])
|
||||
-AM_INIT_AUTOMAKE
|
||||
+AM_INIT_AUTOMAKE([subdir-objects])
|
||||
AC_CONFIG_SRCDIR([shairport.c])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
@@ -274,7 +274,6 @@
|
||||
AC_ARG_WITH(convolution, [ --with-convolution = choose audio DSP convolution support], [
|
||||
AC_MSG_RESULT(>>Including convolution support)
|
||||
HAS_CONVOLUTION=1
|
||||
- AM_INIT_AUTOMAKE([subdir-objects])
|
||||
AC_DEFINE([CONFIG_CONVOLUTION], 1, [Needed by the compiler.])
|
||||
AC_CHECK_LIB([sndfile], [sf_open], , AC_MSG_ERROR(Convolution support requires the sndfile library!))], )
|
||||
AM_CONDITIONAL([USE_CONVOLUTION], [test "x$HAS_CONVOLUTION" = "x1"])
|
11
packages/shairport-sync/shairport.c.patch
Normal file
11
packages/shairport-sync/shairport.c.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/shairport.c
|
||||
+++ b/shairport.c
|
||||
@@ -945,7 +945,7 @@
|
||||
#ifdef USE_CUSTOM_PID_DIR
|
||||
char *use_this_pid_dir = PIDDIR;
|
||||
#else
|
||||
- char *use_this_pid_dir = "/var/run/shairport-sync";
|
||||
+ char *use_this_pid_dir = "@TERMUX_PREFIX@/var/run/shairport-sync";
|
||||
#endif
|
||||
// debug(1,"config.piddir \"%s\".",config.piddir);
|
||||
if (config.piddir)
|
Loading…
Reference in New Issue
Block a user