jsoncpp.paketlendi

This commit is contained in:
milisman 2016-07-21 19:41:38 +00:00
parent 052ebe2614
commit 56a20256ee
1 changed files with 5 additions and 9 deletions

View File

@ -1,7 +1,7 @@
# Description: JSON library # Description: JSON library
# URL: http://jsoncpp.sourceforge.net/ # URL: http://jsoncpp.sourceforge.net/
# Packager: milisarge # Packager: milisarge
# Depends on: cmake # Depends on: scons
name=jsoncpp name=jsoncpp
version=1.7.4 version=1.7.4
@ -10,12 +10,8 @@ source=(https://github.com/open-source-parsers/$name/archive/$version.zip)
build () { build () {
cd $name-$version cd $name-$version
mkdir -p build/debug scons platform=linux-gcc
cd build/debug mkdir -p $PKG/usr/{include/jsoncpp,lib}
cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ../.. cp -r include/json $PKG/usr/include/jsoncpp/
make cp libs/linux-gcc-*/libjson_linux-gcc-*_libmt.so $PKG/usr/lib/libjsoncpp.so
make DESTDIR=$PKG install
cp -r $PKG/usr/local/* $PKG/usr/
rm -r $PKG/usr/local
rm -r $PKG/tmp/work
} }