Browse Source

Always call post-extract step in srcdir

android-5
Fredrik Fornwall 8 years ago
parent
commit
508fa73cb8
  1. 2
      build-package.sh
  2. 1
      packages/autoconf/build.sh
  3. 2
      packages/clang/build.sh
  4. 1
      packages/ctags/build.sh
  5. 2
      packages/gdb/build.sh
  6. 1
      packages/libandroid-support/build.sh
  7. 1
      packages/libgc/build.sh
  8. 1
      packages/perl/build.sh

2
build-package.sh

@ -374,6 +374,7 @@ termux_step_extract_package () {
} }
# Hook for packages to act just after the package has been extracted. # Hook for packages to act just after the package has been extracted.
# Invoked in $TERMUX_PKG_SRCDIR.
termux_step_post_extract_package () { termux_step_post_extract_package () {
return return
} }
@ -895,6 +896,7 @@ termux_step_setup_variables
termux_step_handle_buildarch termux_step_handle_buildarch
termux_step_start_build termux_step_start_build
termux_step_extract_package termux_step_extract_package
cd "$TERMUX_PKG_SRCDIR"
termux_step_post_extract_package termux_step_post_extract_package
termux_step_handle_hostbuild termux_step_handle_hostbuild
termux_step_setup_toolchain termux_step_setup_toolchain

1
packages/autoconf/build.sh

@ -6,7 +6,6 @@ TERMUX_PKG_DEPENDS="m4, make, perl"
TERMUX_PKG_PLATFORM_INDEPENDENT=yes TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_post_extract_package () { termux_step_post_extract_package () {
cd $TERMUX_PKG_SRCDIR
perl -p -i -e "s|/bin/sh|$TERMUX_PREFIX/bin/sh|" lib/*/*.m4 perl -p -i -e "s|/bin/sh|$TERMUX_PREFIX/bin/sh|" lib/*/*.m4
} }

2
packages/clang/build.sh

@ -20,8 +20,6 @@ termux_step_post_extract_package () {
# COMPILERRT_SRC_TAR=compiler-rt-${TERMUX_PKG_VERSION}.src.tar.xz # COMPILERRT_SRC_TAR=compiler-rt-${TERMUX_PKG_VERSION}.src.tar.xz
# test ! -f $TERMUX_PKG_CACHEDIR/$COMPILERRT_SRC_TAR && curl http://llvm.org/releases/${TERMUX_PKG_VERSION}/${COMPILERRT_SRC_TAR} > $TERMUX_PKG_CACHEDIR/$COMPILERRT_SRC_TAR # test ! -f $TERMUX_PKG_CACHEDIR/$COMPILERRT_SRC_TAR && curl http://llvm.org/releases/${TERMUX_PKG_VERSION}/${COMPILERRT_SRC_TAR} > $TERMUX_PKG_CACHEDIR/$COMPILERRT_SRC_TAR
cd $TERMUX_PKG_SRCDIR
tar -xf $TERMUX_PKG_CACHEDIR/$CLANG_SRC_TAR -C tools tar -xf $TERMUX_PKG_CACHEDIR/$CLANG_SRC_TAR -C tools
mv tools/cfe-${TERMUX_PKG_VERSION}.src tools/clang mv tools/cfe-${TERMUX_PKG_VERSION}.src tools/clang

1
packages/ctags/build.sh

@ -10,6 +10,5 @@ TERMUX_PKG_BUILD_IN_SRC="yes"
termux_step_post_extract_package () { termux_step_post_extract_package () {
export regcomp_works=yes export regcomp_works=yes
cd $TERMUX_PKG_SRCDIR
./autogen.sh ./autogen.sh
} }

2
packages/gdb/build.sh

@ -25,7 +25,7 @@ termux_step_pre_configure() {
termux_step_post_extract_package () { termux_step_post_extract_package () {
if [ $TERMUX_ARCH = aarch64 ]; then if [ $TERMUX_ARCH = aarch64 ]; then
# Fix problem with <stdlib.h> including <memory.h>: # Fix problem with <stdlib.h> including <memory.h>:
mv $TERMUX_PKG_SRCDIR/sim/aarch64/{memory.h,memory_sim.h} mv sim/aarch64/{memory.h,memory_sim.h}
perl -p -i -e 's/memory.h/memory_sim.h/' $TERMUX_PKG_SRCDIR/sim/aarch64/*c perl -p -i -e 's/memory.h/memory_sim.h/' $TERMUX_PKG_SRCDIR/sim/aarch64/*c
fi fi
} }

1
packages/libandroid-support/build.sh

@ -6,7 +6,6 @@ TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_ESSENTIAL=yes TERMUX_PKG_ESSENTIAL=yes
termux_step_post_extract_package () { termux_step_post_extract_package () {
cd $TERMUX_PKG_SRCDIR
mkdir -p src/musl-locale/ src/musl-multibyte/ include/ src/musl-ctype/ mkdir -p src/musl-locale/ src/musl-multibyte/ include/ src/musl-ctype/
cp $NDK/sources/android/support/src/musl-multibyte/{mblen.c,mbsrtowcs.c,mbsnrtowcs.c,libc.h,internal.h,internal.c} src/musl-multibyte/ cp $NDK/sources/android/support/src/musl-multibyte/{mblen.c,mbsrtowcs.c,mbsnrtowcs.c,libc.h,internal.h,internal.c} src/musl-multibyte/
cp $NDK/sources/android/support/src/musl-locale/{catclose.c,catgets.c,catopen.c} src/musl-locale/ cp $NDK/sources/android/support/src/musl-locale/{catclose.c,catgets.c,catopen.c} src/musl-locale/

1
packages/libgc/build.sh

@ -8,7 +8,6 @@ termux_step_post_extract_package () {
LIBATOMIC_VERSION=7.4.4 LIBATOMIC_VERSION=7.4.4
LIBATOMIC_FILE=libatomic_ops-${LIBATOMIC_VERSION}.tar.gz LIBATOMIC_FILE=libatomic_ops-${LIBATOMIC_VERSION}.tar.gz
test ! -f $TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE && curl -o $TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-${LIBATOMIC_VERSION}.tar.gz test ! -f $TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE && curl -o $TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-${LIBATOMIC_VERSION}.tar.gz
cd $TERMUX_PKG_SRCDIR
tar xf $TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE tar xf $TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE
mv libatomic_ops-${LIBATOMIC_VERSION} libatomic_ops mv libatomic_ops-${LIBATOMIC_VERSION} libatomic_ops
./autogen.sh ./autogen.sh

1
packages/perl/build.sh

@ -16,7 +16,6 @@ termux_step_post_extract_package () {
PERLCROSS_FILE=perl-${PERLCROSS_PERL_VERSION}-cross-${PERLCROSS_VERSION}.tar.gz PERLCROSS_FILE=perl-${PERLCROSS_PERL_VERSION}-cross-${PERLCROSS_VERSION}.tar.gz
PERLCROSS_TAR=$TERMUX_PKG_CACHEDIR/$PERLCROSS_FILE PERLCROSS_TAR=$TERMUX_PKG_CACHEDIR/$PERLCROSS_FILE
test ! -f $PERLCROSS_TAR && curl -o $PERLCROSS_TAR -L https://github.com/arsv/perl-cross/releases/download/$PERLCROSS_VERSION/$PERLCROSS_FILE test ! -f $PERLCROSS_TAR && curl -o $PERLCROSS_TAR -L https://github.com/arsv/perl-cross/releases/download/$PERLCROSS_VERSION/$PERLCROSS_FILE
cd $TERMUX_PKG_SRCDIR
tar xf $PERLCROSS_TAR tar xf $PERLCROSS_TAR
cd perl-${PERLCROSS_PERL_VERSION} cd perl-${PERLCROSS_PERL_VERSION}
cp -Rf * ../ cp -Rf * ../

Loading…
Cancel
Save