Skip to content

Instantly share code, notes, and snippets.

@gen2brain
Created November 2, 2015 06:22
Show Gist options
  • Save gen2brain/7869ac4c6db5933f670f to your computer and use it in GitHub Desktop.
Save gen2brain/7869ac4c6db5933f670f to your computer and use it in GitHub Desktop.
--- mupdf-1.5/Makerules
+++ mupdf-1.5/Makerules
@@ -58,17 +58,23 @@
HAVE_X11 ?= yes
+WANT_OPENSSL ?= yes
+ifeq "$(WANT_OPENSSL)" "yes"
ifeq "$(shell pkg-config --exists libcrypto && echo yes)" "yes"
SYS_OPENSSL_CFLAGS = -DHAVE_OPENSSL $(shell pkg-config --cflags libcrypto)
SYS_OPENSSL_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)
SYS_CURL_LIBS = $(shell pkg-config --libs libcurl)
-endif
SYS_CURL_DEPS = -lpthread -lrt
+endif
+endif
SYS_X11_CFLAGS = $(shell pkg-config --cflags x11 xext)
SYS_X11_LIBS = $(shell pkg-config --libs x11 xext)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment