Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into HEAD
- Loading branch information
Showing
31 changed files
with
407 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
pkgs/applications/misc/mupdf/mupdf-1.12-shared_libs-1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- mupdf-1.12.0-source.orig/Makefile 2017-12-13 15:00:30.000000000 +0100 | ||
+++ mupdf-1.12.0-source/Makefile 2017-12-31 00:05:23.003277481 +0100 | ||
@@ -14,7 +14,7 @@ | ||
# Do not specify CFLAGS or LIBS on the make invocation line - specify | ||
# XCFLAGS or XLIBS instead. Make ignores any lines in the makefile that | ||
# set a variable that was set on the command line. | ||
-CFLAGS += $(XCFLAGS) -Iinclude | ||
+CFLAGS += $(XCFLAGS) -Iinclude -fPIC | ||
LIBS += $(XLIBS) -lm | ||
|
||
LIBS += $(FREETYPE_LIBS) | ||
@@ -312,9 +312,9 @@ | ||
|
||
# --- Library --- | ||
|
||
-MUPDF_LIB = $(OUT)/libmupdf.a | ||
-THIRD_LIB = $(OUT)/libmupdfthird.a | ||
-THREAD_LIB = $(OUT)/libmuthreads.a | ||
+MUPDF_LIB = $(OUT)/libmupdf.so | ||
+THIRD_LIB = $(OUT)/libmupdfthird.so | ||
+THREAD_LIB = $(OUT)/libmuthreads.so | ||
|
||
MUPDF_OBJ := \ | ||
$(FITZ_OBJ) \ | ||
@@ -343,11 +343,14 @@ | ||
|
||
THREAD_OBJ := $(THREAD_OBJ) | ||
|
||
-$(MUPDF_LIB) : $(MUPDF_OBJ) | ||
+$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_LIB) $(THREAD_LIB) | ||
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf.so -Wl,--no-undefined | ||
$(THIRD_LIB) : $(THIRD_OBJ) | ||
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdfthird.so -Wl,--no-undefined | ||
$(THREAD_LIB) : $(THREAD_OBJ) | ||
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmuthreads.so -Wl,--no-undefined -lpthread | ||
|
||
-INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB) | ||
+INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB) $(THREAD_LIB) | ||
|
||
# --- Tools and Apps --- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.