2013-01-29 19:42:28 +00:00
|
|
|
# Template file for 'tinyxml'
|
|
|
|
pkgname=tinyxml
|
|
|
|
version=2.6.2
|
2013-04-06 10:15:41 +00:00
|
|
|
revision=3
|
2013-01-29 19:42:28 +00:00
|
|
|
short_desc="A simple, small, C++ XML parser that can be easily integrated into other programs"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.grinninglizard.com/tinyxml/"
|
|
|
|
license="zlib"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_2_6_2.tar.gz"
|
|
|
|
checksum=15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593
|
|
|
|
|
|
|
|
wrksrc="${pkgname}"
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
# Fix Makefile
|
|
|
|
sed -i \
|
|
|
|
-e '/^TINYXML_USE_STL/ s|=.*|=YES|' \
|
|
|
|
-e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile
|
|
|
|
|
2013-04-06 10:17:47 +00:00
|
|
|
make CXX="$CXX" CC="$CC" LD="$CXX" ${makejobs}
|
|
|
|
${CXX} -fPIC ${CXXFLAGS} -shared -o lib${sourcepkg}.so.0.${version} \
|
2013-04-06 10:15:41 +00:00
|
|
|
-Wl,-soname,lib${sourcepkg}.so.0 $(ls *.o | grep -v xmltest)
|
2013-01-29 19:42:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
install -dm 0755 ${DESTDIR}/usr/{lib,include}
|
2013-04-06 10:15:41 +00:00
|
|
|
install -m0755 lib${sourcepkg}.so.0.${version} ${DESTDIR}/usr/lib
|
|
|
|
install -m0644 ${sourcepkg}.h tinystr.h ${DESTDIR}/usr/include
|
2013-01-29 19:42:28 +00:00
|
|
|
|
|
|
|
(cd ${DESTDIR}/usr/lib
|
2013-04-06 10:15:41 +00:00
|
|
|
ln -s lib${sourcepkg}.so.0.${version} lib${sourcepkg}.so.0
|
|
|
|
ln -s lib${sourcepkg}.so.0.${version} lib${sourcepkg}.so
|
2013-01-29 19:42:28 +00:00
|
|
|
)
|
|
|
|
}
|
2013-04-14 13:09:59 +00:00
|
|
|
|
|
|
|
tinyxml-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 13:09:59 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include usr
|
|
|
|
}
|
|
|
|
}
|