diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-07 23:05:03 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-07 23:12:43 +0100 |
commit | 2894f0386e7df0287af18a3bf81771616a293347 (patch) | |
tree | 8dc75c915392bc7122fe506ebfb9b3e6d31d000d /main/tinyxml/APKBUILD | |
parent | 1d7ace2e2dff105f4ba45a80ab9dc06a6a099d15 (diff) | |
download | aports-2894f0386e7df0287af18a3bf81771616a293347.tar.bz2 aports-2894f0386e7df0287af18a3bf81771616a293347.tar.xz |
testing/tinyxml: move to main
Diffstat (limited to 'main/tinyxml/APKBUILD')
-rw-r--r-- | main/tinyxml/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/main/tinyxml/APKBUILD b/main/tinyxml/APKBUILD new file mode 100644 index 0000000000..ff3bd1b526 --- /dev/null +++ b/main/tinyxml/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=tinyxml +pkgver=2.6.2 +_realver=2_6_2 +pkgrel=0 +pkgdesc="A simple, small, C++ XML parser" +url="http://www.grinninglizard.com/tinyxml/" +arch="all" +license="zlib" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev" +source="http://downloads.sourceforge.net/$pkgname/${pkgname}_$_realver.tar.gz + tinyxml-2.6.2-defineSTL.patch + tinyxml-2.6.1-entity.patch" + +_builddir=$srcdir/$pkgname + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + sed -i -e '/^TINYXML_USE_STL/ s|=.*|=YES|' \ + -e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile +} + +build() { + cd "$_builddir" + make || return 1 + g++ -fPIC ${CXXFLAGS} -shared -o libtinyxml.so.0.$pkgver \ + -Wl,-soname,libtinyxml.so.0 $(ls *.o | grep -v xmltest) +} + +package() { + cd "$_builddir" + install -d -m 0755 "$pkgdir"/usr/lib \ + "$pkgdir"/usr/include + install -m 0755 libtinyxml.so.0.2.6.2 \ + "$pkgdir"/usr/lib/ + install -m 0644 tinyxml.h tinystr.h \ + "$pkgdir"/usr/include/ + cd "$pkgdir"/usr/lib + ln -s libtinyxml.so.0.2.6.2 libtinyxml.so + ln -s libtinyxml.so.0.2.6.2 libtinyxml.so.0 +} + +md5sums="c1b864c96804a10526540c664ade67f0 tinyxml_2_6_2.tar.gz +6db8334398e0cdad7e3c6406206ff42a tinyxml-2.6.2-defineSTL.patch +5890558bca2e9763f0fdcbb94e90971e tinyxml-2.6.1-entity.patch" |