From 7a07008d695d94329be06e5305c3857a70e5c7a9 Mon Sep 17 00:00:00 2001 From: David Martinez Date: Wed, 12 Oct 2016 23:12:52 +0200 Subject: [PATCH] Megatools: fixed config step --- packages/megatools/build.sh | 8 ++++++-- packages/megatools/configure.ac.patch | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 packages/megatools/configure.ac.patch diff --git a/packages/megatools/build.sh b/packages/megatools/build.sh index 011db8a5d..48f3a0d64 100644 --- a/packages/megatools/build.sh +++ b/packages/megatools/build.sh @@ -4,9 +4,13 @@ TERMUX_PKG_VERSION=1.9.97 TERMUX_PKG_SRCURL=https://github.com/megous/megatools/archive/$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_FOLDERNAME=megatools-$TERMUX_PKG_VERSION TERMUX_PKG_DEPENDS="glib, libandroid-support, libcurl, libgmp, openssl" -TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-fuse --disable-glibtest" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-fuse --enable-docs-build" TERMUX_PKG_BUILD_IN_SRC=yes termux_step_pre_configure() { - ./autogen.sh + mkdir -p m4 + autoreconf -v --install + + sed -i -e 's/-V -qversion//' configure + sed -i -e 's/GOBJECT_INTROSPECTION_CHECK/#GOBJECT_INTROSPECTION_CHECK/' configure } \ No newline at end of file diff --git a/packages/megatools/configure.ac.patch b/packages/megatools/configure.ac.patch new file mode 100644 index 000000000..6d7c26728 --- /dev/null +++ b/packages/megatools/configure.ac.patch @@ -0,0 +1,15 @@ +--- ../../build/megatools/cache/megatools-1.9.97/configure.ac 2016-02-02 18:26:06.000000000 +0100 ++++ ./configure.ac 2016-10-12 23:00:37.626524369 +0200 +@@ -42,11 +42,7 @@ + AC_SUBST(GLIB_MAKEFILE) + + # check gobject-introspection +-AS_IF([test "x$enable_shared" = "xyes"], [ +- GOBJECT_INTROSPECTION_CHECK([$GOBJECT_INTROSPECTION_VERSION]) +-], [ +- AM_CONDITIONAL([HAVE_INTROSPECTION], [false]) +-]) ++AM_CONDITIONAL([HAVE_INTROSPECTION], [true]) + + # check openssl + PKG_CHECK_MODULES(OPENSSL, [$OPENSSL_REQUIRES])