From 2fee21783ed74794feb3c74a1fc6b0cb5d3cdf54 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 8 May 2022 11:14:05 +0900 Subject: [PATCH] new package: aubio --- packages/aubio/build.sh | 28 ++++++++++++++++++++++++++++ packages/aubio/wscript.patch | 11 +++++++++++ 2 files changed, 39 insertions(+) create mode 100644 packages/aubio/build.sh create mode 100644 packages/aubio/wscript.patch diff --git a/packages/aubio/build.sh b/packages/aubio/build.sh new file mode 100644 index 000000000..0b02fa9a1 --- /dev/null +++ b/packages/aubio/build.sh @@ -0,0 +1,28 @@ +TERMUX_PKG_HOMEPAGE=https://aubio.org/ +TERMUX_PKG_DESCRIPTION="A library to label music and sounds" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=0.4.9 +TERMUX_PKG_SRCURL=https://aubio.org/pub/aubio-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_SHA256=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da +TERMUX_PKG_DEPENDS="ffmpeg, libsamplerate, libsndfile" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_pre_configure() { + CPPFLAGS+=" -DFF_API_LAVF_AVCTX" +} + +termux_step_configure() { + ./waf configure \ + --prefix=$TERMUX_PREFIX \ + LINKFLAGS="$LDFLAGS" \ + $TERMUX_PKG_EXTRA_CONFIGURE_ARGS +} + +termux_step_make() { + ./waf +} + +termux_step_make_install() { + ./waf install +} diff --git a/packages/aubio/wscript.patch b/packages/aubio/wscript.patch new file mode 100644 index 000000000..5663ce0b0 --- /dev/null +++ b/packages/aubio/wscript.patch @@ -0,0 +1,11 @@ +--- a/wscript ++++ b/wscript +@@ -507,8 +507,6 @@ + bld.options.testcmd = 'node %s' + if bld.options.enable_examples: + bld.recurse('examples') +- if bld.options.enable_tests: +- bld.recurse('tests') + + # pkg-config template + bld( source = 'aubio.pc.in' )