atomicparsley: Tell configure we have lroundf

This commit is contained in:
Fredrik Fornwall 2017-12-03 14:51:26 +01:00
parent 8f6bc1a19d
commit ffc207fdef
3 changed files with 2 additions and 23 deletions

View File

@ -1,8 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://bitbucket.org/wez/atomicparsley
TERMUX_PKG_DESCRIPTION="Read, parse and set metadata of MPEG-4 and 3gp files"
TERMUX_PKG_VERSION=0.9.6
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://bitbucket.org/wez/atomicparsley/get/${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=e28d46728be86219e6ce48695ea637d831ca0170ca6bdac99810996a8291ee50
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_func_lroundf=yes"
termux_step_pre_configure() {
./autogen.sh

View File

@ -1,11 +0,0 @@
--- ../cache/wez-atomicparsley-da2f6e4fc120/src/util.cpp 2014-03-03 19:18:56.000000000 +0000
+++ ./src/util.cpp 2017-11-21 21:26:48.562088998 +0000
@@ -339,7 +339,7 @@
// platform specifics //
///////////////////////////////////////////////////////////////////////////////////////
-#if !defined(HAVE_LROUNDF)
+#if !defined(HAVE_LROUNDF) && !defined (__BIONIC__)
int lroundf(float a) {
return (int)(a/1);
}

View File

@ -1,12 +0,0 @@
--- ../cache/wez-atomicparsley-da2f6e4fc120/src/util.h 2014-03-03 19:18:56.000000000 +0000
+++ ./src/util.h 2017-11-21 21:22:42.188746458 +0000
@@ -66,7 +66,8 @@
void APar_UnpackLanguage(unsigned char lang_code[], uint16_t packed_language);
uint16_t PackLanguage(const char* language_code, uint8_t lang_offset);
-#if !defined(HAVE_LROUNDF)
+
+#if !defined(HAVE_LROUNDF) && !defined(__BIONIC__)
int lroundf(float a);
#endif