TERMUX_PKG_ESSENTIAL=yes
TERMUX_PKG_CONFFILES="etc/apt/sources.list"
-# Some files use STD*_FILENO without including <unistd.h> where they are declared.
-# Define them here to avoid having to patch files:
-CXXFLAGS+=" -DSTDIN_FILENO=0 -DSTDOUT_FILENO=1 -DSTDERR_FILENO=2 -DAI_IDN=0"
-
termux_step_pre_configure () {
+ # Some files use STD*_FILENO without including <unistd.h> where they are declared.
+ # Define them here to avoid having to patch files:
+ CXXFLAGS+=" -DSTDIN_FILENO=0 -DSTDOUT_FILENO=1 -DSTDERR_FILENO=2 -DAI_IDN=0"
+
cp $TERMUX_COMMON_CACHEDIR/config.{guess,sub} $TERMUX_PKG_SRCDIR/buildlib
- perl -p -i -e "s/TERMUX_ARCH/$TERMUX_ARCH/" $TERMUX_PKG_SRCDIR/configure
+ perl -p -i -e "s/TERMUX_ARCH/$TERMUX_ARCH/" $TERMUX_PKG_SRCDIR/configure
rm $TERMUX_PKG_SRCDIR/apt-pkg/{cdrom.cc,indexcopy.cc}
}
TERMUX_PKG_DEPENDS="openssh"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--mandir=$TERMUX_PREFIX/share/man ac_cv_path_ssh=$TERMUX_PREFIX/bin/ssh"
-# For syslog logging:
-LDFLAGS+=" -llog"
+termux_step_pre_configure () {
+ # For syslog logging:
+ LDFLAGS+=" -llog"
+}
# NOTE: sed on mac does not work for building busybox, install gnu-sed with
# homebrew using the --with-default-names option.
-CFLAGS+=" -llog -DTERMUX_EXPOSE_MEMPCPY=1" # Android system liblog.so for syslog
+termux_step_pre_configure () {
+ CFLAGS+=" -llog -DTERMUX_EXPOSE_MEMPCPY=1" # Android system liblog.so for syslog
+}
termux_step_configure () {
# Bug in gold linker with busybox in android r10e:
cd $TERMUX_PREFIX/bin/applets
for f in `cat $TERMUX_PKG_SRCDIR/busybox.links`; do ln -s ../busybox `basename $f`; done
- # The 'ash' and 'env' applets are special in that they go into $PREFIX/bin:
+ # The 'ash' and 'env' applets are special in that they go into $PREFIX/bin:
cd $TERMUX_PREFIX/bin
ln -f -s busybox ash
ln -f -s busybox env
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/c-board/${TERMUX_PKG_VERSION}/cboard-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_DEPENDS="libandroid-support,libandroid-glob,gnuchess, ncurses, ncurses-ui-libs"
-CFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"
-LDFLAGS+=" -landroid-glob"
+termux_step_pre_configure () {
+ CFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"
+ LDFLAGS+=" -landroid-glob"
+}
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-utf8 --disable-libmagic"
TERMUX_PKG_RM_AFTER_INSTALL="bin/rnano share/man/man1/rnano.1 share/nano/man-html"
-LDFLAGS+=" -landroid-glob"
+termux_step_pre_configure() {
+ LDFLAGS+=" -landroid-glob"
+}
termux_step_post_make_install () {
# Configure nano to use syntax highlighting:
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/psmisc/psmisc/psmisc-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_RM_AFTER_INSTALL="bin/pstree.x11"
-CFLAGS+=" -DTERMUX_EXPOSE_MEMPCPY=1"
+termux_step_pre_configure() {
+ CFLAGS+=" -DTERMUX_EXPOSE_MEMPCPY=1"
+}