blob: 4f36a2a11a34c48af58e281f07c7bdc195af4dc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=tinyxml
pkgver=2.6.2
_realver=2_6_2
pkgrel=1
pkgdesc="A simple, small, C++ XML parser"
url="http://www.grinninglizard.com/tinyxml/"
arch="all"
license="zlib"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/${pkgname}_$_realver.tar.gz
tinyxml-2.6.2-defineSTL.patch
tinyxml-2.6.1-entity.patch"
_builddir=$srcdir/$pkgname
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
sed -i -e '/^TINYXML_USE_STL/ s|=.*|=YES|' \
-e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile
}
build() {
cd "$_builddir"
make || return 1
g++ -fPIC ${CXXFLAGS} -shared -o libtinyxml.so.0.$pkgver \
-Wl,-soname,libtinyxml.so.0 $(ls *.o | grep -v xmltest)
}
package() {
cd "$_builddir"
install -d -m 0755 "$pkgdir"/usr/lib \
"$pkgdir"/usr/include
install -m 0755 libtinyxml.so.0.2.6.2 \
"$pkgdir"/usr/lib/
install -m 0644 tinyxml.h tinystr.h \
"$pkgdir"/usr/include/
cd "$pkgdir"/usr/lib
ln -s libtinyxml.so.0.2.6.2 libtinyxml.so
ln -s libtinyxml.so.0.2.6.2 libtinyxml.so.0
}
md5sums="c1b864c96804a10526540c664ade67f0 tinyxml_2_6_2.tar.gz
6db8334398e0cdad7e3c6406206ff42a tinyxml-2.6.2-defineSTL.patch
5890558bca2e9763f0fdcbb94e90971e tinyxml-2.6.1-entity.patch"
|