hoarder: 0.21.0 -> 0.22.0
[NixPkgs.git] / pkgs / by-name / mu / mupdf / fix-darwin-system-deps.patch
blob4a170b4c1d06d7b07bab2f55b60993ea23539888
1 diff --git a/Makerules b/Makerules
2 index f582dc061..2da5680b6 100644
3 --- a/Makerules
4 +++ b/Makerules
5 @@ -178,39 +178,20 @@ ifneq "$(CLUSTER)" ""
6 endif
8 ifeq ($(OS),Linux)
9 - LINUX_OR_OPENBSD := yes
10 + LINUX_OR_OPENBSD_OR_MACOS := yes
11 endif
12 ifeq ($(OS),OpenBSD)
13 - LINUX_OR_OPENBSD := yes
14 + LINUX_OR_OPENBSD_OR_MACOS := yes
15 +endif
16 +ifeq ($(OS),MACOS)
17 + LINUX_OR_OPENBSD_OR_MACOS := yes
18 endif
20 ifeq ($(OS),MINGW)
21 WINDRES := windres
22 HAVE_WIN32 := yes
24 -else ifeq ($(OS),MACOS)
25 - HAVE_GLUT := yes
26 - SYS_GLUT_CFLAGS := -Wno-deprecated-declarations
27 - SYS_GLUT_LIBS := -framework GLUT -framework OpenGL
28 - CC = xcrun cc
29 - AR = xcrun ar
30 - LD = xcrun ld
31 - RANLIB = xcrun ranlib
33 - ifneq ($(ARCHFLAGS),)
34 - $(warning "MacOS with ARCHFLAGS set. Assuming we are building for arm64, and setting HAVE_LIBCRYPTO to no.")
35 - HAVE_LIBCRYPTO := no
36 - else ifeq (, $(shell command -v pkg-config))
37 - $(warning "No pkg-config found, install it for proper integration of libcrypto")
38 - else
39 - HAVE_LIBCRYPTO := $(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)
40 - ifeq ($(HAVE_LIBCRYPTO),yes)
41 - LIBCRYPTO_CFLAGS := $(shell pkg-config --cflags libcrypto) -DHAVE_LIBCRYPTO
42 - LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto)
43 - endif
44 - endif
46 -else ifeq ($(LINUX_OR_OPENBSD),yes)
47 +else ifeq ($(LINUX_OR_OPENBSD_OR_MACOS),yes)
49 ifeq ($(OS),Linux)
50 HAVE_OBJCOPY := yes
51 @@ -274,6 +255,9 @@ else ifeq ($(LINUX_OR_OPENBSD),yes)
52 ifeq ($(OS),OpenBSD)
53 SYS_GLUT_CFLAGS := $(shell pkg-config --cflags glut gl)
54 SYS_GLUT_LIBS := $(shell pkg-config --libs glut gl)
55 + else ifeq ($(OS),MACOS)
56 + SYS_GLUT_CFLAGS := -Wno-deprecated-declarations
57 + SYS_GLUT_LIBS := -framework GLUT -framework OpenGL
58 else
59 SYS_GLUT_CFLAGS :=
60 SYS_GLUT_LIBS := -lglut -lGL