Commit c1825b38 authored by Leo's avatar Leo Committed by Natanael Copa

main/giflib: update to 5.1.9

parent 0439db0e
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=giflib
pkgver=5.1.4
pkgrel=2
pkgver=5.1.9
pkgrel=0
pkgdesc="A library for reading and writing GIF images"
url="https://sourceforge.net/projects/giflib/"
arch="all"
license="MIT"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
depends=
makedepends="libx11-dev libsm-dev util-linux-dev xmlto"
makedepends="xmlto"
checkdepends="coreutils"
source="https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
xmlto-skip-validation.patch"
giflib-restore-deprecated-functions.patch"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static
make
make CFLAGS="-fPIC"
}
check() {
......@@ -30,8 +24,7 @@ check() {
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
make DESTDIR="$pkgdir" PREFIX=/usr install
}
utils() {
......@@ -40,5 +33,5 @@ utils() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
sha512sums="32b5e342056c210e6478e9cb3b6ceec9594dcfaf34feea1eb4dad633a081ed4465bceee578c19165907cb47cb83912ac359ceea666a8e07dbbb5420f9928f96d giflib-5.1.4.tar.bz2
36f92cb092ee9dc463aa1b6b9857d1a1591fa5ed6bf973b02385a979a7178cf2c1f7fc75d6474c2fa90c090e9659178ab8cfe6bb3e147425828a1b5a59ca6f06 xmlto-skip-validation.patch"
sha512sums="f1e0c91fb90c7bf3f2b073f79b1bd4041df5178ff2e5b93975158fc2c6dd6c8ac888f8ff95c3a1804f988ce09154539c20a3196a40704b4d42a0f5846155e0ea giflib-5.1.9.tar.bz2
fdc4a46e4a61e15e14ad712f164a3595902da700c3280ef3ec6fae345118c055eefb1eb73bb755078d0ea1f6112fa4a2b8edf9d918017e0bdf413497d15e1eaf giflib-restore-deprecated-functions.patch"
Source: Gentoo, written by Gary Stein
Upstream: No
Reason: restores deprecated GifQuantizeBuffer which some packages (notably libgdiplus) still use
--- a/Makefile 2019-03-28 14:57:23.000000000 -0400
+++ b/Makefile 2019-03-31 23:38:20.700603561 -0400
@@ -67,8 +67,8 @@
$(UTILS):: libgif.a libutil.a
-libgif.so: $(OBJECTS) $(HEADERS)
- $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS)
+libgif.so: $(OBJECTS) $(HEADERS) $(UOBJECTS)
+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS) $(UOBJECTS)
libgif.a: $(OBJECTS) $(HEADERS)
$(AR) rcs libgif.a $(OBJECTS)
--- ./doc/Makefile.in.orig 2013-07-15 14:59:04.840695596 +0000
+++ ./doc/Makefile.in 2013-07-15 14:59:30.667643646 +0000
@@ -379,13 +379,13 @@
.xml.html:
- xmlto xhtml-nochunks $<
+ xmlto --skip-validation xhtml-nochunks $<
.xml.1:
- xmlto man $<
+ xmlto --skip-validation man $<
.xml.txt:
- xmlto txt $<
+ xmlto --skip-validation txt $<
all: allhtml manpages
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment