New package: jsoncpp-0.6.0rc2
This commit is contained in:
parent
7adc656ddd
commit
39cba5b15f
|
@ -1231,3 +1231,4 @@ libspeechd.so.2 speech-dispatcher-0.8_1
|
||||||
libre2.so.0 re2-20130115_1
|
libre2.so.0 re2-20130115_1
|
||||||
libminizip.so.1 minizip-1.2.7_1
|
libminizip.so.1 minizip-1.2.7_1
|
||||||
libsrtp.so.0 libsrtp-1.4.4_1
|
libsrtp.so.0 libsrtp-1.4.4_1
|
||||||
|
libjsoncpp.so.0 jsoncpp-0.6.0rc2_1
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
jsoncpp/
|
|
@ -0,0 +1,11 @@
|
||||||
|
prefix=/usr
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: jsoncpp
|
||||||
|
Description: API for manipulating JSON
|
||||||
|
Version: 0.6.0
|
||||||
|
URL: http://jsoncpp.sourceforge.net/
|
||||||
|
Libs: -L${libdir} -ljsoncpp
|
||||||
|
Cflags: -I${includedir}/jsoncpp/
|
|
@ -0,0 +1,16 @@
|
||||||
|
--- SConstruct.orig 2010-03-13 13:59:50.000000000 +0300
|
||||||
|
+++ SConstruct 2013-04-23 19:31:39.042439981 +0400
|
||||||
|
@@ -119,6 +119,13 @@
|
||||||
|
env.Append( CPPDEFINES=[ "WIN32", "NDEBUG", "_MT" ] )
|
||||||
|
elif platform.startswith('linux-gcc'):
|
||||||
|
env.Tool( 'default' )
|
||||||
|
+ env.Replace(AS = os.environ['AS'])
|
||||||
|
+ env.Replace(AR = os.environ['AR'])
|
||||||
|
+ env.Replace(NM = os.environ['NM'])
|
||||||
|
+ env.Replace(CPP = os.environ['CPP'])
|
||||||
|
+ env.Replace(LD = os.environ['LD'])
|
||||||
|
+ env.Replace(CXX = os.environ['CXX'])
|
||||||
|
+ env.Replace(GCC = os.environ['GCC'])
|
||||||
|
env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" )
|
||||||
|
env['SHARED_LIB_ENABLED'] = True
|
||||||
|
else:
|
|
@ -0,0 +1,50 @@
|
||||||
|
# Template build file for 'jsoncpp'.
|
||||||
|
pkgname=jsoncpp
|
||||||
|
version=0.6.0rc2
|
||||||
|
_srcversion=0.6.0-rc2
|
||||||
|
revision=1
|
||||||
|
hostmakedepends="scons"
|
||||||
|
wrksrc="${pkgname}-src-${_srcversion}"
|
||||||
|
short_desc="A JSON implementation in C++"
|
||||||
|
maintainer="ojab@ojab.ru"
|
||||||
|
license="Public Domain or MIT"
|
||||||
|
homepage="http://sourceforge.net/projects/${pkgname}"
|
||||||
|
distfiles="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${_srcversion}/${pkgname}-src-${_srcversion}.tar.gz"
|
||||||
|
checksum=d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
sed -i SConstruct -e "s/g++/${CXX}/g"
|
||||||
|
scons CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS} " \
|
||||||
|
DESTDIR="${DESTDIR}" platform=linux-gcc
|
||||||
|
${CXX} -o libjsoncpp.so.0.0.0 -shared -Wl,-soname,libjsoncpp.so.0 \
|
||||||
|
buildscons/linux-gcc-*/src/lib_json/*.os -lpthread
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vmkdir usr/lib
|
||||||
|
cp libjsoncpp.so.0.0.0 ${DESTDIR}/usr/lib/
|
||||||
|
ln -sf libjsoncpp.so.0.0.0 ${DESTDIR}/usr/lib/libjsoncpp.so
|
||||||
|
ln -sf libjsoncpp.so.0.0.0 ${DESTDIR}/usr/lib/libjsoncpp.so.0
|
||||||
|
vmkdir usr/include/jsoncpp/json
|
||||||
|
install -p -m 0644 include/json/*.h ${DESTDIR}/usr/include/jsoncpp/json
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vinstall ${FILESDIR}/jsoncpp.pc 644 usr/lib/pkgconfig
|
||||||
|
}
|
||||||
|
|
||||||
|
jsoncpp_package() {
|
||||||
|
pkg_install() {
|
||||||
|
vmove all
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
jsoncpp-devel_package() {
|
||||||
|
depends="jsoncpp>=${version}"
|
||||||
|
short_desc+=" - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue