<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3f6f65ad24d0b4b06d7af195e67edbe22e20e87f">https://github.com/macports/macports-ports/commit/3f6f65ad24d0b4b06d7af195e67edbe22e20e87f</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 3f6f65ad24d pngloss: patch Makefile to respect CFLAGS & LDFLAGS
</span>3f6f65ad24d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3f6f65ad24d0b4b06d7af195e67edbe22e20e87f
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Sun Aug 25 23:27:38 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> pngloss: patch Makefile to respect CFLAGS & LDFLAGS
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - set C compiler standard to C99
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/70456
</span>---
graphics/pngloss/Portfile | 12 ++++++------
graphics/pngloss/files/patch-Makefile.diff | 27 +++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/pngloss/Portfile b/graphics/pngloss/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1bb2d44fccc..0e1dd25a950 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/pngloss/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/pngloss/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup makefile 1.0
</span>
github.setup foobaz pngloss 1.0 v
github.tarball_from archive
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
description Lossy compression of PNG images
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,10 +30,10 @@ checksums rmd160 e87c09329c8eeb702e05381368e1c59b8eb29d55 \
</span> sha256 24c5c3d176b299a3787fb019f668808ff54a75f236fb5e65ad87ecf499e26f77 \
size 3108037
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:autoconf \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:automake \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libtool \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-Makefile.diff
</span>
depends_lib-append port:libpng
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard 1999
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/pngloss/files/patch-Makefile.diff b/graphics/pngloss/files/patch-Makefile.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..363bd844d49
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/pngloss/files/patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,27 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./Makefile 2024-08-25 23:22:11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./Makefile 2024-08-25 23:23:26
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,9 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -include config.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++PREFIX ?= /opt/local
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC ?= /usr/bin/cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS = -O3 -Wall -Wextra -I/usr/local/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LDFLAGS = -L/usr/local/lib -lpng
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-VERSION = 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS ?= -O3 -Wall -Wextra -I$(PREFIX)/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++LDFLAGS ?= -L$(PREFIX)/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++DEFAULT_LDFLAGS = -lpng
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++VERSION ?= 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BIN ?= pngloss
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DESTDIR ?= /usr/local
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19,7 +22,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ all: $(BIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(BIN): $(OBJS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) -o $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(OBJS) $(CFLAGS) $(DEFAULT_LDFLAGS) $(LDFLAGS) -o $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dist: $(TARFILE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>