TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_header_sys_shm_h=no"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-bzip2"
-CFLAGS+=" -D__LITTLE_ENDIAN__"
+termux_step_pre_configure() {
+ CFLAGS+=" -D__LITTLE_ENDIAN__"
+}
# Remove non-english help files and man pages shipped with the gnupg (1) package:
TERMUX_PKG_RM_AFTER_INSTALL="share/gnupg/help.*.txt share/man/man1/gpg-zip.1 share/man/man7/gnupg.7"
-CPPFLAGS+=" -Ddn_skipname=__dn_skipname"
+termux_step_pre_configure() {
+ CPPFLAGS+=" -Ddn_skipname=__dn_skipname"
+}
TERMUX_PKG_HOMEPAGE=http://hisham.hm/htop/
TERMUX_PKG_DESCRIPTION="Interactive process viewer for Linux"
+# htop checks setlocale() return value for UTF-8 support, so use libandroid-support.
TERMUX_PKG_DEPENDS="ncurses, libandroid-support"
TERMUX_PKG_VERSION=2.0.2
TERMUX_PKG_SRCURL=http://hisham.hm/htop/releases/${TERMUX_PKG_VERSION}/htop-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC="yes"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_ncursesw6_addnwstr=yes"
TERMUX_PKG_RM_AFTER_INSTALL="share/applications share/pixmaps"
-
-# htop checks setlocale() return value for UTF-8 support, so use libandroid-support.
-export CPPFLAGS="$CPPFLAGS -isystem $TERMUX_PREFIX/include/libandroid-support"
-export LDFLAGS="$LDFLAGS -landroid-support"
TERMUX_PKG_VERSION=4.22
TERMUX_PKG_SRCURL=http://dist.schmorp.de/libev/libev-${TERMUX_PKG_VERSION}.tar.gz
-CFLAGS+=" -Dfd_mask=int"
+termux_step_pre_configure() {
+ CFLAGS+=" -Dfd_mask=int"
+}
TERMUX_PKG_SRCURL="http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz"
TERMUX_PKG_DEPENDS="libandroid-support, ncurses, glib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ncurses-libs=$TERMUX_PREFIX/lib --with-screen=ncurses"
-# mc uses the deprecated S_IWRITE definition, which android does not define:
-# https://code.google.com/p/android/issues/detail?id=19710
-CPPFLAGS="$CPPFLAGS -DS_IWRITE=S_IWUSR"
+
+termux_step_pre_configure() {
+ # mc uses the deprecated S_IWRITE definition, which android does not define:
+ # https://code.google.com/p/android/issues/detail?id=19710
+ CPPFLAGS+=" -DS_IWRITE=S_IWUSR"
+}
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-static --with-liblua=included --without-nmap-update --without-zenmap --without-ndiff"
TERMUX_PKG_BUILD_IN_SRC="yes"
-
termux_step_post_make_install () {
# Setup 'netcat' and 'nc' as symlink to 'ncat', since the other netcat implementations
# are outdated (gnu-netcat) or non-portable (openbsd-netcat).
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-exif"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-bz2=$TERMUX_PREFIX"
-LDFLAGS+=" -landroid-glob"
-
termux_step_pre_configure () {
+ LDFLAGS+=" -landroid-glob"
+
export PATH=$PATH:$TERMUX_PKG_HOSTBUILD_DIR/sapi/cli/
export NATIVE_PHP_EXECUTABLE=$TERMUX_PKG_HOSTBUILD_DIR/sapi/cli/php
TERMUX_PKG_SRCURL=https://taskwarrior.org/download/task-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libgnutls, libuuid, libandroid-glob"
-LDFLAGS+=" -landroid-glob"
+termux_step_pre_configure() {
+ LDFLAGS+=" -landroid-glob"
+}
termux_step_configure () {
cd $TERMUX_PKG_BUILDDIR