jsoncpp.guncellendi
This commit is contained in:
parent
8e166c0174
commit
60d0461e65
|
@ -1,17 +1,28 @@
|
||||||
# Description: JSON C++ kütüphanesi
|
# Description: JSON C++ kütüphanesi
|
||||||
# URL: http://jsoncpp.sourceforge.net/
|
# URL: http://jsoncpp.sourceforge.net/
|
||||||
# Packager: milisarge
|
# Packager: milisarge
|
||||||
# Depends on: scons
|
# Depends on: cmake
|
||||||
|
|
||||||
name=jsoncpp
|
name=jsoncpp
|
||||||
version=1.7.4
|
version=1.8.1
|
||||||
release=1
|
release=1
|
||||||
source=(https://github.com/open-source-parsers/$name/archive/$version.zip)
|
source=(https://github.com/open-source-parsers/$name/archive/$version.zip--${name}-${version}.tar.gz)
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
cd $name-$version
|
cd ${name}-${version}
|
||||||
scons platform=linux-gcc
|
mkdir -p build
|
||||||
mkdir -p $PKG/usr/{include/jsoncpp,lib}
|
#python3 doxybuild.py --with-dot
|
||||||
cp -r include/json $PKG/usr/include/jsoncpp/
|
cd build
|
||||||
cp libs/linux-gcc-*/libjson_linux-gcc-*_libmt.so $PKG/usr/lib/libjsoncpp.so
|
cmake \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
|
-DBUILD_STATIC_LIBS=ON \
|
||||||
|
..
|
||||||
|
make
|
||||||
|
cd ..
|
||||||
|
make -C build DESTDIR="${PKG}" install
|
||||||
|
install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${name}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue