From 65cf08108fb95896823bf709cd91943eb92f88c4 Mon Sep 17 00:00:00 2001 From: Marius Schamschula Date: Thu, 11 Jun 2026 15:29:31 -0500 Subject: [PATCH] giflib5: move to ${prefix}/libexec/giflib5 --- graphics/giflib5/Portfile | 10 +++++-- graphics/giflib5/files/patch-Makefile.diff | 32 +++++----------------- 2 files changed, 14 insertions(+), 28 deletions(-) diff --git a/graphics/giflib5/Portfile b/graphics/giflib5/Portfile index cb217afa45d..b058ad3b091 100644 --- a/graphics/giflib5/Portfile +++ b/graphics/giflib5/Portfile @@ -5,8 +5,9 @@ PortGroup makefile 1.0 name giflib5 version 5.2.2 -revision 2 +revision 3 set major [lindex [split ${version} .] 0] + categories graphics maintainers {mps @Schamschula} openmaintainer license MIT @@ -22,12 +23,12 @@ checksums rmd160 97aac3bcddf1c725b8ea9fd4169fad0810ce7895 \ sha256 be7ffbd057cadebe2aa144542fd90c6838c6a083b5e8a9048b8ee3b66b29d5fb \ size 447175 -set docdir ${prefix}/share/doc/${name} +set docdir ${prefix}/libexec/${name}/share/doc/${name} patchfiles patch-Makefile.diff post-patch { - reinplace "s|%PREFIX%|${prefix}|" ${worksrcpath}/Makefile + reinplace "s|%PREFIX%|${prefix}/libexec/${name}|" ${worksrcpath}/Makefile } use_configure no @@ -43,9 +44,12 @@ post-destroot { variant doc description {Install HTML documentation} { depends_build-append port:xmlto + post-destroot { xinstall -d ${destroot}${docdir}/html xinstall -m 0644 {*}[glob ${worksrcpath}/doc/*.html] ${destroot}${docdir}/html + xinstall -d ${destroot}${docdir}/man/man1 + xinstall -m 0644 {*}[glob ${worksrcpath}/doc/*.1] ${destroot}${docdir}/man/man1 } } diff --git a/graphics/giflib5/files/patch-Makefile.diff b/graphics/giflib5/files/patch-Makefile.diff index eaf880d2804..c5e74cc5133 100644 --- a/graphics/giflib5/files/patch-Makefile.diff +++ b/graphics/giflib5/files/patch-Makefile.diff @@ -1,13 +1,6 @@ ---- Makefile.orig 2019-06-24 11:08:57.000000000 -0500 -+++ Makefile 2023-04-18 18:35:55.000000000 -0500 -@@ -8,17 +8,17 @@ - # - OFLAGS = -O0 -g - OFLAGS = -O2 --CFLAGS = -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS) -+CFLAGS += -std=gnu99 -fPIC -Wall $(OFLAGS) - - SHELL = /bin/sh +--- Makefile.orig 2024-02-18 19:01:50 ++++ Makefile 2026-05-03 09:44:39 +@@ -14,11 +14,11 @@ TAR = tar INSTALL = install @@ -17,24 +10,13 @@ -LIBDIR = $(PREFIX)/lib -MANDIR = $(PREFIX)/share/man +PREFIX = %PREFIX% -+BINDIR = $(PREFIX)/bin/giflib5/bin -+INCDIR = $(PREFIX)/include/giflib5 -+LIBDIR = $(PREFIX)/lib/giflib5/lib -+MANDIR = $(PREFIX)/share/giflib5/man ++BINDIR = %PREFIX%/bin ++INCDIR = %PREFIX%/include ++LIBDIR = %PREFIX%/lib ++MANDIR = %PREFIX%/share/man # No user-serviceable parts below this line -@@ -37,6 +37,8 @@ - UHEADERS = getarg.h - UOBJECTS = $(USOURCES:.c=.o) - -+UNAME:=$(shell uname) -+ - # Some utilities are installed - INSTALLABLE = \ - gif2rgb \ ---- Makefile.orig 2024-02-18 19:01:50 -+++ Makefile 2024-02-24 06:52:44 @@ -97,7 +97,7 @@ $(LIBGIFSO): $(OBJECTS) $(HEADERS)