<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2d9d183447c6e8c72b84bc27db51ed8ca872ace6">https://github.com/macports/macports-ports/commit/2d9d183447c6e8c72b84bc27db51ed8ca872ace6</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 2d9d183447c libquirc: variant full: fix link error
</span>2d9d183447c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2d9d183447c6e8c72b84bc27db51ed8ca872ace6
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Wed Sep 20 11:51:31 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> libquirc: variant full: fix link error
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - Cleanup patch, eliminating SDL lib copy-pasta
</span><span style='display:block; white-space:pre;color:#404040;'> - Define BUILD_QUIRC for destroot, in addition to build, which is critical
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/68198
</span>---
graphics/libquirc/Portfile | 4 ++-
graphics/libquirc/files/patch-quirc.diff | 43 +++++++++++++++++---------------
2 files changed, 26 insertions(+), 21 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/libquirc/Portfile b/graphics/libquirc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a119c01e50c..101a8d4f35c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/libquirc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/libquirc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -63,8 +63,10 @@ variant full description {Full quirc installation.} {
</span> }
if { [variant_isset "full"] } {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- build.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach p {build destroot} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${p}.args-append \
</span> BUILD_QUIRC=ON
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
destroot.post_args-append \
PREFIX=${prefix}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/libquirc/files/patch-quirc.diff b/graphics/libquirc/files/patch-quirc.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index d77fbf8adf9..3e32e020582 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/libquirc/files/patch-quirc.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/libquirc/files/patch-quirc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,18 +1,21 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- Makefile.orig 2023-03-22 03:09:03.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Makefile 2023-09-16 13:51:43.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -14,12 +14,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.orig 2023-09-20 11:27:52.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile 2023-09-20 11:29:39.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14,12 +14,23 @@
</span> # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
CC ?= gcc
-PREFIX ?= /usr/local
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+PREFIX ?= @PREFIX@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SDL_CFLAGS := $(shell pkg-config --cflags sdl 2>&1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SDL_LIBS = $(shell pkg-config --libs sdl)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++PREFIX ?= /opt/local
</span> +# Turn off SDL support with dylib-only builds
+ifdef BUILD_QUIRC
<span style='display:block; white-space:pre;background:#ffe0e0;'>- SDL_CFLAGS := $(shell pkg-config --cflags sdl 2>&1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- SDL_LIBS = $(shell pkg-config --libs sdl)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SDL_CFLAGS := $(shell pkg-config --cflags sdl 2>&1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SDL_LIBS := $(shell pkg-config --libs sdl)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SDL_LIBS += -lSDL -lSDL_gfx
</span> +else
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ SDL_CFLAGS ?=
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ SDL_LIBS ?=
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SDL_CFLAGS ?=
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SDL_LIBS ?=
</span> +endif
LIB_VERSION = 1.2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,7 +27,7 @@
</span> CFLAGS ?= -O3 -Wall -fPIC
QUIRC_CFLAGS = -Ilib $(CFLAGS) $(SDL_CFLAGS)
LIB_OBJ = \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -41,7 +51,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -41,7 +52,7 @@
</span>
.PHONY: all v4l sdl opencv install uninstall clean
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,26 +36,26 @@
</span>
v4l: quirc-scanner
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -53,30 +63,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -53,30 +64,30 @@
</span> $(CC) -o $@ tests/dbgutil.o tests/qrtest.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng
inspect: tests/dbgutil.o tests/inspect.o libquirc.a
- $(CC) -o $@ tests/dbgutil.o tests/inspect.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng $(SDL_LIBS) -lSDL_gfx
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ $(CC) -o $@ tests/dbgutil.o tests/inspect.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng $(SDL_LIBS) -lSDL -lSDL_gfx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) -o $@ tests/dbgutil.o tests/inspect.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng $(SDL_LIBS)
</span>
inspect-opencv: tests/dbgutil.o tests/inspect_opencv.o libquirc.a
$(CXX) -o $@ tests/dbgutil.o tests/inspect_opencv.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng $(OPENCV_LIBS)
quirc-demo: $(DEMO_OBJ) $(DEMO_UTIL_OBJ) demo/demo.o libquirc.a
- $(CC) -o $@ $(DEMO_OBJ) $(DEMO_UTIL_OBJ) demo/demo.o libquirc.a $(LDFLAGS) -lm -ljpeg $(SDL_LIBS) -lSDL_gfx
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ $(CC) -o $@ $(DEMO_OBJ) $(DEMO_UTIL_OBJ) demo/demo.o libquirc.a $(LDFLAGS) -lm -ljpeg $(SDL_LIBS) -lSDL -lSDL_gfx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) -o $@ $(DEMO_OBJ) $(DEMO_UTIL_OBJ) demo/demo.o libquirc.a $(LDFLAGS) -lm -ljpeg $(SDL_LIBS)
</span>
quirc-demo-opencv: $(DEMO_UTIL_OBJ) demo/demo_opencv.o libquirc.a
$(CXX) -o $@ $(DEMO_UTIL_OBJ) demo/demo_opencv.o libquirc.a $(LDFLAGS) -lm $(OPENCV_LIBS)
quirc-scanner: $(DEMO_OBJ) $(DEMO_UTIL_OBJ) demo/scanner.o libquirc.a
- $(CC) -o $@ $(DEMO_OBJ) $(DEMO_UTIL_OBJ) demo/scanner.o libquirc.a $(LDFLAGS) -lm -ljpeg
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ $(CC) -o $@ $(DEMO_OBJ) $(DEMO_UTIL_OBJ) demo/scanner.o libquirc.a $(LDFLAGS) -lm -ljpeg $(SDL_LIBS) -lSDL -lSDL_gfx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) -o $@ $(DEMO_OBJ) $(DEMO_UTIL_OBJ) demo/scanner.o libquirc.a $(LDFLAGS) -lm -ljpeg $(SDL_LIBS)
</span>
libquirc.a: $(LIB_OBJ)
rm -f $@
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -71,7 +74,7 @@
</span>
.c.o:
$(CC) $(QUIRC_CFLAGS) -o $@ -c $<
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -85,18 +95,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -85,18 +96,17 @@
</span> .cxx.o:
$(CXX) $(QUIRC_CXXFLAGS) -o $@ -c $<
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -80,15 +83,15 @@
</span> - install -o root -g root -m 0644 libquirc.a $(DESTDIR)$(PREFIX)/lib
- install -o root -g root -m 0755 libquirc.so.$(LIB_VERSION) \
+install: libquirc.a libquirc.$(LIB_VERSION).dylib quirc-demo quirc-scanner
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ install -o @MACPORTSUSER@ -g @MACPORTSUSER@ -m 0644 lib/quirc.h $(DESTDIR)$(PREFIX)/include
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ install -o @MACPORTSUSER@ -g @MACPORTSUSER@ -m 0644 libquirc.a $(DESTDIR)$(PREFIX)/lib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ install -o @MACPORTSUSER@ -g @MACPORTSUSER@ -m 0755 libquirc.$(LIB_VERSION).dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install -o macports -g macports -m 0644 lib/quirc.h $(DESTDIR)$(PREFIX)/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install -o macports -g macports -m 0644 libquirc.a $(DESTDIR)$(PREFIX)/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install -o macports -g macports -m 0755 libquirc.$(LIB_VERSION).dylib \
</span> $(DESTDIR)$(PREFIX)/lib
- install -o root -g root -m 0755 quirc-demo $(DESTDIR)$(PREFIX)/bin
- # install -o root -g root -m 0755 quirc-demo-opencv $(DESTDIR)$(PREFIX)/bin
- install -o root -g root -m 0755 quirc-scanner $(DESTDIR)$(PREFIX)/bin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ install -o @MACPORTSUSER@ -g @MACPORTSUSER@ -m 0755 quirc-demo $(DESTDIR)$(PREFIX)/bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ install -o @MACPORTSUSER@ -g @MACPORTSUSER@ -m 0755 quirc-scanner $(DESTDIR)$(PREFIX)/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install -o macports -g macports -m 0755 quirc-demo $(DESTDIR)$(PREFIX)/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install -o macports -g macports -m 0755 quirc-scanner $(DESTDIR)$(PREFIX)/bin
</span>
uninstall:
rm -f $(DESTDIR)$(PREFIX)/include/quirc.h
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -97,7 +100,7 @@
</span> rm -f $(DESTDIR)$(PREFIX)/lib/libquirc.a
rm -f $(DESTDIR)$(PREFIX)/bin/quirc-demo
rm -f $(DESTDIR)$(PREFIX)/bin/quirc-demo-opencv
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -106,7 +115,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -106,7 +116,7 @@
</span> rm -f */*.o
rm -f */*.lo
rm -f libquirc.a
</pre><pre style='margin:0'>
</pre>