29 lines
776 B
Plaintext
29 lines
776 B
Plaintext
![]() |
# Description: simple, small, C++ XML parser
|
||
|
# URL: http://www.grinninglizard.com/tinyxml/
|
||
|
# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
|
||
|
# Depends on:
|
||
|
|
||
|
name=tinyxml
|
||
|
version=2.6.1
|
||
|
release=1
|
||
|
source=(
|
||
|
http://dl.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.zip
|
||
|
entity.patch
|
||
|
)
|
||
|
|
||
|
shopt -s extglob
|
||
|
build() {
|
||
|
soname=lib$name.$version.so
|
||
|
cd $name
|
||
|
# http://tinyurl.com/2v66ja4
|
||
|
patch -p0 -i ../entity.patch
|
||
|
mkdir -p $PKG/usr/include
|
||
|
install -m 0644 *.h $_
|
||
|
g++ $CXXFLAGS -fPIC -shared -o $soname !(xmltest).cpp
|
||
|
install -D -m 0644 $soname $PKG/usr/lib/$soname
|
||
|
cd $PKG/usr/lib
|
||
|
ln -s $soname ${soname%%.*}.so
|
||
|
ln -s $soname ${soname%.*.*.so}.so
|
||
|
ln -s $soname ${soname%.*.so}.so
|
||
|
}
|