From e2dcbe518df51cc8fd0ebdb161426d1079cb65e2 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sat, 10 May 2025 13:18:47 -0600 Subject: [PATCH] libgif: update and fix --- recipes/wip/libs/video/libgif/recipe.toml | 13 +++++++++++-- recipes/wip/libs/video/libgif/redox.patch | 12 ++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 recipes/wip/libs/video/libgif/redox.patch diff --git a/recipes/wip/libs/video/libgif/recipe.toml b/recipes/wip/libs/video/libgif/recipe.toml index b7352080..aebee7b7 100644 --- a/recipes/wip/libs/video/libgif/recipe.toml +++ b/recipes/wip/libs/video/libgif/recipe.toml @@ -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}" +""" + diff --git a/recipes/wip/libs/video/libgif/redox.patch b/recipes/wip/libs/video/libgif/redox.patch new file mode 100644 index 00000000..b58cfcdb --- /dev/null +++ b/recipes/wip/libs/video/libgif/redox.patch @@ -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