libgif: update and fix

This commit is contained in:
Jeremy Soller 2025-05-10 13:18:47 -06:00
parent 47e4127d7b
commit e2dcbe518d
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
2 changed files with 23 additions and 2 deletions

View File

@ -1,5 +1,14 @@
#TODO missing script for building
[source]
tar = "https://sourceforge.net/projects/giflib/files/giflib-5.2.1.tar.gz/download"
tar = "https://sourceforge.net/projects/giflib/files/giflib-5.2.2.tar.gz/download"
blake3 = "025cd79ba2d524c24b33a3d2750c146c6823adf96e1dbcc380ca6210bc7058a8"
patches = ["redox.patch"]
[build]
template = "custom"
script = """
DYNAMIC_INIT
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
"${COOKBOOK_MAKE}" libgif.so libgif.a -j "${COOKBOOK_MAKE_JOBS}"
"${COOKBOOK_MAKE}" install-include install-lib DESTDIR="${COOKBOOK_STAGE}"
"""

View File

@ -0,0 +1,12 @@
diff -ruwN giflib-5.2.1/Makefile source/Makefile
--- giflib-5.2.1/Makefile 2019-06-24 10:08:57.000000000 -0600
+++ source/Makefile 2025-05-10 13:15:44.301303744 -0600
@@ -14,7 +14,7 @@
TAR = tar
INSTALL = install
-PREFIX = /usr/local
+PREFIX = /usr
BINDIR = $(PREFIX)/bin
INCDIR = $(PREFIX)/include
LIBDIR = $(PREFIX)/lib