2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://developer.android.com/tools/sdk/ndk/index.html
|
|
|
|
TERMUX_PKG_DESCRIPTION="Header files from the Android NDK needed for compiling C++ programs using STL"
|
|
|
|
TERMUX_PKG_VERSION=$TERMUX_NDK_VERSION
|
|
|
|
TERMUX_PKG_DEPENDS="libgnustl"
|
|
|
|
TERMUX_PKG_NO_DEVELSPLIT=yes
|
|
|
|
|
|
|
|
termux_step_extract_into_massagedir () {
|
|
|
|
#mkdir -p $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/gcc/arm-linux-androideabi/4.9.0/include/
|
|
|
|
#cp -Rf $TERMUX_STANDALONE_TOOLCHAIN/include/c++/4.8/* $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/gcc/arm-linux-androideabi/4.9.0/include/
|
|
|
|
# Needed:
|
|
|
|
#cp $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/gcc/arm-linux-androideabi/4.9.0/include/arm-linux-androideabi/bits/* $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/gcc/arm-linux-androideabi/4.9.0/include/bits/
|
|
|
|
|
|
|
|
mkdir -p $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include/
|
2016-03-13 22:59:15 +01:00
|
|
|
cp -Rf $TERMUX_STANDALONE_TOOLCHAIN/include/c++/4.9/* $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include/
|
2015-06-13 01:03:31 +02:00
|
|
|
if [ $TERMUX_ARCH = arm ]; then
|
|
|
|
cp $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include/arm-linux-androideabi/armv7-a/bits/* \
|
|
|
|
$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include/bits
|
2015-12-02 01:59:49 +01:00
|
|
|
else
|
|
|
|
cp $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include/$TERMUX_ARCH-linux-android/bits/* \
|
2015-07-03 02:43:24 +02:00
|
|
|
$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include/bits
|
2015-06-13 01:03:31 +02:00
|
|
|
fi
|
|
|
|
# fenv.h is a C++ compatibility header which should be included with the compiler
|
|
|
|
rm -Rf $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include/{arm-linux-androideabi,tr1,tr2,fenv.h,complex.h}
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_massage () {
|
|
|
|
echo "overriding termux_step_massage to avoid removing header files"
|
|
|
|
}
|