blob: 2450e8a5ad44ec66cdef81c68da6a5252d3189c9 (
plain)
1 # Description: A simple, small, minimal, C++ XML parser
2 # URL: http://www.grinninglizard.com/tinyxml/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Matt Housh, jaeger at morpheus dot net
5
6 name=tinyxml
7 version=2.6.2
8 release=2
9 source=(http://download.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.zip \
10 entity.patch $name-use-stl.patch)
11
12 build() {
13 export CXXFLAGS="${CXXFLAGS} -fPIC"
14 cd $name
15
16 patch -p0 -i $SRC/entity.patch
17 patch -p0 -i $SRC/$name-use-stl.patch
18 sed -i -e "/^TINYXML_USE_STL/ s/=.*/= YES/" \
19 -e "/^RELEASE_CFLAGS/ s/-O3/${CXXFLAGS}/" Makefile
20
21 make
22 g++ ${CXXFLAGS} -DTIXML_USE_STL -shared -o lib$name.so.$version \
23 -Wl,-soname,lib$name.so.${version:0:1} *.o
24
25 mkdir -p $PKG/usr/{include,lib}
26 install -m 0755 lib$name.so.$version $PKG/usr/lib/
27 install -m 0644 *.h $PKG/usr/include/
28 ln -s lib$name.so.$version $PKG/usr/lib/lib$name.so.${version:0:1}
29 ln -s lib$name.so.$version $PKG/usr/lib/lib$name.so
30 }
|