talimat 947 B

12345678910111213141516171819202122232425262728293031
  1. # Description: Basit, küçük, minimal, C ++ XML ayrıştırıcı
  2. # URL: http://www.grinninglizard.com/tinyxml/
  3. # Packager: milisarge
  4. # Depends on:
  5. name=tinyxml
  6. version=2.6.2
  7. release=1
  8. source=(http://download.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.zip \
  9. entity.patch $name-use-stl.patch)
  10. build() {
  11. export CXXFLAGS="${CXXFLAGS} -fPIC"
  12. cd $name
  13. patch -p0 -i $SRC/entity.patch
  14. patch -p0 -i $SRC/$name-use-stl.patch
  15. sed -i -e "/^TINYXML_USE_STL/ s/=.*/= YES/" \
  16. -e "/^RELEASE_CFLAGS/ s/-O3/${CXXFLAGS}/" Makefile
  17. make
  18. g++ ${CXXFLAGS} -DTIXML_USE_STL -shared -o lib$name.so.$version \
  19. -Wl,-soname,lib$name.so.${version:0:1} *.o
  20. mkdir -p $PKG/usr/{include,lib}
  21. install -m 0755 lib$name.so.$version $PKG/usr/lib/
  22. install -m 0644 *.h $PKG/usr/include/
  23. ln -s lib$name.so.$version $PKG/usr/lib/lib$name.so.${version:0:1}
  24. ln -s lib$name.so.$version $PKG/usr/lib/lib$name.so
  25. }