Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mupdf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
mupdf
Commits
bd31f654
Commit
bd31f654
authored
Apr 19, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
0 deletions
+79
-0
Makefile
Makefile
+16
-0
mupdf-1.13.0-shared_libs-1.patch
mupdf-1.13.0-shared_libs-1.patch
+53
-0
mupdf-1.13.0-source.tar.gz
mupdf-1.13.0-source.tar.gz
+0
-0
mupdf.groups
mupdf.groups
+10
-0
No files found.
Makefile
0 → 100644
View file @
bd31f654
all
:
tar
xf mupdf-1.13.0-source.tar.gz
rm
-rf
mupdf-1.13.0-source/thirdparty/curl
rm
-rf
mupdf-1.13.0-source/thirdparty/freeglut
rm
-rf
mupdf-1.13.0-source/thirdparty/freetype
rm
-rf
mupdf-1.13.0-source/thirdparty/harfbuzz
rm
-rf
mupdf-1.13.0-source/thirdparty/jpeg
rm
-rf
mupdf-1.13.0-source/thirdparty/lcms2
rm
-rf
mupdf-1.13.0-source/thirdparty/libjpeg
rm
-rf
mupdf-1.13.0-source/thirdparty/openjpeg
rm
-rf
mupdf-1.13.0-source/thirdparty/zlib
patch
-Np1
-d
mupdf-1.13.0-source < mupdf-1.13.0-shared_libs-1.patch
$(MAKE)
-C
mupdf-1.13.0-source
build
=
release
$(MAKE)
-C
mupdf-1.13.0-source
prefix
=
/usr
build
=
release
docdir
=
/usr/share/doc/mupdf-1.13.0
install
ln
-sfv
mupdf-x11 /usr/bin/mupdf
rm
-rf
mupdf-1.13.0-source
mupdf-1.13.0-shared_libs-1.patch
0 → 100644
View file @
bd31f654
Submitted By: Bruce Dubbs <bdubbs at linuxfromscratch dot org>
Date: 2018-04-21
Initial Package Version: 1.13
Upstream Status: Not submitted
Origin: Self
Description: Change static libraries to shared libraries
diff -Naur mupdf-1.13.0-source-orig/Makefile mupdf-1.13.0-source/Makefile
--- mupdf-1.13.0-source-orig/Makefile 2018-04-12 08:14:06.000000000 -0500
+++ mupdf-1.13.0-source/Makefile 2018-04-21 17:15:25.797923084 -0500
@@ -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)
@@ -325,10 +325,10 @@
# --- Library ---
-MUPDF_LIB = $(OUT)/libmupdf.a
-THIRD_LIB = $(OUT)/libmupdfthird.a
-THREAD_LIB = $(OUT)/libmuthreads.a
-PKCS7_LIB = $(OUT)/libmupkcs7.a
+MUPDF_LIB = $(OUT)/libmupdf.so
+THIRD_LIB = $(OUT)/libmupdfthird.so
+THREAD_LIB = $(OUT)/libmuthreads.so
+PKCS7_LIB = $(OUT)/libmupkcs7.so
MUPDF_OBJ := \
$(FITZ_OBJ) \
@@ -355,12 +355,16 @@
$(ZLIB_OBJ) \
$(LCMS2_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
$(PKCS7_LIB) : $(PKCS7_OBJ)
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupkcs7.so
-INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB)
+INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB) $(THREAD_LIB) $(PKCS7_LIB)
# --- Tools and Apps ---
mupdf-1.13.0-source.tar.gz
0 → 100644
View file @
bd31f654
File added
mupdf.groups
0 → 100644
View file @
bd31f654
headers
/usr/include/.*
bin
/usr/bin/.*
lib
/usr/lib/lib.*
doc
/usr/share/doc/.*
man
/usr/share/man/.*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment