Added Python3. (Still testing integration)
This commit is contained in:
13
project/jni/python3/mk/gdbm/1.11/build.sh
Normal file
13
project/jni/python3/mk/gdbm/1.11/build.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
pushd src >/dev/null
|
||||
|
||||
rm -rf "${PACKAGE}"
|
||||
tar -xf "${PACKAGE}.tar.gz" || exit 1
|
||||
pushd "${PACKAGE}" >/dev/null
|
||||
|
||||
patch -p1 < "${FILESDIR}/${PACKAGE}-android-winsize.patch"
|
||||
./configure --prefix="${PREFIX}" --host="${TARGET}" --build="${HOST}" --enable-libgdbm-compat || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
|
||||
popd >/dev/null
|
||||
popd >/dev/null
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -ru gdbm-1.11/src/gdbmtool.c gdbm-1.11-android/src/gdbmtool.c
|
||||
--- gdbm-1.11/src/gdbmtool.c 2013-05-21 21:48:31.000000000 +0200
|
||||
+++ gdbm-1.11-android/src/gdbmtool.c 2014-08-05 15:35:51.000000000 +0200
|
||||
@@ -302,7 +302,7 @@
|
||||
int
|
||||
get_screen_lines ()
|
||||
{
|
||||
-#ifdef TIOCGWINSZ
|
||||
+#if defined(TIOCGWINSZ) && !__ANDROID__
|
||||
if (isatty (1))
|
||||
{
|
||||
struct winsize ws;
|
||||
1
project/jni/python3/mk/gdbm/1.11/sources.txt
Normal file
1
project/jni/python3/mk/gdbm/1.11/sources.txt
Normal file
@@ -0,0 +1 @@
|
||||
https://ftp.gnu.org/gnu/gdbm/gdbm-1.11.tar.gz
|
||||
Reference in New Issue
Block a user