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.10a-Makerules-opens...

33 lines
850 B

--- mupdf-1.10a/Makerules
+++ mupdf-1.10a/Makerules
@@ -107,12 +107,17 @@
HAVE_PTHREADS ?= yes
+WANT_OPENSSL ?= yes
+ifeq "$(WANT_OPENSSL)" "yes"
ifeq "$(shell pkg-config --exists libcrypto && 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
+ifeq "$(WANT_CURL)" "yes"
ifeq "$(shell pkg-config --exists libcurl && echo yes)" "yes"
HAVE_CURL = yes
SYS_CURL_CFLAGS = $(shell pkg-config --cflags libcurl)
@@ -122,8 +127,10 @@
SYS_CURL_CFLAGS += $(shell pkg-config --cflags openssl)
SYS_CURL_DEPS += $(shell pkg-config --libs openssl)
endif
-endif
SYS_CURL_DEPS += -lpthread -lrt
+endif
+endif
+
ifeq "$(shell pkg-config --exists x11 xext && echo yes)" "yes"
HAVE_X11 = yes