Megatools: fixed config step

This commit is contained in:
David Martinez 2016-10-12 23:12:52 +02:00 committed by Fredrik Fornwall
parent c311cdcb88
commit 7a07008d69
2 changed files with 21 additions and 2 deletions

View File

@ -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_SRCURL=https://github.com/megous/megatools/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_FOLDERNAME=megatools-$TERMUX_PKG_VERSION TERMUX_PKG_FOLDERNAME=megatools-$TERMUX_PKG_VERSION
TERMUX_PKG_DEPENDS="glib, libandroid-support, libcurl, libgmp, openssl" 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_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure() { 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
} }

View File

@ -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])