Browse Source

Cleanup of more packages

android-5
Fredrik Fornwall 8 years ago
parent
commit
7ce5638519
  1. 4
      packages/coreutils/build.sh
  2. 4
      packages/direvent/build.sh
  3. 20
      packages/dnsutils/build.sh
  4. 10
      packages/elfutils/build.sh
  5. 4
      packages/figlet/build.sh
  6. 6
      packages/finch/build.sh
  7. 4
      packages/fish/build.sh
  8. 8
      packages/frotz/build.sh
  9. 13
      packages/gdb/build.sh
  10. 21
      packages/glib/build.sh
  11. 4
      packages/gnugo/build.sh
  12. 5
      packages/gnushogi/build.sh
  13. 6
      packages/inetutils/build.sh
  14. 4
      packages/inotify-tools/build.sh
  15. 3
      packages/kona/build.sh
  16. 4
      packages/lftp/build.sh
  17. 3
      packages/libgc/build.sh
  18. 8
      packages/libgcrypt/build.sh
  19. 6
      packages/libgmp/build.sh
  20. 4
      packages/libgnutls/build.sh
  21. 35
      packages/libluajit/build.sh
  22. 1
      packages/libmcrypt/build.sh
  23. 4
      packages/libpopt/build.sh
  24. 7
      packages/lighttpd/build.sh
  25. 23
      packages/ltrace/build.sh
  26. 6
      packages/lua/build.sh
  27. 2
      packages/macchanger/build.sh
  28. 6
      packages/mathomatic/build.sh
  29. 4
      packages/mlocate/build.sh
  30. 17
      packages/mosh/build.sh
  31. 11
      packages/mpv/build.sh
  32. 2
      packages/openal-soft/build.sh
  33. 6
      packages/openssh/build.sh
  34. 4
      packages/optipng/build.sh
  35. 2
      packages/pcre/build.sh
  36. 2
      packages/pforth/build.sh
  37. 4
      packages/procps/build.sh
  38. 4
      packages/proot/build.sh
  39. 5
      packages/rsync/build.sh
  40. 8
      packages/ruby/build.sh
  41. 4
      packages/socat/build.sh
  42. 4
      packages/sox/build.sh
  43. 7
      packages/stag/build.sh
  44. 15
      packages/strace/build.sh
  45. 4
      packages/stunnel/build.sh
  46. 6
      packages/tinyscheme/build.sh
  47. 4
      packages/vim-python/build.sh
  48. 4
      packages/vorbis-tools/build.sh
  49. 1
      packages/xvidcore/build.sh

4
packages/coreutils/build.sh

@ -14,4 +14,6 @@ TERMUX_PKG_BUILD_IN_SRC=yes
# Host build for man pages generated by help2man, see makefile.patch: # Host build for man pages generated by help2man, see makefile.patch:
TERMUX_PKG_HOSTBUILD=yes TERMUX_PKG_HOSTBUILD=yes
CPPFLAGS+=" -DDEFAULT_TMPDIR=\\\"$TERMUX_PREFIX/tmp\\\"" termux_step_pre_configure() {
CPPFLAGS+=" -DDEFAULT_TMPDIR=\\\"$TERMUX_PREFIX/tmp\\\""
}

4
packages/direvent/build.sh

@ -4,4 +4,6 @@ TERMUX_PKG_VERSION=5.1
TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/direvent/direvent-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/direvent/direvent-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libandroid-glob" TERMUX_PKG_DEPENDS="libandroid-glob"
LDFLAGS+=" -llog -landroid-glob" termux_step_pre_configure() {
LDFLAGS+=" -llog -landroid-glob"
}

20
packages/dnsutils/build.sh

@ -8,16 +8,18 @@ TERMUX_PKG_DEPENDS="openssl, readline, resolv-conf"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-gssapi=no --with-randomdev=/dev/random -with-ecdsa=no --with-gost=no --with-libxml2=no --with-libtool" TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-gssapi=no --with-randomdev=/dev/random -with-ecdsa=no --with-gost=no --with-libxml2=no --with-libtool"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-openssl=$TERMUX_PREFIX" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-openssl=$TERMUX_PREFIX"
export BUILD_AR=ar termux_step_pre_configure () {
export BUILD_CC=gcc export BUILD_AR=ar
export BUILD_CFLAGS= export BUILD_CC=gcc
export BUILD_CPPFLAGS= export BUILD_CFLAGS=
export BUILD_LDFLAGS= export BUILD_CPPFLAGS=
export BUILD_RANLIB= export BUILD_LDFLAGS=
export BUILD_RANLIB=
_RESOLV_CONF=$TERMUX_PREFIX/etc/resolv.conf _RESOLV_CONF=$TERMUX_PREFIX/etc/resolv.conf
CFLAGS+=" $CPPFLAGS -DRESOLV_CONF=\\\"$_RESOLV_CONF\\\"" CFLAGS+=" $CPPFLAGS -DRESOLV_CONF=\\\"$_RESOLV_CONF\\\""
LDFLAGS+=" -llog" LDFLAGS+=" -llog"
}
termux_step_make () { termux_step_make () {
make -C lib/isc make -C lib/isc

10
packages/elfutils/build.sh

@ -10,13 +10,13 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--program-prefix='eu-'"
# The ar.c file is patched away for now: # The ar.c file is patched away for now:
TERMUX_PKG_RM_AFTER_INSTALL="bin/eu-ar" TERMUX_PKG_RM_AFTER_INSTALL="bin/eu-ar"
LDFLAGS+=" -lintl" termux_step_pre_configure() {
CFLAGS+=" -DTERMUX_EXPOSE_MEMPCPY=1 -Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error" LDFLAGS+=" -lintl"
CFLAGS+=" -DTERMUX_EXPOSE_MEMPCPY=1 -Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error"
# Exposes ACCESSPERMS in <sys/stat.h> which elfutils uses: # Exposes ACCESSPERMS in <sys/stat.h> which elfutils uses:
CFLAGS+=" -D__USE_BSD" CFLAGS+=" -D__USE_BSD"
termux_step_pre_configure () {
# Install argp lib. # Install argp lib.
ARGP_FILE=$TERMUX_PKG_CACHEDIR/argp-standalone.1.3.tar.gz ARGP_FILE=$TERMUX_PKG_CACHEDIR/argp-standalone.1.3.tar.gz
if [ ! -f $ARGP_FILE ]; then if [ ! -f $ARGP_FILE ]; then

4
packages/figlet/build.sh

@ -4,4 +4,6 @@ TERMUX_PKG_VERSION=2.2.5
TERMUX_PKG_SRCURL=ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
LD=$CC termux_step_pre_configure () {
LD=$CC
}

6
packages/finch/build.sh

@ -7,8 +7,10 @@ TERMUX_PKG_DEPENDS="libgnutls, libxml2, ncurses-ui-libs, glib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gtkui --disable-gstreamer --disable-vv --disable-idn --disable-meanwhile --disable-avahi --disable-dbus --disable-perl --disable-tcl --without-zephyr --with-ncurses-headers=$TERMUX_PREFIX/include --without-python" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gtkui --disable-gstreamer --disable-vv --disable-idn --disable-meanwhile --disable-avahi --disable-dbus --disable-perl --disable-tcl --without-zephyr --with-ncurses-headers=$TERMUX_PREFIX/include --without-python"
TERMUX_PKG_RM_AFTER_INSTALL="share/sounds/purple lib/purple-2/libmsn.so" TERMUX_PKG_RM_AFTER_INSTALL="share/sounds/purple lib/purple-2/libmsn.so"
# For arpa: termux_step_pre_configure () {
CFLAGS="$CFLAGS -isystem $TERMUX_PKG_BUILDER_DIR" # For arpa:
CFLAGS+=" -isystem $TERMUX_PKG_BUILDER_DIR"
}
termux_step_post_configure () { termux_step_post_configure () {
# Hack to compile first version of libpurple-ciphers.la # Hack to compile first version of libpurple-ciphers.la

4
packages/fish/build.sh

@ -9,7 +9,9 @@ TERMUX_PKG_DEPENDS="ncurses, libandroid-support, ncurses-utils, man"
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_FOLDERNAME=fish-$TERMUX_PKG_VERSION TERMUX_PKG_FOLDERNAME=fish-$TERMUX_PKG_VERSION
CXXFLAGS+=" $CPPFLAGS" termux_step_pre_configure() {
CXXFLAGS+=" $CPPFLAGS"
}
termux_step_post_make_install () { termux_step_post_make_install () {
cat >> $TERMUX_PREFIX/etc/fish/config.fish <<HERE cat >> $TERMUX_PREFIX/etc/fish/config.fish <<HERE

8
packages/frotz/build.sh

@ -7,9 +7,11 @@ TERMUX_PKG_SRCURL=https://github.com/DavidGriffith/frotz/archive/${TERMUX_PKG_VE
TERMUX_PKG_FOLDERNAME=frotz-${TERMUX_PKG_VERSION} TERMUX_PKG_FOLDERNAME=frotz-${TERMUX_PKG_VERSION}
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
# Pull request submitted to replace rindex() with strrchr() at termux_step_pre_configure() {
# https://github.com/DavidGriffith/frotz/pull/20 # Pull request submitted to replace rindex() with strrchr() at
CFLAGS+=" -Drindex=strrchr" # https://github.com/DavidGriffith/frotz/pull/20
CFLAGS+=" -Drindex=strrchr"
}
termux_step_make () { termux_step_make () {
CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install

13
packages/gdb/build.sh

@ -7,16 +7,17 @@ TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/gdb/gdb-${TERMUX_PKG_VERSION}.tar.xz
# gdb can not build with our normal --disable-static: https://sourceware.org/bugzilla/show_bug.cgi?id=15916 # gdb can not build with our normal --disable-static: https://sourceware.org/bugzilla/show_bug.cgi?id=15916
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-system-readline --with-curses --enable-static ac_cv_func_getpwent=no ac_cv_func_getpwnam=no" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-system-readline --with-curses --enable-static ac_cv_func_getpwent=no ac_cv_func_getpwnam=no"
TERMUX_PKG_RM_AFTER_INSTALL="share/gdb/python share/gdb/syscalls share/gdb/system-gdbinit" TERMUX_PKG_RM_AFTER_INSTALL="share/gdb/python share/gdb/syscalls share/gdb/system-gdbinit"
TERMUX_PKG_MAKE_INSTALL_TARGET="-C gdb install" TERMUX_PKG_MAKE_INSTALL_TARGET="-C gdb install"
TERMUX_PKG_BUILD_IN_SRC="yes" TERMUX_PKG_BUILD_IN_SRC="yes"
# For frexp(3) usage: termux_step_pre_configure() {
LDFLAGS+=" -lm" # For frexp(3) usage:
LDFLAGS+=" -lm"
# Fix "undefined reference to 'rpl_gettimeofday'" when building on x86: # Fix "undefined reference to 'rpl_gettimeofday'" when building on x86:
export gl_cv_func_gettimeofday_clobber=no export gl_cv_func_gettimeofday_clobber=no
export gl_cv_func_gettimeofday_posix_signature=yes export gl_cv_func_gettimeofday_posix_signature=yes
}
termux_step_post_extract_package () { termux_step_post_extract_package () {
if [ $TERMUX_ARCH = aarch64 ]; then if [ $TERMUX_ARCH = aarch64 ]; then

21
packages/glib/build.sh

@ -4,28 +4,23 @@ _TERMUX_GLIB_MAJOR_VERSION=2.48
TERMUX_PKG_VERSION=${_TERMUX_GLIB_MAJOR_VERSION}.2 TERMUX_PKG_VERSION=${_TERMUX_GLIB_MAJOR_VERSION}.2
TERMUX_PKG_SRCURL=http://ftp.gnome.org/pub/gnome/sources/glib/${_TERMUX_GLIB_MAJOR_VERSION}/glib-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=http://ftp.gnome.org/pub/gnome/sources/glib/${_TERMUX_GLIB_MAJOR_VERSION}/glib-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_DEPENDS="libffi, pcre" TERMUX_PKG_DEPENDS="libffi, pcre"
TERMUX_PKG_RM_AFTER_INSTALL="share/gtk-doc share/locale share/glib-2.0/gettext share/gdb/auto-load share/glib-2.0/codegen share/glib-2.0/gdb lib/glib-2.0/include bin/gtester-report bin/glib-mkenums bin/glib-gettextize bin/gdbus-codegen"
# --enable-compile-warnings=no to get rid of format strings causing errors # --enable-compile-warnings=no to get rid of format strings causing errors
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-compile-warnings --disable-gtk-doc --disable-gtk-doc-html --cache-file=termux_configure.cache --with-pcre=system" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-compile-warnings --disable-gtk-doc --disable-gtk-doc-html --cache-file=termux_configure.cache --with-pcre=system"
# --disable-znodelete to avoid DF_1_NODELETE which most Android 5.0 linkers # --disable-znodelete to avoid DF_1_NODELETE which most Android 5.0 linkers does not support:
# does not support:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-znodelete" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-znodelete"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-libelf" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-libelf"
TERMUX_PKG_RM_AFTER_INSTALL="share/gtk-doc share/locale share/glib-2.0/gettext share/gdb/auto-load share/glib-2.0/codegen share/glib-2.0/gdb lib/glib-2.0/include bin/gtester-report bin/glib-mkenums bin/glib-gettextize bin/gdbus-codegen"
# glib checks for __BIONIC__ instead of __ANDROID__
CFLAGS="$CFLAGS -D__BIONIC__=1"
termux_step_pre_configure () { termux_step_pre_configure () {
# glib checks for __BIONIC__ instead of __ANDROID__:
CFLAGS="$CFLAGS -D__BIONIC__=1"
cd $TERMUX_PKG_BUILDDIR cd $TERMUX_PKG_BUILDDIR
# https://developer.gnome.org/glib/stable/glib-cross-compiling.html
# https://developer.gnome.org/glib/stable/glib-cross-compiling.html
echo "glib_cv_long_long_format=ll" >> termux_configure.cache echo "glib_cv_long_long_format=ll" >> termux_configure.cache
echo "glib_cv_stack_grows=no" >> termux_configure.cache echo "glib_cv_stack_grows=no" >> termux_configure.cache
echo "glib_cv_uscore=no" >> termux_configure.cache echo "glib_cv_uscore=no" >> termux_configure.cache
#echo "ac_cv_func_posix_getpwuid_r=yes" >> termux_configure.cache chmod a-w termux_configure.cache
#echo "ac_cv_func_posix_getgrgid_r=yes" >> termux_configure.cache
#echo "ac_cv_func_posix_getpwnam_r=yes" >> termux_configure.cache
#echo "ac_cv_func_posix_getpwuid_r=yes" >> termux_configure.cache
#echo "ac_cv_header_pwd_h=no" >> termux_configure.cache
chmod a-w termux_configure.cache # prevent configure from changing
} }

4
packages/gnugo/build.sh

@ -6,7 +6,9 @@ TERMUX_PKG_DEPENDS="ncurses, readline"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-readline" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-readline"
TERMUX_PKG_HOSTBUILD=yes TERMUX_PKG_HOSTBUILD=yes
export CFLAGS="$CFLAGS -Wno-overflow" termux_step_pre_configure() {
CFLAGS+=" -Wno-overflow"
}
termux_step_post_configure () { termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/mkeyes $TERMUX_PKG_BUILDDIR/patterns/mkeyes cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/mkeyes $TERMUX_PKG_BUILDDIR/patterns/mkeyes

5
packages/gnushogi/build.sh

@ -6,7 +6,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_curses_clrtoeol=yes --with-curses"
TERMUX_PKG_RM_AFTER_INSTALL="info/gnushogi.info" TERMUX_PKG_RM_AFTER_INSTALL="info/gnushogi.info"
TERMUX_PKG_DEPENDS="ncurses" TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_HOSTBUILD=yes TERMUX_PKG_HOSTBUILD=yes
export CFLAGS="$CFLAGS $CPPFLAGS"
termux_step_pre_configure() {
CFLAGS+=" $CPPFLAGS"
}
termux_step_post_configure () { termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/gnushogi/pat2inc $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc cp $TERMUX_PKG_HOSTBUILD_DIR/gnushogi/pat2inc $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc

6
packages/inetutils/build.sh

@ -8,5 +8,7 @@ TERMUX_PKG_DEPENDS="readline, libutil"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-ifconfig --disable-rcp --disable-rlogin --disable-rsh --disable-rexecd --disable-uucpd --disable-rexec --disable-ping --disable-ping6 --disable-hostname" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-ifconfig --disable-rcp --disable-rlogin --disable-rsh --disable-rexecd --disable-uucpd --disable-rexec --disable-ping --disable-ping6 --disable-hostname"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no"
CPPFLAGS+=" -DLOGIN_PROCESS=6 -DDEAD_PROCESS=8 -DLOG_NFACILITIES=24" termux_step_pre_configure() {
LDFLAGS+=" -llog" # for syslog CPPFLAGS+=" -DLOGIN_PROCESS=6 -DDEAD_PROCESS=8 -DLOG_NFACILITIES=24"
LDFLAGS+=" -llog" # for syslog
}

4
packages/inotify-tools/build.sh

@ -4,7 +4,9 @@ TERMUX_PKG_VERSION=3.14
TERMUX_PKG_SRCURL=https://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
LDFLAGS+=" -llog" termux_step_pre_configure() {
LDFLAGS+=" -llog"
}
termux_step_make () { termux_step_make () {
continue continue

3
packages/kona/build.sh

@ -5,6 +5,3 @@ TERMUX_PKG_DESCRIPTION="Open-source implementation of the APL-like K programming
TERMUX_PKG_SRCURL="https://github.com/kevinlawler/kona/archive/Win.${TERMUX_PKG_VERSION}.zip" TERMUX_PKG_SRCURL="https://github.com/kevinlawler/kona/archive/Win.${TERMUX_PKG_VERSION}.zip"
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_MAINTAINER="Jonathan Badger <jhbadger@gmail.com>" TERMUX_PKG_MAINTAINER="Jonathan Badger <jhbadger@gmail.com>"
export PREFIX=$TERMUX_PREFIX

4
packages/lftp/build.sh

@ -5,11 +5,13 @@ TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=http://lftp.yar.ru/ftp/lftp-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=http://lftp.yar.ru/ftp/lftp-${TERMUX_PKG_VERSION}.tar.xz
# (1) Android has dn_expand, but lftp assumes that dn_skipname then exists, which it does not on android. # (1) Android has dn_expand, but lftp assumes that dn_skipname then exists, which it does not on android.
# (2) Use --with-openssl to use openssl instead of gnutls. # (2) Use --with-openssl to use openssl instead of gnutls.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_func_dn_expand=no --with-openssl --with-zlib=$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr --with-expat=$TERMUX_PREFIX" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_func_dn_expand=no --with-openssl --with-expat=$TERMUX_PREFIX"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-readline=$TERMUX_PREFIX" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-readline=$TERMUX_PREFIX"
TERMUX_PKG_DEPENDS="libexpat, openssl, readline, libutil, libidn" TERMUX_PKG_DEPENDS="libexpat, openssl, readline, libutil, libidn"
termux_step_pre_configure () { termux_step_pre_configure () {
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-zlib=$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr"
# We have patched an m4 file. # We have patched an m4 file.
cd $TERMUX_PKG_SRCDIR cd $TERMUX_PKG_SRCDIR
aclocal aclocal

3
packages/libgc/build.sh

@ -4,9 +4,6 @@ TERMUX_PKG_VERSION=7.6.0
TERMUX_PKG_SRCURL=http://www.hboehm.info/gc/gc_source/gc-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=http://www.hboehm.info/gc/gc_source/gc-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_RM_AFTER_INSTALL="share/gc" TERMUX_PKG_RM_AFTER_INSTALL="share/gc"
# Avoid defining structs already defined in api level 21 or beyond
# CFLAGS+=" -DGC_DONT_DEFINE_LINK_MAP"
termux_step_pre_configure () { termux_step_pre_configure () {
cd $TERMUX_PKG_SRCDIR cd $TERMUX_PKG_SRCDIR
autoconf autoconf

8
packages/libgcrypt/build.sh

@ -5,15 +5,17 @@ TERMUX_PKG_SRCURL=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${TERMUX_PKG_VE
TERMUX_PKG_DEPENDS="libgpg-error" TERMUX_PKG_DEPENDS="libgpg-error"
# configure tries to detect pthreads by linking with -lpthread, which does not exist on Android: # configure tries to detect pthreads by linking with -lpthread, which does not exist on Android:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_pthread_pthread_create=yes" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_pthread_pthread_create=yes"
LDFLAGS="$LDFLAGS -llog" # libgcrypt uses syslog, which we redirect to android logging
termux_step_pre_configure () { termux_step_pre_configure () {
LDFLAGS="$LDFLAGS -llog" # libgcrypt uses syslog, which we redirect to android logging
if [ $TERMUX_ARCH = "arm" ]; then if [ $TERMUX_ARCH = "arm" ]; then
# See http://marc.info/?l=gnupg-devel&m=139136972631909&w=3 # See http://marc.info/?l=gnupg-devel&m=139136972631909&w=3
CFLAGS+=" -mno-unaligned-access" CFLAGS+=" -mno-unaligned-access"
# Avoid text relocations: # Avoid text relocations:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" gcry_cv_gcc_inline_asm_neon=no" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" gcry_cv_gcc_inline_asm_neon=no"
fi fi
if [ $TERMUX_ARCH = "i686" -o $TERMUX_ARCH = "x86_64" ]; then if [ $TERMUX_ARCH = "i686" -o $TERMUX_ARCH = "x86_64" ]; then
# Fix i686 android build, also in https://bugzilla.gnome.org/show_bug.cgi?id=724050 # Fix i686 android build, also in https://bugzilla.gnome.org/show_bug.cgi?id=724050
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"

6
packages/libgmp/build.sh

@ -3,5 +3,7 @@ TERMUX_PKG_HOMEPAGE=https://gmplib.org/
TERMUX_PKG_DESCRIPTION="Library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers" TERMUX_PKG_DESCRIPTION="Library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers"
TERMUX_PKG_SRCURL=https://gmplib.org/download/gmp/gmp-${TERMUX_PKG_VERSION}.tar.lz TERMUX_PKG_SRCURL=https://gmplib.org/download/gmp/gmp-${TERMUX_PKG_VERSION}.tar.lz
# https://gmplib.org/list-archives/gmp-bugs/2012-April/002620.html termux_step_pre_configure() {
export CFLAGS="$CFLAGS $LDFLAGS" # https://gmplib.org/list-archives/gmp-bugs/2012-April/002620.html
CFLAGS+=" $LDFLAGS"
}

4
packages/libgnutls/build.sh

@ -6,4 +6,6 @@ TERMUX_PKG_VERSION=${_TERMUX_PKG_MAJOR_VERSION}.14
TERMUX_PKG_SRCURL=ftp://ftp.gnutls.org/gcrypt/gnutls/v${_TERMUX_PKG_MAJOR_VERSION}/gnutls-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=ftp://ftp.gnutls.org/gcrypt/gnutls/v${_TERMUX_PKG_MAJOR_VERSION}/gnutls-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-hardware-acceleration --disable-cxx --disable-openssl-compatibility --with-included-libtasn1 --without-p11-kit --with-default-trust-store-file=$TERMUX_PREFIX/etc/tls/cert.pem" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-hardware-acceleration --disable-cxx --disable-openssl-compatibility --with-included-libtasn1 --without-p11-kit --with-default-trust-store-file=$TERMUX_PREFIX/etc/tls/cert.pem"
CFLAGS+=" -std=c99" termux_step_pre_configure() {
CFLAGS+=" -std=c99"
}

35
packages/libluajit/build.sh

@ -5,25 +5,26 @@ TERMUX_PKG_SRCURL=http://luajit.org/download/LuaJIT-2.1.0-beta2.tar.gz
TERMUX_PKG_EXTRA_MAKE_ARGS="amalg PREFIX=$TERMUX_PREFIX" TERMUX_PKG_EXTRA_MAKE_ARGS="amalg PREFIX=$TERMUX_PREFIX"
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
# luajit wants same pointer size for host and target build termux_step_post_extract_package() {
export HOST_CC="gcc" # luajit wants same pointer size for host and target build
if [ $TERMUX_ARCH_BITS = "32" ]; then export HOST_CC="gcc"
if [ `uname` = "Linux" ]; then if [ $TERMUX_ARCH_BITS = "32" ]; then
# NOTE: "apt install libc6-dev-i386" for 32-bit headers if [ `uname` = "Linux" ]; then
export HOST_CFLAGS="-m32" # -arch i386" # NOTE: "apt install libc6-dev-i386" for 32-bit headers
export HOST_LDFLAGS="-m32" # arch i386" export HOST_CFLAGS="-m32" # -arch i386"
export HOST_LDFLAGS="-m32" # arch i386"
elif [ `uname` = "Darwin" ]; then elif [ `uname` = "Darwin" ]; then
export HOST_CFLAGS="-m32 -arch i386" export HOST_CFLAGS="-m32 -arch i386"
export HOST_LDFLAGS="-arch i386" export HOST_LDFLAGS="-arch i386"
fi
fi fi
fi export CROSS=${TERMUX_HOST_PLATFORM}-
export CROSS=${TERMUX_HOST_PLATFORM}- export TARGET_FLAGS="$CFLAGS $CPPFLAGS $LDFLAGS"
export TARGET_FLAGS="$CFLAGS $CPPFLAGS $LDFLAGS" export TARGET_SYS=Linux
export TARGET_SYS=Linux
ORIG_STRIP=$STRIP ORIG_STRIP=$STRIP
unset AR AS CC CXX CPP CPPFLAGS CFLAGS CXXFLAGS LDFLAGS RANLIB LD PKG_CONFIG STRIP unset AR AS CC CXX CPP CPPFLAGS CFLAGS CXXFLAGS LDFLAGS RANLIB LD PKG_CONFIG STRIP
}
termux_step_make_install () { termux_step_make_install () {
mkdir -p $TERMUX_PREFIX/include/luajit-2.0 mkdir -p $TERMUX_PREFIX/include/luajit-2.0

1
packages/libmcrypt/build.sh

@ -4,4 +4,3 @@ TERMUX_PKG_VERSION=2.5.8
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/${TERMUX_PKG_VERSION}/libmcrypt-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/${TERMUX_PKG_VERSION}/libmcrypt-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="--mandir=$TERMUX_PREFIX/share/man" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="--mandir=$TERMUX_PREFIX/share/man"

4
packages/libpopt/build.sh

@ -4,4 +4,6 @@ TERMUX_PKG_VERSION=1.16
TERMUX_PKG_SRCURL=http://rpm5.org/files/popt/popt-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=http://rpm5.org/files/popt/popt-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libandroid-glob" TERMUX_PKG_DEPENDS="libandroid-glob"
LDFLAGS+=" -landroid-glob" termux_step_pre_configure() {
LDFLAGS+=" -landroid-glob"
}

7
packages/lighttpd/build.sh

@ -5,5 +5,8 @@ TERMUX_PKG_SRCURL=http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-bzip2 --with-openssl --with-pcre --with-zlib" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-bzip2 --with-openssl --with-pcre --with-zlib"
TERMUX_PKG_DEPENDS="libbz2, openssl, pcre, libcrypt, libandroid-glob" TERMUX_PKG_DEPENDS="libbz2, openssl, pcre, libcrypt, libandroid-glob"
TERMUX_PKG_RM_AFTER_INSTALL="bin/lighttpd-angel" TERMUX_PKG_RM_AFTER_INSTALL="bin/lighttpd-angel"
# liblog for syslog:
LDFLAGS="$LDFLAGS -llog -landroid-glob" termux_step_pre_configure () {
# liblog for syslog:
LDFLAGS="$LDFLAGS -llog -landroid-glob"
}

23
packages/ltrace/build.sh

@ -2,24 +2,17 @@ TERMUX_PKG_HOMEPAGE=http://www.ltrace.org/
TERMUX_PKG_DESCRIPTION="Tracks runtime library calls in dynamically linked programs" TERMUX_PKG_DESCRIPTION="Tracks runtime library calls in dynamically linked programs"
TERMUX_PKG_VERSION=0.7.3.20160411 TERMUX_PKG_VERSION=0.7.3.20160411
TERMUX_PKG_DEPENDS="elfutils" TERMUX_PKG_DEPENDS="elfutils"
# TERMUX_PKG_SRCURL=http://www.ltrace.org/ltrace_${TERMUX_PKG_VERSION}.orig.tar.bz2
# TERMUX_PKG_FOLDERNAME=ltrace-${TERMUX_PKG_VERSION}
_COMMIT=2def9f1217374cc8371105993003b2c663aefda7 _COMMIT=2def9f1217374cc8371105993003b2c663aefda7
TERMUX_PKG_SRCURL=https://github.com/dkogan/ltrace/archive/${_COMMIT}.zip TERMUX_PKG_SRCURL=https://github.com/dkogan/ltrace/archive/${_COMMIT}.zip
TERMUX_PKG_FOLDERNAME=ltrace-${_COMMIT} TERMUX_PKG_FOLDERNAME=ltrace-${_COMMIT}
termux_step_pre_configure () {
autoreconf -i ../src
}
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_host=$TERMUX_ARCH-generic-linux-gnu" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_host=$TERMUX_ARCH-generic-linux-gnu"
CFLAGS+=" -Wno-error=maybe-uninitialized" termux_step_pre_configure () {
CFLAGS+=" -Wno-error=maybe-uninitialized"
# rindex is obsolete name of strrchr which is not available in Android
# function signature stays same, so I'm replacing it with C preprocessor
# instead of patch
CFLAGS+=" -Drindex=strrchr"
# rindex is obsolete name of strrchr which is not available in Android autoreconf -i ../src
# function signature stays same, so I'm replacing it with C preprocessor }
# instead of patch
CFLAGS+=" -Drindex=strrchr"

6
packages/lua/build.sh

@ -6,5 +6,7 @@ TERMUX_PKG_DEPENDS="readline"
TERMUX_PKG_EXTRA_MAKE_ARGS=linux TERMUX_PKG_EXTRA_MAKE_ARGS=linux
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
AR="$AR rcu" termux_step_pre_configure () {
LDFLAGS="$LDFLAGS -lm" AR="$AR rcu"
LDFLAGS="$LDFLAGS -lm"
}

2
packages/macchanger/build.sh

@ -3,8 +3,6 @@ TERMUX_PKG_DESCRIPTION="Utility that makes the maniputation of MAC addresses of
TERMUX_PKG_VERSION=1.7.0 TERMUX_PKG_VERSION=1.7.0
TERMUX_PKG_SRCURL=https://github.com/alobbs/macchanger/archive/${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/alobbs/macchanger/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=macchanger-${TERMUX_PKG_VERSION} TERMUX_PKG_FOLDERNAME=macchanger-${TERMUX_PKG_VERSION}
# TERMUX_PKG_DEPENDS="pcre, openssl, libuuid"
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ssl=openssl --disable-iri"
termux_step_pre_configure() { termux_step_pre_configure() {
cd $TERMUX_PKG_SRCDIR cd $TERMUX_PKG_SRCDIR

6
packages/mathomatic/build.sh

@ -9,6 +9,6 @@ TERMUX_PKG_DEPENDS="readline"
TERMUX_PKG_RM_AFTER_INSTALL="share/applications/mathomatic.desktop share/pixmaps" TERMUX_PKG_RM_AFTER_INSTALL="share/applications/mathomatic.desktop share/pixmaps"
TERMUX_PKG_MAINTAINER="Jonathan Badger <jhbadger@gmail.com>" TERMUX_PKG_MAINTAINER="Jonathan Badger <jhbadger@gmail.com>"
export PREFIX=$TERMUX_PREFIX termux_step_pre_configure() {
CPPFLAGS+=" -DUSE_TGAMMA -DBOLD_COLOR" CPPFLAGS+=" -DUSE_TGAMMA -DBOLD_COLOR"
}

4
packages/mlocate/build.sh

@ -4,7 +4,9 @@ TERMUX_PKG_VERSION=0.26
TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=https://fedorahosted.org/releases/m/l/mlocate/mlocate-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=https://fedorahosted.org/releases/m/l/mlocate/mlocate-${TERMUX_PKG_VERSION}.tar.xz
CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX" termux_step_pre_configure() {
CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"
}
termux_step_create_debscripts () { termux_step_create_debscripts () {
echo "mkdir -p $TERMUX_PREFIX/var/mlocate/" > postinst echo "mkdir -p $TERMUX_PREFIX/var/mlocate/" > postinst

17
packages/mosh/build.sh

@ -3,12 +3,11 @@ TERMUX_PKG_DESCRIPTION="Mobile shell that supports roaming and intelligent local
TERMUX_PKG_VERSION=1.2.6 TERMUX_PKG_VERSION=1.2.6
TERMUX_PKG_SRCURL=https://github.com/mobile-shell/mosh/archive/mosh-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/mobile-shell/mosh/archive/mosh-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=mosh-mosh-$TERMUX_PKG_VERSION TERMUX_PKG_FOLDERNAME=mosh-mosh-$TERMUX_PKG_VERSION
TERMUX_PKG_DEPENDS="libandroid-support, protobuf, ncurses, openssl, openssh, libutil" TERMUX_PKG_DEPENDS="libandroid-support, protobuf, ncurses, openssl, openssh, libutil"
export PROTOC=$TERMUX_TOPDIR/protobuf/host-build/src/protoc
termux_step_pre_configure () { termux_step_pre_configure () {
export PROTOC=$TERMUX_TOPDIR/protobuf/host-build/src/protoc
cd $TERMUX_PKG_SRCDIR cd $TERMUX_PKG_SRCDIR
./autogen.sh ./autogen.sh
} }
@ -16,10 +15,10 @@ termux_step_pre_configure () {
termux_step_post_make_install () { termux_step_post_make_install () {
cd $TERMUX_PREFIX/bin cd $TERMUX_PREFIX/bin
mv mosh mosh.pl mv mosh mosh.pl
$CXX $CXXFLAGS $LDFLAGS \ $CXX $CXXFLAGS $LDFLAGS \
-isystem $TERMUX_PREFIX/include \ -isystem $TERMUX_PREFIX/include \
-lutil \ -lutil \
-DPACKAGE_VERSION=\"$TERMUX_PKG_VERSION\" \ -DPACKAGE_VERSION=\"$TERMUX_PKG_VERSION\" \
-std=c++11 -Wall -Wextra -Werror \ -std=c++11 -Wall -Wextra -Werror \
$TERMUX_PKG_BUILDER_DIR/mosh.cc -o mosh $TERMUX_PKG_BUILDER_DIR/mosh.cc -o mosh
} }

11
packages/mpv/build.sh

@ -1,9 +1,3 @@
# Does not work with libjpeg-turbo or libpng installed, since
# linking against libOpenSLES causes indirect linkage against
# libskia.so, which links against the platform libjpeg.so and
# libpng.so, which are not compatible with the Termux ones.
#
# On Android N also liblzma seems to conflict.
TERMUX_PKG_HOMEPAGE=https://mpv.io/ TERMUX_PKG_HOMEPAGE=https://mpv.io/
TERMUX_PKG_DESCRIPTION="Command-line media player" TERMUX_PKG_DESCRIPTION="Command-line media player"
TERMUX_PKG_VERSION=0.20.0 TERMUX_PKG_VERSION=0.20.0
@ -35,6 +29,11 @@ termux_step_make_install () {
echo "ao=opensles" > $TERMUX_PREFIX/etc/mpv/mpv.conf echo "ao=opensles" > $TERMUX_PREFIX/etc/mpv/mpv.conf
# Try to work around OpenSL ES library clashes: # Try to work around OpenSL ES library clashes:
# Linking against libOpenSLES causes indirect linkage against
# libskia.so, which links against the platform libjpeg.so and
# libpng.so, which are not compatible with the Termux ones.
#
# On Android N also liblzma seems to conflict.
mkdir -p $TERMUX_PREFIX/libexec mkdir -p $TERMUX_PREFIX/libexec
mv $TERMUX_PREFIX/bin/mpv $TERMUX_PREFIX/libexec mv $TERMUX_PREFIX/bin/mpv $TERMUX_PREFIX/libexec

2
packages/openal-soft/build.sh

@ -2,8 +2,6 @@ TERMUX_PKG_HOMEPAGE=http://kcat.strangesoft.net/openal.html
TERMUX_PKG_DESCRIPTION="Software implementation of the OpenAL API" TERMUX_PKG_DESCRIPTION="Software implementation of the OpenAL API"
TERMUX_PKG_VERSION=1.17.2 TERMUX_PKG_VERSION=1.17.2
TERMUX_PKG_SRCURL=http://kcat.strangesoft.net/openal-releases/openal-soft-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SRCURL=http://kcat.strangesoft.net/openal-releases/openal-soft-${TERMUX_PKG_VERSION}.tar.bz2
# TERMUX_PKG_DEPENDS="libgnutls, libuuid, libandroid-glob"
# LDFLAGS+=" -landroid-glob"
termux_step_configure () { termux_step_configure () {
cd $TERMUX_PKG_BUILDDIR cd $TERMUX_PKG_BUILDDIR

6
packages/openssh/build.sh

@ -11,8 +11,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-libutil ac_cv_search_openpty=no --w
TERMUX_PKG_MAKE_INSTALL_TARGET="install-nokeys" TERMUX_PKG_MAKE_INSTALL_TARGET="install-nokeys"
TERMUX_PKG_RM_AFTER_INSTALL="bin/slogin share/man/man1/slogin.1" TERMUX_PKG_RM_AFTER_INSTALL="bin/slogin share/man/man1/slogin.1"
export LD=$CC # Needed to link the binaries termux_step_pre_configure() {
export LDFLAGS="$LDFLAGS -llog" # liblog for android logging in syslog hack LD=$CC # Needed to link the binaries
LDFLAGS+=" -llog" # liblog for android logging in syslog hack
}
termux_step_pre_make () { termux_step_pre_make () {
# We need to remove this file before installing, since otherwise the # We need to remove this file before installing, since otherwise the

4
packages/optipng/build.sh

@ -6,4 +6,6 @@ TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/optipng/OptiPNG/optip
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-system-zlib --with-system-libpng --mandir=$TERMUX_PREFIX/share/man" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-system-zlib --with-system-libpng --mandir=$TERMUX_PREFIX/share/man"
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
LD=$CC termux_step_pre_configure () {
LD=$CC
}

2
packages/pcre/build.sh

@ -4,5 +4,3 @@ TERMUX_PKG_VERSION=8.39
TERMUX_PKG_SRCURL=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SRCURL=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_RM_AFTER_INSTALL="bin/pcre-config bin/pcregrep bin/pcretest share/man/man1/pcre*.1 lib/libpcreposix.so lib/libpcreposix.so.0 lib/libpcreposix.so.0.0.2" TERMUX_PKG_RM_AFTER_INSTALL="bin/pcre-config bin/pcregrep bin/pcretest share/man/man1/pcre*.1 lib/libpcreposix.so lib/libpcreposix.so.0 lib/libpcreposix.so.0.0.2"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-cpp --enable-utf8 --enable-unicode-properties" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-cpp --enable-utf8 --enable-unicode-properties"

2
packages/pforth/build.sh

@ -7,8 +7,8 @@ TERMUX_PKG_FOLDERNAME=pforth-${_COMMIT}
TERMUX_PKG_HOSTBUILD=yes TERMUX_PKG_HOSTBUILD=yes
termux_step_host_build () { termux_step_host_build () {
cp -Rf $TERMUX_PKG_SRCDIR/* .
cd build/unix cd build/unix
CC=gcc make pfdicdat.h
CC=gcc make all CC=gcc make all
} }

4
packages/procps/build.sh

@ -10,4 +10,6 @@ TERMUX_PKG_DEPENDS="ncurses"
# "For compatibility between distributions, can we have /bin/kill made available from coreutils?" # "For compatibility between distributions, can we have /bin/kill made available from coreutils?"
TERMUX_PKG_RM_AFTER_INSTALL="bin/kill share/man/man1/kill.1 usr/bin/w share/man/man1/w.1 usr/bin/slabtop share/man/man1/slabtop.1" TERMUX_PKG_RM_AFTER_INSTALL="bin/kill share/man/man1/kill.1 usr/bin/w share/man/man1/w.1 usr/bin/slabtop share/man/man1/slabtop.1"
CFLAGS+=" -DHOST_NAME_MAX=255" termux_step_pre_configure() {
CFLAGS+=" -DHOST_NAME_MAX=255"
}

4
packages/proot/build.sh

@ -7,7 +7,9 @@ TERMUX_PKG_SRCURL=https://github.com/termux/proot/archive/${_COMMIT}.zip
TERMUX_PKG_FOLDERNAME=proot-$_COMMIT TERMUX_PKG_FOLDERNAME=proot-$_COMMIT
TERMUX_PKG_DEPENDS="libtalloc" TERMUX_PKG_DEPENDS="libtalloc"
export LD=$CC termux_step_pre_configure() {
export LD=$CC
}
termux_step_make_install () { termux_step_make_install () {
export CROSS_COMPILE=${TERMUX_HOST_PLATFORM}- export CROSS_COMPILE=${TERMUX_HOST_PLATFORM}-

5
packages/rsync/build.sh

@ -3,4 +3,7 @@ TERMUX_PKG_DESCRIPTION="Utility that provides fast incremental file transfer"
TERMUX_PKG_VERSION=3.1.2 TERMUX_PKG_VERSION=3.1.2
TERMUX_PKG_SRCURL=http://rsync.samba.org/ftp/rsync/src/rsync-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=http://rsync.samba.org/ftp/rsync/src/rsync-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-rsyncd-conf=$TERMUX_PREFIX/etc/rsyncd.conf --with-included-zlib=no --disable-debug" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-rsyncd-conf=$TERMUX_PREFIX/etc/rsyncd.conf --with-included-zlib=no --disable-debug"
CFLAGS="$CFLAGS -llog" # for syslog
termux_step_pre_configure () {
CFLAGS="$CFLAGS -llog" # for syslog
}

8
packages/ruby/build.sh

@ -15,11 +15,13 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --without-gdbm"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no"
# Fix DEPRECATED_TYPE macro clang compatibility: # Fix DEPRECATED_TYPE macro clang compatibility:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" rb_cv_type_deprecated=x" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" rb_cv_type_deprecated=x"
# getresuid(2) does not work on ChromeOS - https://github.com/termux/termux-app/issues/147:
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_getresuid=no"
# Ruby does not use this directly, but specify for gem building C++-using extensions: termux_step_pre_configure() {
CXXFLAGS+=" -frtti -fexceptions" # -lgnustl_shared" # Ruby does not use this directly, but specify for gem building C++-using extensions:
CXXFLAGS+=" -frtti -fexceptions"
termux_step_pre_configure () {
export GEM_HOME=$TERMUX_PREFIX/var/lib/gems export GEM_HOME=$TERMUX_PREFIX/var/lib/gems
mkdir -p $GEM_HOME mkdir -p $GEM_HOME
} }

4
packages/socat/build.sh

@ -7,7 +7,9 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_header_resolv_h=no ac_cv_c_compiler_gnu=yes
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
#TERMUX_PKG_HOSTBUILD=yes #TERMUX_PKG_HOSTBUILD=yes
LDFLAGS="$LDFLAGS -llog" # uses syslog termux_step_pre_configure () {
LDFLAGS="$LDFLAGS -llog" # uses syslog
}
#termux_step_configure () { #termux_step_configure () {
# From socat_buildscript_for_android.sh in socat source: # From socat_buildscript_for_android.sh in socat source:

4
packages/sox/build.sh

@ -8,4 +8,6 @@ TERMUX_PKG_RM_AFTER_INSTALL="bin/play bin/rec share/man/man1/play.1 share/man/ma
# Depend on file for libmagic.so linking: # Depend on file for libmagic.so linking:
TERMUX_PKG_DEPENDS="file, libpng, libmp3lame, libogg, libvorbis, libandroid-glob, libflac, libid3tag, libmad" TERMUX_PKG_DEPENDS="file, libpng, libmp3lame, libogg, libvorbis, libandroid-glob, libflac, libid3tag, libmad"
LDFLAGS+=" -landroid-glob" termux_step_pre_configure() {
LDFLAGS+=" -landroid-glob"
}

7
packages/stag/build.sh

@ -5,5 +5,8 @@ TERMUX_PKG_SRCURL=https://github.com/seenaburns/stag/archive/v${TERMUX_PKG_VERSI
TERMUX_PKG_FOLDERNAME=stag-$TERMUX_PKG_VERSION TERMUX_PKG_FOLDERNAME=stag-$TERMUX_PKG_VERSION
TERMUX_PKG_DEPENDS="ncurses" TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
CFLAGS+=" $CPPFLAGS"
CFLAGS+=" $LDFLAGS" termux_step_pre_configure() {
CFLAGS+=" $CPPFLAGS"
CFLAGS+=" $LDFLAGS"
}

15
packages/strace/build.sh

@ -4,10 +4,13 @@ TERMUX_PKG_VERSION=4.13
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/strace/strace/${TERMUX_PKG_VERSION}/strace-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/strace/strace/${TERMUX_PKG_VERSION}/strace-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_RM_AFTER_INSTALL=bin/strace-graph # This is a perl script TERMUX_PKG_RM_AFTER_INSTALL=bin/strace-graph # This is a perl script
CFLAGS+=" -DIOV_MAX=1024" termux_step_pre_configure () {
if [ $TERMUX_ARCH_BITS = "64" ]; then
# The strace configure script only looks for struct flock64 in <linux/fcntl.h>,
# but we actually have it in <fcntl.h> here:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_type_struct_flock64=yes"
fi
CFLAGS+=" -DIOV_MAX=1024"
}
if [ $TERMUX_ARCH_BITS = "64" ]; then
# The strace configure script only looks for struct flock64 in <linux/fcntl.h>,
# but we actually have it in <fcntl.h> here:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_type_struct_flock64=yes"
fi

4
packages/stunnel/build.sh

@ -6,4 +6,6 @@ TERMUX_PKG_DEPENDS="openssl, libutil"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-shared --with-ssl=$TERMUX_PREFIX --disable-fips" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-shared --with-ssl=$TERMUX_PREFIX --disable-fips"
TERMUX_PKG_RM_AFTER_INSTALL="bin/stunnel3 share/man/man8/stunnel.*.8" TERMUX_PKG_RM_AFTER_INSTALL="bin/stunnel3 share/man/man8/stunnel.*.8"
LDFLAGS+=" -llog" termux_step_pre_configure() {
LDFLAGS+=" -llog"
}

6
packages/tinyscheme/build.sh

@ -5,8 +5,10 @@ TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-1.41/tinyscheme-1.41.tar.gz TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-1.41/tinyscheme-1.41.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
AR+=" crs" termux_step_pre_configure () {
LD=$CC AR+=" crs"
LD=$CC
}
# TODO: Add the tsx extension with file/networking (http://heras-gilsanz.com/manuel/tsx.html) # TODO: Add the tsx extension with file/networking (http://heras-gilsanz.com/manuel/tsx.html)
# and the regexp extension (http://downloads.sourceforge.net/project/tinyscheme/tinyscheme-regex/1.3/re-1.3.tar.gz) # and the regexp extension (http://downloads.sourceforge.net/project/tinyscheme/tinyscheme-regex/1.3/re-1.3.tar.gz)

4
packages/vim-python/build.sh

@ -14,10 +14,12 @@ TERMUX_PKG_RM_AFTER_INSTALL='bin/rview bin/rvim bin/ex share/man/man1/evim.1 sha
# vim-python: # vim-python:
TERMUX_PKG_CONFLICTS="vim" TERMUX_PKG_CONFLICTS="vim"
CPPFLAGS+=" -I${TERMUX_PREFIX}/include/python3.5m"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-python3interp --with-python3-config-dir=$TERMUX_PREFIX/lib/python3.5/config-3.5m/" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-python3interp --with-python3-config-dir=$TERMUX_PREFIX/lib/python3.5/config-3.5m/"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" vi_cv_path_python3_pfx=$TERMUX_PREFIX vi_cv_var_python3_version=3.5" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" vi_cv_path_python3_pfx=$TERMUX_PREFIX vi_cv_var_python3_version=3.5"
TERMUX_PKG_DESCRIPTION+=" - with python support" TERMUX_PKG_DESCRIPTION+=" - with python support"
termux_step_pre_configure() {
CPPFLAGS+=" -I${TERMUX_PREFIX}/include/python3.5m"
}
termux_step_pre_configure () { termux_step_pre_configure () {
make distclean make distclean

4
packages/vorbis-tools/build.sh

@ -6,4 +6,6 @@ TERMUX_PKG_SRCURL=http://downloads.xiph.org/releases/vorbis/vorbis-tools-${TERMU
# libflac for flac support in oggenc: # libflac for flac support in oggenc:
TERMUX_PKG_DEPENDS="libvorbis, libflac" TERMUX_PKG_DEPENDS="libvorbis, libflac"
LDFLAGS+=" -lm" termux_step_pre_configure() {
LDFLAGS+=" -lm"
}

1
packages/xvidcore/build.sh

@ -4,7 +4,6 @@ TERMUX_PKG_VERSION=1.3.4
TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=http://downloads.xvid.org/downloads/xvidcore-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=http://downloads.xvid.org/downloads/xvidcore-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=xvidcore TERMUX_PKG_FOLDERNAME=xvidcore
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure () { termux_step_pre_configure () {

Loading…
Cancel
Save