From 3308c31bb4b65f4a43d688f2abb692b456e656d2 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 1 May 2022 12:57:40 +0900 Subject: [PATCH] new package: portaudio --- packages/portaudio/build.sh | 20 ++++++++++++++++++++ packages/portaudio/configure.patch | 22 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 packages/portaudio/build.sh create mode 100644 packages/portaudio/configure.patch diff --git a/packages/portaudio/build.sh b/packages/portaudio/build.sh new file mode 100644 index 000000000..903a48c1f --- /dev/null +++ b/packages/portaudio/build.sh @@ -0,0 +1,20 @@ +TERMUX_PKG_HOMEPAGE=http://www.portaudio.com/ +TERMUX_PKG_DESCRIPTION="A portable audio I/O library" +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_LICENSE_FILE="LICENSE.txt" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=19.07.00 +_DATE=20210406 +TERMUX_PKG_SRCURL=http://files.portaudio.com/archives/pa_stable_v${TERMUX_PKG_VERSION//./}_${_DATE}.tgz +TERMUX_PKG_SHA256=47efbf42c77c19a05d22e627d42873e991ec0c1357219c0d74ce6a2948cb2def +TERMUX_PKG_DEPENDS="libc++" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--enable-cxx +--without-alsa +--without-jack +--without-oss +--without-asihpi +ac_cv_lib_pthread_pthread_create=yes +ac_cv_lib_rt_clock_gettime=yes +" +TERMUX_MAKE_PROCESSES=1 diff --git a/packages/portaudio/configure.patch b/packages/portaudio/configure.patch new file mode 100644 index 000000000..ecd287704 --- /dev/null +++ b/packages/portaudio/configure.patch @@ -0,0 +1,22 @@ +--- a/configure ++++ b/configure +@@ -15774,7 +15774,7 @@ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 + $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } + if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : +- rt_libs=" -lrt" ++ rt_libs="" + fi + + LIBS="${LIBS}${rt_libs}" +@@ -16210,8 +16210,8 @@ + + fi + +- DLL_LIBS="$DLL_LIBS -lm -lpthread" +- LIBS="$LIBS -lm -lpthread" ++ DLL_LIBS="$DLL_LIBS -lm" ++ LIBS="$LIBS -lm" + PADLL="libportaudio.so" + + ## support sun cc compiler flags