2018-07-26 12:37:27 +02:00
|
|
|
|
# Tanım: Basit, küçük, minimal, C++ XML ayrıştırıcı
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# URL: http://www.grinninglizard.com/tinyxml/
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2018-07-26 12:37:27 +02:00
|
|
|
|
# Grup: geliştirme
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=tinyxml
|
|
|
|
|
surum=2.6.2
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://download.sourceforge.net/project/$isim/$isim/$surum/${isim}_${version//./_}.zip \
|
|
|
|
|
entity.patch $isim-use-stl.patch)
|
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -fPIC"
|
|
|
|
|
cd $isim
|
|
|
|
|
|
|
|
|
|
patch -p0 -i $SRC/entity.patch
|
|
|
|
|
patch -p0 -i $SRC/$isim-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$isim.so.$surum \
|
|
|
|
|
-Wl,-soname,lib$isim.so.${version:0:1} *.o
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/{include,lib}
|
|
|
|
|
install -m 0755 lib$isim.so.$surum $PKG/usr/lib/
|
|
|
|
|
install -m 0644 *.h $PKG/usr/include/
|
|
|
|
|
ln -s lib$isim.so.$surum $PKG/usr/lib/lib$isim.so.${version:0:1}
|
|
|
|
|
ln -s lib$isim.so.$surum $PKG/usr/lib/lib$isim.so
|
|
|
|
|
}
|