diff options
author | Schala | 2015-06-08 17:56:17 -0700 |
---|---|---|
committer | Schala | 2015-06-08 17:56:17 -0700 |
commit | 70a9f87ca30ffc6ba55c9c6d453b1ca3c2cddede (patch) | |
tree | 956699eb028bcb3b2e3c45e0fe6780eb404c5628 | |
download | aur-70a9f87ca30ffc6ba55c9c6d453b1ca3c2cddede.tar.gz |
added patch from https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-giflib
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | giflib-5.0.4-include-stddef.patch | 11 |
4 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f588b6d58b4f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = mingw-w64-giflib + pkgdesc = A library for reading and writing gif images (mingw-w64) + pkgver = 5.1.1 + pkgrel = 2 + url = http://sourceforge.net/projects/giflib/ + arch = any + license = MIT + makedepends = xmlto + makedepends = docbook-xml + makedepends = mingw-w64-configure + depends = mingw-w64-crt + options = staticlibs + options = !strip + options = !buildflags + source = http://downloads.sourceforge.net/sourceforge/giflib/giflib-5.1.1.tar.bz2 + source = giflib-5.0.4-include-stddef.patch + md5sums = 1c39333192712788c6568c78a949f13e + md5sums = e39b98822334f2bd2009469e5dea65c5 + +pkgname = mingw-w64-giflib + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..79ffea0ccae6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +*.bz2 +*.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7bbee737e8b0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +pkgname=mingw-w64-giflib +pkgver=5.1.1 +pkgrel=2 +pkgdesc="A library for reading and writing gif images (mingw-w64)" +arch=(any) +url="http://sourceforge.net/projects/giflib/" +license=("MIT") +makedepends=(xmlto docbook-xml mingw-w64-configure) +depends=(mingw-w64-crt) +options=(staticlibs !strip !buildflags) +source=("http://downloads.sourceforge.net/sourceforge/giflib/${pkgname#mingw-w64-}-${pkgver}.tar.bz2" +"giflib-5.0.4-include-stddef.patch") +md5sums=('1c39333192712788c6568c78a949f13e' + 'e39b98822334f2bd2009469e5dea65c5') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd giflib-$pkgver + patch -Np1 -i "$srcdir/giflib-5.0.4-include-stddef.patch" +} + +build() { + cd giflib-${pkgver} + for _arch in ${_architectures}; do + unset LDFLAGS + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure + make bin_PROGRAMS='' + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/giflib-${pkgver}/build-${_arch}" + make DESTDIR="$pkgdir" bin_PROGRAMS='' install + find "$pkgdir/usr/${_arch}" -name '*.exe' -exec rm {} \; + find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; + find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g + rm -r "$pkgdir/usr/${_arch}/share" + done +} diff --git a/giflib-5.0.4-include-stddef.patch b/giflib-5.0.4-include-stddef.patch new file mode 100644 index 000000000000..d3ea73854f74 --- /dev/null +++ b/giflib-5.0.4-include-stddef.patch @@ -0,0 +1,11 @@ +diff -rupN a/lib/gif_lib.h b/lib/gif_lib.h +--- a/lib/gif_lib.h 2013-01-06 07:29:57.000000000 +0100 ++++ b/lib/gif_lib.h 2013-07-30 10:52:47.611034000 +0200 +@@ -19,6 +19,7 @@ extern "C" { + #define GIF_OK 1 + + #include <stdbool.h> ++#include <stddef.h> + + #define GIF_STAMP "GIFVER" /* First chars in file - GIF stamp. */ + #define GIF_STAMP_LEN sizeof(GIF_STAMP) - 1 |