giflib: Update from 5.1.4 to 5.1.9

This commit is contained in:
Fredrik Fornwall 2019-03-30 00:14:31 +01:00
parent 5487c06a6b
commit aea432098e
3 changed files with 15 additions and 20 deletions

View File

@ -0,0 +1,12 @@
diff -u -r ../giflib-5.1.9/Makefile ./Makefile
--- ../giflib-5.1.9/Makefile 2019-03-28 18:57:23.000000000 +0000
+++ ./Makefile 2019-03-29 22:55:30.125971028 +0000
@@ -14,7 +14,7 @@
TAR = tar
INSTALL = install
-PREFIX = /usr/local
+PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
INCDIR = $(PREFIX)/include
LIBDIR = $(PREFIX)/lib

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/giflib/
TERMUX_PKG_DESCRIPTION="A library for reading and writing gif images"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_VERSION=5.1.4
TERMUX_PKG_REVISION=6
TERMUX_PKG_VERSION=5.1.9
TERMUX_PKG_SHA256=36ccab06aa43e5d608cdd74902f89c47fd55c348009798434ba5798967454057
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/giflib/giflib-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=34a7377ba834397db019e8eb122e551a49c98f49df75ec3fcc92b9a794a4f6d1
TERMUX_PKG_BUILD_IN_SRC=yes

View File

@ -1,17 +0,0 @@
--- src/lib/egif_lib.c.orig 2017-12-09 15:46:41.761228962 +0000
+++ src/lib/egif_lib.c 2017-12-09 15:47:16.631668749 +0000
@@ -25,6 +25,14 @@
#include "gif_lib.h"
#include "gif_lib_private.h"
+#ifndef S_IREAD
+#define S_IREAD 00400
+#endif
+
+#ifndef S_IWRITE
+#define S_IWRITE 00200
+#endif
+
/* Masks given codes to BitsPerPixel, to make sure all codes are in range: */
/*@+charint@*/
static const GifPixelType CodeMask[] = {