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
|
|
|
|
|
2017-10-28 14:10:23 +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)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2016-02-24 01:27:23 +01:00
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -fPIC"
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $isim
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
patch -p0 -i $SRC/entity.patch
|
2017-10-28 14:10:23 +02:00
|
|
|
|
patch -p0 -i $SRC/$isim-use-stl.patch
|
2016-02-24 01:27:23 +01:00
|
|
|
|
sed -i -e "/^TINYXML_USE_STL/ s/=.*/= YES/" \
|
|
|
|
|
-e "/^RELEASE_CFLAGS/ s/-O3/${CXXFLAGS}/" Makefile
|
|
|
|
|
|
|
|
|
|
make
|
2017-10-28 14:10:23 +02:00
|
|
|
|
g++ ${CXXFLAGS} -DTIXML_USE_STL -shared -o lib$isim.so.$surum \
|
|
|
|
|
-Wl,-soname,lib$isim.so.${version:0:1} *.o
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/{include,lib}
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -m 0755 lib$isim.so.$surum $PKG/usr/lib/
|
2016-02-24 01:27:23 +01:00
|
|
|
|
install -m 0644 *.h $PKG/usr/include/
|
2017-10-28 14:10:23 +02:00
|
|
|
|
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
|
2016-02-24 01:27:23 +01:00
|
|
|
|
}
|