jsoncpp: cross build support.

This commit is contained in:
Juan RP 2014-02-17 19:55:27 +01:00
parent b855f51304
commit b016ca5fc9

View file

@ -2,7 +2,7 @@
pkgname=jsoncpp
version=0.6.0rc2
_srcversion=0.6.0-rc2
revision=1
revision=2
hostmakedepends="scons"
wrksrc="${pkgname}-src-${_srcversion}"
short_desc="A JSON implementation in C++"
@ -27,18 +27,15 @@ do_install() {
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-devel_package() {
depends="jsoncpp>=${version}"
depends="jsoncpp>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}