diff options
Diffstat (limited to 'main/libxml2')
-rw-r--r-- | main/libxml2/APKBUILD | 58 | ||||
-rw-r--r-- | main/libxml2/largefile64.patch | 12 |
2 files changed, 70 insertions, 0 deletions
diff --git a/main/libxml2/APKBUILD b/main/libxml2/APKBUILD new file mode 100644 index 0000000000..f7e4128856 --- /dev/null +++ b/main/libxml2/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Carlo Landmeter <clandmeter@gmail.com> +pkgname=libxml2 +pkgver=2.7.8 +pkgrel=5 +pkgdesc="XML parsing library, version 2" +url="http://www.xmlsoft.org/" +arch="all" +license="MIT" +depends= +depends_dev="zlib-dev python-dev" +makedepends="zlib-dev python-dev" +subpackages="$pkgname-doc $pkgname-dev py-$pkgname:py $pkgname-utils" +source="ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz + largefile64.patch" + +options="!strip" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" + for _i in "$srcdir"/*.patch; do + patch -p1 -i "$_i" + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install + rm "$pkgdir"/usr/lib/*.la + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} + +py() { + cd "$_builddir" + pkgdesc="$pkgname python bindings" + install -d "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ +} + +utils() { + pkgdesc="XML utilities" + replaces="libxml2" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +md5sums="8127a65e8c3b08856093099b52599c86 libxml2-2.7.8.tar.gz +5ad4915665608ebfa5b89f7908467a72 largefile64.patch" diff --git a/main/libxml2/largefile64.patch b/main/libxml2/largefile64.patch new file mode 100644 index 0000000000..29be82760f --- /dev/null +++ b/main/libxml2/largefile64.patch @@ -0,0 +1,12 @@ +--- libxml2-2.6.32.dfsg.orig/libxml.h ++++ libxml2-2.6.32.dfsg/libxml.h +@@ -13,6 +13,9 @@ + #ifndef _LARGEFILE_SOURCE + #define _LARGEFILE_SOURCE + #endif ++#ifndef _LARGEFILE64_SOURCE ++#define _LARGEFILE64_SOURCE ++#endif + #ifndef _FILE_OFFSET_BITS + #define _FILE_OFFSET_BITS 64 + #endif |