# Host build for man pages generated by help2man, see makefile.patch:
TERMUX_PKG_HOSTBUILD=yes
-CPPFLAGS+=" -DDEFAULT_TMPDIR=\\\"$TERMUX_PREFIX/tmp\\\""
+termux_step_pre_configure() {
+ CPPFLAGS+=" -DDEFAULT_TMPDIR=\\\"$TERMUX_PREFIX/tmp\\\""
+}
TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/direvent/direvent-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libandroid-glob"
-LDFLAGS+=" -llog -landroid-glob"
+termux_step_pre_configure() {
+ LDFLAGS+=" -llog -landroid-glob"
+}
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"
-export BUILD_AR=ar
-export BUILD_CC=gcc
-export BUILD_CFLAGS=
-export BUILD_CPPFLAGS=
-export BUILD_LDFLAGS=
-export BUILD_RANLIB=
+termux_step_pre_configure () {
+ export BUILD_AR=ar
+ export BUILD_CC=gcc
+ export BUILD_CFLAGS=
+ export BUILD_CPPFLAGS=
+ export BUILD_LDFLAGS=
+ export BUILD_RANLIB=
-_RESOLV_CONF=$TERMUX_PREFIX/etc/resolv.conf
-CFLAGS+=" $CPPFLAGS -DRESOLV_CONF=\\\"$_RESOLV_CONF\\\""
-LDFLAGS+=" -llog"
+ _RESOLV_CONF=$TERMUX_PREFIX/etc/resolv.conf
+ CFLAGS+=" $CPPFLAGS -DRESOLV_CONF=\\\"$_RESOLV_CONF\\\""
+ LDFLAGS+=" -llog"
+}
termux_step_make () {
make -C lib/isc
# The ar.c file is patched away for now:
TERMUX_PKG_RM_AFTER_INSTALL="bin/eu-ar"
-LDFLAGS+=" -lintl"
-CFLAGS+=" -DTERMUX_EXPOSE_MEMPCPY=1 -Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error"
+termux_step_pre_configure() {
+ 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:
-CFLAGS+=" -D__USE_BSD"
+ # Exposes ACCESSPERMS in <sys/stat.h> which elfutils uses:
+ CFLAGS+=" -D__USE_BSD"
-termux_step_pre_configure () {
# Install argp lib.
ARGP_FILE=$TERMUX_PKG_CACHEDIR/argp-standalone.1.3.tar.gz
if [ ! -f $ARGP_FILE ]; then
TERMUX_PKG_SRCURL=ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
-LD=$CC
+termux_step_pre_configure () {
+ LD=$CC
+}
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"
-# For arpa:
-CFLAGS="$CFLAGS -isystem $TERMUX_PKG_BUILDER_DIR"
+termux_step_pre_configure () {
+ # For arpa:
+ CFLAGS+=" -isystem $TERMUX_PKG_BUILDER_DIR"
+}
termux_step_post_configure () {
# Hack to compile first version of libpurple-ciphers.la
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_FOLDERNAME=fish-$TERMUX_PKG_VERSION
-CXXFLAGS+=" $CPPFLAGS"
+termux_step_pre_configure() {
+ CXXFLAGS+=" $CPPFLAGS"
+}
termux_step_post_make_install () {
cat >> $TERMUX_PREFIX/etc/fish/config.fish <<HERE
TERMUX_PKG_FOLDERNAME=frotz-${TERMUX_PKG_VERSION}
TERMUX_PKG_BUILD_IN_SRC=yes
-# Pull request submitted to replace rindex() with strrchr() at
-# https://github.com/DavidGriffith/frotz/pull/20
-CFLAGS+=" -Drindex=strrchr"
+termux_step_pre_configure() {
+ # Pull request submitted to replace rindex() with strrchr() at
+ # https://github.com/DavidGriffith/frotz/pull/20
+ CFLAGS+=" -Drindex=strrchr"
+}
termux_step_make () {
CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install
# 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_RM_AFTER_INSTALL="share/gdb/python share/gdb/syscalls share/gdb/system-gdbinit"
-
TERMUX_PKG_MAKE_INSTALL_TARGET="-C gdb install"
TERMUX_PKG_BUILD_IN_SRC="yes"
-# For frexp(3) usage:
-LDFLAGS+=" -lm"
+termux_step_pre_configure() {
+ # For frexp(3) usage:
+ LDFLAGS+=" -lm"
-# Fix "undefined reference to 'rpl_gettimeofday'" when building on x86:
-export gl_cv_func_gettimeofday_clobber=no
-export gl_cv_func_gettimeofday_posix_signature=yes
+ # Fix "undefined reference to 'rpl_gettimeofday'" when building on x86:
+ export gl_cv_func_gettimeofday_clobber=no
+ export gl_cv_func_gettimeofday_posix_signature=yes
+}
termux_step_post_extract_package () {
if [ $TERMUX_ARCH = aarch64 ]; then
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_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
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
-# does not support:
+# --disable-znodelete to avoid DF_1_NODELETE which most Android 5.0 linkers does not support:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-znodelete"
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 () {
+ # glib checks for __BIONIC__ instead of __ANDROID__:
+ CFLAGS="$CFLAGS -D__BIONIC__=1"
+
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_stack_grows=no" >> termux_configure.cache
echo "glib_cv_uscore=no" >> termux_configure.cache
- #echo "ac_cv_func_posix_getpwuid_r=yes" >> 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
+ chmod a-w termux_configure.cache
}
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-readline"
TERMUX_PKG_HOSTBUILD=yes
-export CFLAGS="$CFLAGS -Wno-overflow"
+termux_step_pre_configure() {
+ CFLAGS+=" -Wno-overflow"
+}
termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/mkeyes $TERMUX_PKG_BUILDDIR/patterns/mkeyes
TERMUX_PKG_RM_AFTER_INSTALL="info/gnushogi.info"
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_HOSTBUILD=yes
-export CFLAGS="$CFLAGS $CPPFLAGS"
+
+termux_step_pre_configure() {
+ CFLAGS+=" $CPPFLAGS"
+}
termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/gnushogi/pat2inc $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
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"
-CPPFLAGS+=" -DLOGIN_PROCESS=6 -DDEAD_PROCESS=8 -DLOG_NFACILITIES=24"
-LDFLAGS+=" -llog" # for syslog
+termux_step_pre_configure() {
+ CPPFLAGS+=" -DLOGIN_PROCESS=6 -DDEAD_PROCESS=8 -DLOG_NFACILITIES=24"
+ LDFLAGS+=" -llog" # for syslog
+}
TERMUX_PKG_SRCURL=https://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
-LDFLAGS+=" -llog"
+termux_step_pre_configure() {
+ LDFLAGS+=" -llog"
+}
termux_step_make () {
continue
TERMUX_PKG_SRCURL="https://github.com/kevinlawler/kona/archive/Win.${TERMUX_PKG_VERSION}.zip"
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_MAINTAINER="Jonathan Badger <jhbadger@gmail.com>"
-
-export PREFIX=$TERMUX_PREFIX
-
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.
# (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_DEPENDS="libexpat, openssl, readline, libutil, libidn"
termux_step_pre_configure () {
+ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-zlib=$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr"
+
# We have patched an m4 file.
cd $TERMUX_PKG_SRCDIR
aclocal
TERMUX_PKG_SRCURL=http://www.hboehm.info/gc/gc_source/gc-${TERMUX_PKG_VERSION}.tar.gz
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 () {
cd $TERMUX_PKG_SRCDIR
autoconf
TERMUX_PKG_DEPENDS="libgpg-error"
# 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"
-LDFLAGS="$LDFLAGS -llog" # libgcrypt uses syslog, which we redirect to android logging
termux_step_pre_configure () {
+ LDFLAGS="$LDFLAGS -llog" # libgcrypt uses syslog, which we redirect to android logging
+
if [ $TERMUX_ARCH = "arm" ]; then
# See http://marc.info/?l=gnupg-devel&m=139136972631909&w=3
CFLAGS+=" -mno-unaligned-access"
- # Avoid text relocations:
- TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" gcry_cv_gcc_inline_asm_neon=no"
+ # Avoid text relocations:
+ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" gcry_cv_gcc_inline_asm_neon=no"
fi
+
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
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"
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
-# https://gmplib.org/list-archives/gmp-bugs/2012-April/002620.html
-export CFLAGS="$CFLAGS $LDFLAGS"
+termux_step_pre_configure() {
+ # https://gmplib.org/list-archives/gmp-bugs/2012-April/002620.html
+ CFLAGS+=" $LDFLAGS"
+}
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"
-CFLAGS+=" -std=c99"
+termux_step_pre_configure() {
+ CFLAGS+=" -std=c99"
+}
TERMUX_PKG_EXTRA_MAKE_ARGS="amalg PREFIX=$TERMUX_PREFIX"
TERMUX_PKG_BUILD_IN_SRC=yes
-# luajit wants same pointer size for host and target build
-export HOST_CC="gcc"
-if [ $TERMUX_ARCH_BITS = "32" ]; then
- if [ `uname` = "Linux" ]; then
- # NOTE: "apt install libc6-dev-i386" for 32-bit headers
- export HOST_CFLAGS="-m32" # -arch i386"
- export HOST_LDFLAGS="-m32" # arch i386"
-
- elif [ `uname` = "Darwin" ]; then
- export HOST_CFLAGS="-m32 -arch i386"
- export HOST_LDFLAGS="-arch i386"
+termux_step_post_extract_package() {
+ # luajit wants same pointer size for host and target build
+ export HOST_CC="gcc"
+ if [ $TERMUX_ARCH_BITS = "32" ]; then
+ if [ `uname` = "Linux" ]; then
+ # NOTE: "apt install libc6-dev-i386" for 32-bit headers
+ export HOST_CFLAGS="-m32" # -arch i386"
+ export HOST_LDFLAGS="-m32" # arch i386"
+ elif [ `uname` = "Darwin" ]; then
+ export HOST_CFLAGS="-m32 -arch i386"
+ export HOST_LDFLAGS="-arch i386"
+ fi
fi
-fi
-export CROSS=${TERMUX_HOST_PLATFORM}-
-export TARGET_FLAGS="$CFLAGS $CPPFLAGS $LDFLAGS"
-export TARGET_SYS=Linux
+ export CROSS=${TERMUX_HOST_PLATFORM}-
+ export TARGET_FLAGS="$CFLAGS $CPPFLAGS $LDFLAGS"
+ export TARGET_SYS=Linux
-ORIG_STRIP=$STRIP
-unset AR AS CC CXX CPP CPPFLAGS CFLAGS CXXFLAGS LDFLAGS RANLIB LD PKG_CONFIG STRIP
+ ORIG_STRIP=$STRIP
+ unset AR AS CC CXX CPP CPPFLAGS CFLAGS CXXFLAGS LDFLAGS RANLIB LD PKG_CONFIG STRIP
+}
termux_step_make_install () {
mkdir -p $TERMUX_PREFIX/include/luajit-2.0
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_EXTRA_CONFIGURE_ARGS+="--mandir=$TERMUX_PREFIX/share/man"
-
TERMUX_PKG_SRCURL=http://rpm5.org/files/popt/popt-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libandroid-glob"
-LDFLAGS+=" -landroid-glob"
+termux_step_pre_configure() {
+ LDFLAGS+=" -landroid-glob"
+}
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-bzip2 --with-openssl --with-pcre --with-zlib"
TERMUX_PKG_DEPENDS="libbz2, openssl, pcre, libcrypt, libandroid-glob"
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"
+}
TERMUX_PKG_DESCRIPTION="Tracks runtime library calls in dynamically linked programs"
TERMUX_PKG_VERSION=0.7.3.20160411
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
TERMUX_PKG_SRCURL=https://github.com/dkogan/ltrace/archive/${_COMMIT}.zip
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"
-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
-# function signature stays same, so I'm replacing it with C preprocessor
-# instead of patch
-CFLAGS+=" -Drindex=strrchr"
+ autoreconf -i ../src
+}
TERMUX_PKG_EXTRA_MAKE_ARGS=linux
TERMUX_PKG_BUILD_IN_SRC=yes
-AR="$AR rcu"
-LDFLAGS="$LDFLAGS -lm"
+termux_step_pre_configure () {
+ AR="$AR rcu"
+ LDFLAGS="$LDFLAGS -lm"
+}
TERMUX_PKG_VERSION=1.7.0
TERMUX_PKG_SRCURL=https://github.com/alobbs/macchanger/archive/${TERMUX_PKG_VERSION}.tar.gz
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() {
cd $TERMUX_PKG_SRCDIR
TERMUX_PKG_RM_AFTER_INSTALL="share/applications/mathomatic.desktop share/pixmaps"
TERMUX_PKG_MAINTAINER="Jonathan Badger <jhbadger@gmail.com>"
-export PREFIX=$TERMUX_PREFIX
-CPPFLAGS+=" -DUSE_TGAMMA -DBOLD_COLOR"
-
+termux_step_pre_configure() {
+ CPPFLAGS+=" -DUSE_TGAMMA -DBOLD_COLOR"
+}
TERMUX_PKG_BUILD_REVISION=1
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 () {
echo "mkdir -p $TERMUX_PREFIX/var/mlocate/" > postinst
TERMUX_PKG_VERSION=1.2.6
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_DEPENDS="libandroid-support, protobuf, ncurses, openssl, openssh, libutil"
-export PROTOC=$TERMUX_TOPDIR/protobuf/host-build/src/protoc
-
termux_step_pre_configure () {
+ export PROTOC=$TERMUX_TOPDIR/protobuf/host-build/src/protoc
+
cd $TERMUX_PKG_SRCDIR
./autogen.sh
}
termux_step_post_make_install () {
cd $TERMUX_PREFIX/bin
mv mosh mosh.pl
- $CXX $CXXFLAGS $LDFLAGS \
- -isystem $TERMUX_PREFIX/include \
- -lutil \
- -DPACKAGE_VERSION=\"$TERMUX_PKG_VERSION\" \
- -std=c++11 -Wall -Wextra -Werror \
- $TERMUX_PKG_BUILDER_DIR/mosh.cc -o mosh
+ $CXX $CXXFLAGS $LDFLAGS \
+ -isystem $TERMUX_PREFIX/include \
+ -lutil \
+ -DPACKAGE_VERSION=\"$TERMUX_PKG_VERSION\" \
+ -std=c++11 -Wall -Wextra -Werror \
+ $TERMUX_PKG_BUILDER_DIR/mosh.cc -o mosh
}
-# 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_DESCRIPTION="Command-line media player"
TERMUX_PKG_VERSION=0.20.0
echo "ao=opensles" > $TERMUX_PREFIX/etc/mpv/mpv.conf
# 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
mv $TERMUX_PREFIX/bin/mpv $TERMUX_PREFIX/libexec
TERMUX_PKG_DESCRIPTION="Software implementation of the OpenAL API"
TERMUX_PKG_VERSION=1.17.2
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 () {
cd $TERMUX_PKG_BUILDDIR
TERMUX_PKG_MAKE_INSTALL_TARGET="install-nokeys"
TERMUX_PKG_RM_AFTER_INSTALL="bin/slogin share/man/man1/slogin.1"
-export LD=$CC # Needed to link the binaries
-export LDFLAGS="$LDFLAGS -llog" # liblog for android logging in syslog hack
+termux_step_pre_configure() {
+ LD=$CC # Needed to link the binaries
+ LDFLAGS+=" -llog" # liblog for android logging in syslog hack
+}
termux_step_pre_make () {
# We need to remove this file before installing, since otherwise the
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-system-zlib --with-system-libpng --mandir=$TERMUX_PREFIX/share/man"
TERMUX_PKG_BUILD_IN_SRC=yes
-LD=$CC
+termux_step_pre_configure () {
+ LD=$CC
+}
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_EXTRA_CONFIGURE_ARGS="--disable-cpp --enable-utf8 --enable-unicode-properties"
-
-
TERMUX_PKG_HOSTBUILD=yes
termux_step_host_build () {
- cp -Rf $TERMUX_PKG_SRCDIR/* .
cd build/unix
+ CC=gcc make pfdicdat.h
CC=gcc make all
}
# "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"
-CFLAGS+=" -DHOST_NAME_MAX=255"
+termux_step_pre_configure() {
+ CFLAGS+=" -DHOST_NAME_MAX=255"
+}
TERMUX_PKG_FOLDERNAME=proot-$_COMMIT
TERMUX_PKG_DEPENDS="libtalloc"
-export LD=$CC
+termux_step_pre_configure() {
+ export LD=$CC
+}
termux_step_make_install () {
export CROSS_COMPILE=${TERMUX_HOST_PLATFORM}-
TERMUX_PKG_VERSION=3.1.2
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"
-CFLAGS="$CFLAGS -llog" # for syslog
+
+termux_step_pre_configure () {
+ CFLAGS="$CFLAGS -llog" # for syslog
+}
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no"
# Fix DEPRECATED_TYPE macro clang compatibility:
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:
-CXXFLAGS+=" -frtti -fexceptions" # -lgnustl_shared"
+termux_step_pre_configure() {
+ # 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
mkdir -p $GEM_HOME
}
TERMUX_PKG_BUILD_IN_SRC=yes
#TERMUX_PKG_HOSTBUILD=yes
-LDFLAGS="$LDFLAGS -llog" # uses syslog
+termux_step_pre_configure () {
+ LDFLAGS="$LDFLAGS -llog" # uses syslog
+}
#termux_step_configure () {
# From socat_buildscript_for_android.sh in socat source:
# Depend on file for libmagic.so linking:
TERMUX_PKG_DEPENDS="file, libpng, libmp3lame, libogg, libvorbis, libandroid-glob, libflac, libid3tag, libmad"
-LDFLAGS+=" -landroid-glob"
+termux_step_pre_configure() {
+ LDFLAGS+=" -landroid-glob"
+}
TERMUX_PKG_FOLDERNAME=stag-$TERMUX_PKG_VERSION
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=yes
-CFLAGS+=" $CPPFLAGS"
-CFLAGS+=" $LDFLAGS"
+
+termux_step_pre_configure() {
+ CFLAGS+=" $CPPFLAGS"
+ CFLAGS+=" $LDFLAGS"
+}
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
-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
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"
-LDFLAGS+=" -llog"
+termux_step_pre_configure() {
+ LDFLAGS+=" -llog"
+}
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-1.41/tinyscheme-1.41.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
-AR+=" crs"
-LD=$CC
+termux_step_pre_configure () {
+ AR+=" crs"
+ LD=$CC
+}
# 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)
# vim-python:
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+=" vi_cv_path_python3_pfx=$TERMUX_PREFIX vi_cv_var_python3_version=3.5"
TERMUX_PKG_DESCRIPTION+=" - with python support"
+termux_step_pre_configure() {
+ CPPFLAGS+=" -I${TERMUX_PREFIX}/include/python3.5m"
+}
termux_step_pre_configure () {
make distclean
# libflac for flac support in oggenc:
TERMUX_PKG_DEPENDS="libvorbis, libflac"
-LDFLAGS+=" -lm"
+termux_step_pre_configure() {
+ LDFLAGS+=" -lm"
+}
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=http://downloads.xvid.org/downloads/xvidcore-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=xvidcore
-
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure () {