milis/talimatname/genel/t/tinyxml/talimat

31 lines
940 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Basit, küçük, minimal, C ++ XML ayrıştırıcı
2017-04-19 14:07:06 +02:00
# URL: http://www.grinninglizard.com/tinyxml/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2016-02-24 01:27:23 +01:00
name=tinyxml
version=2.6.2
release=1
source=(http://download.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.zip \
entity.patch $name-use-stl.patch)
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
export CXXFLAGS="${CXXFLAGS} -fPIC"
cd $name
patch -p0 -i $SRC/entity.patch
patch -p0 -i $SRC/$name-use-stl.patch
sed -i -e "/^TINYXML_USE_STL/ s/=.*/= YES/" \
-e "/^RELEASE_CFLAGS/ s/-O3/${CXXFLAGS}/" Makefile
make
g++ ${CXXFLAGS} -DTIXML_USE_STL -shared -o lib$name.so.$version \
-Wl,-soname,lib$name.so.${version:0:1} *.o
mkdir -p $PKG/usr/{include,lib}
install -m 0755 lib$name.so.$version $PKG/usr/lib/
install -m 0644 *.h $PKG/usr/include/
ln -s lib$name.so.$version $PKG/usr/lib/lib$name.so.${version:0:1}
ln -s lib$name.so.$version $PKG/usr/lib/lib$name.so
}