Add support for cmake 3.7 (#660)
[termux-packages] / packages / jsoncpp / build.sh
1 TERMUX_PKG_HOMEPAGE=https://github.com/open-source-parsers/jsoncpp
2 TERMUX_PKG_DESCRIPTION="C++ library for interacting with JSON"
3 TERMUX_PKG_VERSION=1.7.7
4 TERMUX_PKG_SRCURL=https://github.com/open-source-parsers/jsoncpp/archive/${TERMUX_PKG_VERSION}.tar.gz
5 TERMUX_PKG_FOLDERNAME=jsoncpp-${TERMUX_PKG_VERSION}
6 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_SHARED_LIBS=ON -DJSONCPP_WITH_TESTS=OFF"
7
8 termux_step_pre_configure () {
9 # The installation does not overwrite symlinks such as libjsoncpp.so.1,
10 # so if rebuilding these are not detected as modified. Fix that:
11 rm -f $TERMUX_PREFIX/lib/libjsoncpp.so*
12 }