milis/talimatname/genel/t/tinyxml/talimat

31 lines
940 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Basit, küçük, minimal, C ++ XML ayrıştırıcı
# URL: http://www.grinninglizard.com/tinyxml/
# Paketçi: milisarge
# Gerekler:
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)
derle() {
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
}