Added Python3. (Still testing integration)
This commit is contained in:
16
project/jni/python3/mk/ncurses/5.9/build.sh
Normal file
16
project/jni/python3/mk/ncurses/5.9/build.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
pushd src >/dev/null
|
||||
|
||||
rm -rf "${PACKAGE}"
|
||||
tar -xf "${PACKAGE}.tar.gz" || exit 1
|
||||
pushd "${PACKAGE}" >/dev/null
|
||||
|
||||
patch -p1 < "${FILESDIR}/${PACKAGE}-android-locale-fixes.patch"
|
||||
./configure --prefix="${PREFIX}" --host="${TARGET}" --build="${HOST}" --without-ada --without-manpages --without-progs --without-tests --with-termlib --enable-termcap --enable-widec --disable-database --disable-home-terminfo || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
# Fix symlinks for Python _curses and _curses_panel extensions.
|
||||
ln -s ncursesw/curses.h "${PREFIX}/include/curses.h" || exit 1
|
||||
ln -s ncursesw/panel.h "${PREFIX}/include/panel.h" || exit 1
|
||||
|
||||
popd >/dev/null
|
||||
popd >/dev/null
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -ru ncurses-5.9/form/fty_num.c ncurses-5.9-android/form/fty_num.c
|
||||
--- ncurses-5.9/form/fty_num.c 2010-01-23 22:14:36.000000000 +0100
|
||||
+++ ncurses-5.9-android/form/fty_num.c 2014-08-04 23:04:23.000000000 +0200
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_LOCALE_H
|
||||
+#if HAVE_LOCALE_H && !__ANDROID__
|
||||
#define isDecimalPoint(c) ((c) == ((L && L->decimal_point) ? *(L->decimal_point) : '.'))
|
||||
#else
|
||||
#define isDecimalPoint(c) ((c) == '.')
|
||||
1
project/jni/python3/mk/ncurses/5.9/sources.txt
Normal file
1
project/jni/python3/mk/ncurses/5.9/sources.txt
Normal file
@@ -0,0 +1 @@
|
||||
https://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
|
||||
Reference in New Issue
Block a user