tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
quirc: fix on darwin
Grimmauld
1 year ago
2ff2b541
729fa0f9
+30
-2
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
qu
quirc
0001-Don-t-build-demos.patch
+30
-2
pkgs/by-name/qu/quirc/0001-Don-t-build-demos.patch
···
0
0
0
0
0
0
0
0
0
1
diff --git a/Makefile b/Makefile
2
-
index 8327b4e..c269291 100644
3
--- a/Makefile
4
+++ b/Makefile
5
-
@@ -99,9 +99,6 @@ install: libquirc.a libquirc.$(LIB_SUFFIX) quirc-demo quirc-scanner
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6
install -o root -g root -m 0755 libquirc.$(VERSIONED_LIB_SUFFIX) \
7
$(DESTDIR)$(PREFIX)/lib
8
cp -d libquirc.$(LIB_SUFFIX) $(DESTDIR)$(PREFIX)/lib
···
12
13
uninstall:
14
rm -f $(DESTDIR)$(PREFIX)/include/quirc.h
0
0
0
···
1
+
From 7435b2e12c2004cb0c497ff313288902f2a6f39a Mon Sep 17 00:00:00 2001
2
+
From: toonn <toonn@toonn.io>
3
+
Date: Fri, 19 Jul 2024 21:53:58 +0200
4
+
Subject: [PATCH] Don't build demos
5
+
6
+
---
7
+
Makefile | 7 ++-----
8
+
1 file changed, 2 insertions(+), 5 deletions(-)
9
+
10
diff --git a/Makefile b/Makefile
11
+
index 8327b4e..7901cc5 100644
12
--- a/Makefile
13
+++ b/Makefile
14
+
@@ -45,7 +45,7 @@ DEMO_UTIL_OBJ = \
15
+
16
+
OPENCV_CFLAGS := $(shell pkg-config --cflags opencv4 2>&1)
17
+
OPENCV_LIBS = $(shell pkg-config --libs opencv4)
18
+
-QUIRC_CXXFLAGS = $(QUIRC_CFLAGS) $(OPENCV_CFLAGS) --std=c++17
19
+
+QUIRC_CXXFLAGS = $(QUIRC_CFLAGS) --std=c++17
20
+
21
+
.PHONY: all v4l sdl opencv install uninstall clean
22
+
23
+
@@ -93,15 +93,12 @@ libquirc.$(VERSIONED_LIB_SUFFIX): $(LIB_OBJ)
24
+
.cxx.o:
25
+
$(CXX) $(QUIRC_CXXFLAGS) -o $@ -c $<
26
+
27
+
-install: libquirc.a libquirc.$(LIB_SUFFIX) quirc-demo quirc-scanner
28
+
+install: libquirc.a libquirc.$(LIB_SUFFIX)
29
+
install -o root -g root -m 0644 lib/quirc.h $(DESTDIR)$(PREFIX)/include
30
+
install -o root -g root -m 0644 libquirc.a $(DESTDIR)$(PREFIX)/lib
31
install -o root -g root -m 0755 libquirc.$(VERSIONED_LIB_SUFFIX) \
32
$(DESTDIR)$(PREFIX)/lib
33
cp -d libquirc.$(LIB_SUFFIX) $(DESTDIR)$(PREFIX)/lib
···
37
38
uninstall:
39
rm -f $(DESTDIR)$(PREFIX)/include/quirc.h
40
+
--
41
+
2.42.2
42
+