jsoncpp: cross build support.
This commit is contained in:
parent
b855f51304
commit
b016ca5fc9
1 changed files with 3 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
||||||
pkgname=jsoncpp
|
pkgname=jsoncpp
|
||||||
version=0.6.0rc2
|
version=0.6.0rc2
|
||||||
_srcversion=0.6.0-rc2
|
_srcversion=0.6.0-rc2
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="scons"
|
hostmakedepends="scons"
|
||||||
wrksrc="${pkgname}-src-${_srcversion}"
|
wrksrc="${pkgname}-src-${_srcversion}"
|
||||||
short_desc="A JSON implementation in C++"
|
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
|
ln -sf libjsoncpp.so.0.0.0 ${DESTDIR}/usr/lib/libjsoncpp.so.0
|
||||||
vmkdir usr/include/jsoncpp/json
|
vmkdir usr/include/jsoncpp/json
|
||||||
install -p -m 0644 include/json/*.h ${DESTDIR}/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
|
vinstall ${FILESDIR}/jsoncpp.pc 644 usr/lib/pkgconfig
|
||||||
}
|
}
|
||||||
|
|
||||||
jsoncpp-devel_package() {
|
jsoncpp-devel_package() {
|
||||||
depends="jsoncpp>=${version}"
|
depends="jsoncpp>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue