New package: tinyxml-2.6.2.

This commit is contained in:
Juan RP 2013-01-29 20:42:28 +01:00
parent 4cf8e1c243
commit 95b672eb8b
4 changed files with 46 additions and 0 deletions

View File

@ -1174,3 +1174,4 @@ libgtk-vnc-1.0.so.0 gtk2-vnc-0.4.4_2
libgranite.so.0 granite-0.1.1_2
libprotobuf-vala.so.0 libprotobuf-vala-0.1.0_1
librlog.so.5 librlog-1.4_1
libtinyxml.so.0 tinyxml-2.6.2_1

1
srcpkgs/tinyxml-devel Symbolic link
View File

@ -0,0 +1 @@
tinyxml

35
srcpkgs/tinyxml/template Normal file
View File

@ -0,0 +1,35 @@
# Template file for 'tinyxml'
pkgname=tinyxml
version=2.6.2
revision=1
subpackages="${pkgname}-devel"
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
make ${makejobs}
g++ -fPIC ${CXXFLAGS} -shared -o lib${pkgname}.so.0.${version} \
-Wl,-soname,lib${pkgname}.so.0 $(ls *.o | grep -v xmltest)
}
do_install() {
install -dm 0755 ${DESTDIR}/usr/{lib,include}
install -m0755 lib${pkgname}.so.0.${version} ${DESTDIR}/usr/lib
install -m0644 ${pkgname}.h tinystr.h ${DESTDIR}/usr/include
(cd ${DESTDIR}/usr/lib
ln -s lib${pkgname}.so.0.${version} lib${pkgname}.so.0
ln -s lib${pkgname}.so.0.${version} lib${pkgname}.so
)
}

View File

@ -0,0 +1,9 @@
# Template file for 'tinyxml-devel'.
#
depends="${sourcepkg}>=${version}"
short_desc="${short_desc} -- development files"
noarch=yes
do_install() {
vmove usr/include usr
}