diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2017-12-31 14:27:37 -0500 |
---|---|---|
committer | Domen Kožar <domen@enlambda.com> | 2018-01-01 11:53:40 +0000 |
commit | 21db6f6af1e006e29a582ca234786a8027c319a1 (patch) | |
tree | 66b4ce1557adf7b349f02a96ff35adef953826a6 /pkgs/applications/misc/mupdf/darwin.patch | |
parent | e714179c36858c1a59b8b2da107c3374e489a228 (diff) | |
download | nixpkgs-21db6f6af1e006e29a582ca234786a8027c319a1.tar nixpkgs-21db6f6af1e006e29a582ca234786a8027c319a1.tar.gz nixpkgs-21db6f6af1e006e29a582ca234786a8027c319a1.tar.bz2 nixpkgs-21db6f6af1e006e29a582ca234786a8027c319a1.tar.lz nixpkgs-21db6f6af1e006e29a582ca234786a8027c319a1.tar.xz nixpkgs-21db6f6af1e006e29a582ca234786a8027c319a1.tar.zst nixpkgs-21db6f6af1e006e29a582ca234786a8027c319a1.zip |
mupdf: enable on darwin
Diffstat (limited to 'pkgs/applications/misc/mupdf/darwin.patch')
-rw-r--r-- | pkgs/applications/misc/mupdf/darwin.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/misc/mupdf/darwin.patch b/pkgs/applications/misc/mupdf/darwin.patch new file mode 100644 index 00000000000..e0c7d6a7a67 --- /dev/null +++ b/pkgs/applications/misc/mupdf/darwin.patch @@ -0,0 +1,35 @@ +diff --git a/Makerules b/Makerules +--- a/Makerules ++++ b/Makerules +@@ -81,22 +81,10 @@ HAVE_GLUT ?= yes + SYS_GLUT_CFLAGS := -Wno-deprecated-declarations + SYS_GLUT_LIBS := -framework GLUT -framework OpenGL + +-CC = xcrun cc +-AR = xcrun ar +-LD = xcrun ld +-RANLIB_CMD = xcrun ranlib $@ +- +-# Linux uses pkg-config for system libraries. +-else ifeq "$(OS)" "Linux" +- + HAVE_PTHREAD := yes + SYS_PTHREAD_CFLAGS := + SYS_PTHREAD_LIBS := -lpthread + +-HAVE_GLUT := yes +-SYS_GLUT_CFLAGS := +-SYS_GLUT_LIBS := -lglut -lGL +- + ifeq "$(shell pkg-config --exists 'libcrypto <= 1.0.1t' && echo yes)" "yes" + HAVE_LIBCRYPTO := yes + SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto) +@@ -113,7 +101,7 @@ SYS_CURL_CFLAGS += $(shell pkg-config --cflags openssl) + SYS_CURL_DEPS += $(shell pkg-config --libs openssl) + endif + endif +-SYS_CURL_DEPS += -lpthread -lrt ++SYS_CURL_DEPS += -lpthread + + ifeq "$(shell pkg-config --exists x11 xext && echo yes)" "yes" + HAVE_X11 := yes |