You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/mupdf/files/mupdf-1.13-libressl.patch

24 lines
883 B

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