forked from termux/termux-packages
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Boost libs * boost.python build fix from Vishal * set -std=c++11 so libicu works
- Loading branch information
1 parent
4a07361
commit c5453e9
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
TERMUX_PKG_HOMEPAGE=https://boost.org | ||
TERMUX_PKG_DESCRIPTION="cpp libs" | ||
TERMUX_PKG_VERSION=1.64.0 | ||
TERMUX_PKG_SRCURL=http://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.bz2 | ||
TERMUX_PKG_SHA256=7bcc5caace97baa948931d712ea5f37038dbb1c5d89b43ad4def4ed7cb683332 | ||
TERMUX_PKG_FOLDERNAME="boost_1_64_0" | ||
TERMUX_PKG_BUILD_IN_SRC=yes | ||
TERMUX_PKG_DEPENDS="libbz2, libicu" | ||
termux_step_configure(){ | ||
return 0; | ||
} | ||
termux_step_make() { | ||
return 0; | ||
} | ||
termux_step_make_install() { | ||
CXXFLAGS+=" -std=c++11" | ||
rm $TERMUX_PREFIX/lib/libboost* -f | ||
rm $TERMUX_PREFIX/include/boost -rf | ||
./bootstrap.sh | ||
echo "using clang : $TERMUX_ARCH : $CXX : <linkflags>-L/data/data/com.termux/files/usr/lib ; " >> project-config.jam | ||
./b2 target-os=android -j${TERMUX_MAKE_PROCESSES} \ | ||
include=/data/data/com.termux/files/usr/include \ | ||
include=/data/data/com.termux/files/usr/include/python2.7 \ | ||
toolset=clang-$TERMUX_ARCH \ | ||
--prefix="$TERMUX_PREFIX" \ | ||
-q \ | ||
--without-coroutine2 \ | ||
--without-coroutine \ | ||
--without-context \ | ||
--without-log \ | ||
cxxflags="$CXXFLAGS" \ | ||
link=shared \ | ||
threading=multi \ | ||
install | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- ../cache/boost_1_64_0/tools/build/src/tools/python.jam 2017-04-17 02:22:26.000000000 +0000 | ||
+++ ./tools/build/src/tools/python.jam 2017-04-30 06:12:15.748537322 +0000 | ||
@@ -651,7 +651,7 @@ | ||
|
||
case aix : return <library>pthread <library>dl ; | ||
|
||
- case * : return <library>pthread <library>dl | ||
+ case * : return <library>dl | ||
<toolset>gcc:<library>util <toolset-intel:platform>linux:<library>util ; | ||
} | ||
} |