summaryrefslogtreecommitdiff
path: root/app-text/mupdf/files/mupdf-1.13-libressl.patch
blob: 396a0e5b5db99fae9083888deda7edae47d25761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/Makerules b/Makerules
index f9b25d6..6c91c6c 100644
--- a/Makerules
+++ b/Makerules
@@ -106,11 +106,17 @@ SYS_GLUT_LIBS := -lglut -lGL
 
 WANT_OPENSSL ?= yes
 ifeq "$(WANT_OPENSSL)" "yes"
-ifeq "$(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)" "yes"
+ifeq "$(shell pkg-config --exists 'libcrypto >= 2.0.0' && echo libre)" "libre"
+ifeq "$(shell pkg-config --exists 'libcrypto >= 2.7.0' && echo yes)" "yes"
 HAVE_LIBCRYPTO := yes
 SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto)
 SYS_LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto)
 endif
+else ifeq "$(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)" "yes"
+HAVE_LIBCRYPTO := yes
+SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto)
+SYS_LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto)
+endif
 endif
 
 WANT_CURL ?= yes