diff --git a/packages/fdkaac/build.sh b/packages/fdkaac/build.sh new file mode 100644 index 000000000..ebc08d710 --- /dev/null +++ b/packages/fdkaac/build.sh @@ -0,0 +1,12 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/nu774/fdkaac +TERMUX_PKG_DESCRIPTION="command line encoder frontend for libfdk-aac" +TERMUX_PKG_LICENSE="ZLIB" +TERMUX_PKG_MAINTAINER="DLC01" +TERMUX_PKG_VERSION=1.0.2 +TERMUX_PKG_SRCURL=https://github.com/nu774/fdkaac/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=8a0b67792605fb8955d6be78a81e3a4029e9b7d0f594d8ed76e0fbcef90be0c8 +TERMUX_PKG_DEPENDS="libfdk-aac" + +termux_step_pre_configure() { + autoreconf -fi +} diff --git a/packages/libfdk-aac/build.sh b/packages/libfdk-aac/build.sh new file mode 100644 index 000000000..77266c973 --- /dev/null +++ b/packages/libfdk-aac/build.sh @@ -0,0 +1,12 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/mstorsjo/fdk-aac +TERMUX_PKG_DESCRIPTION="Fraunhofer FDK AAC Codec Library" +TERMUX_PKG_LICENSE="custom" +TERMUX_PKG_MAINTAINER="DLC01" +TERMUX_PKG_VERSION=2.0.2 +TERMUX_PKG_SRCURL=https://github.com/mstorsjo/fdk-aac/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=7812b4f0cf66acda0d0fe4302545339517e702af7674dd04e5fe22a5ade16a90 +TERMUX_PKG_LICENSE_FILE=NOTICE + +termux_step_pre_configure() { + ./autogen.sh +} diff --git a/packages/libfdk-aac/libSBRdec-lpp_tran.cpp.patch b/packages/libfdk-aac/libSBRdec-lpp_tran.cpp.patch new file mode 100644 index 000000000..2bb1cec4e --- /dev/null +++ b/packages/libfdk-aac/libSBRdec-lpp_tran.cpp.patch @@ -0,0 +1,39 @@ +--- fdk-aac-2.0.2/libSBRdec/src/lpp_tran.cpp 2021-04-28 18:04:15.000000000 +0530 ++++ fdk-aac-2.0.2.mod/libSBRdec/src/lpp_tran.cpp 2021-07-02 12:26:00.717941802 +0530 +@@ -118,10 +118,6 @@ + \sa lppTransposer(), main_audio.cpp, sbr_scale.h, \ref documentationOverview + */ + +-#ifdef __ANDROID__ +-#include "log/log.h" +-#endif +- + #include "lpp_tran.h" + + #include "sbr_ram.h" +@@ -336,12 +332,6 @@ + } + } + } +-#ifdef __ANDROID__ +- else { +- // Safetynet logging +- android_errorWriteLog(0x534e4554, "112160868"); +- } +-#endif + + /* init bwIndex for each patch */ + FDKmemclear(bwIndex, sizeof(bwIndex)); +@@ -934,12 +924,6 @@ + FDKmemclear(&qmfBufferImag[i][targetStopBand], memSize); + } + } +-#ifdef __ANDROID__ +- else { +- // Safetynet logging +- android_errorWriteLog(0x534e4554, "112160868"); +- } +-#endif + + /* + Calc common low band scale factor