View | Details | Raw Unified | Return to bug 232902
Collapse All | Expand All

(-)graphics/mupdf/Makefile (-1 / +1 lines)
Lines 4-10 Link Here
4
PORTNAME=	mupdf
4
PORTNAME=	mupdf
5
PORTVERSION=	1.13.0
5
PORTVERSION=	1.13.0
6
DISTVERSIONSUFFIX=	-source
6
DISTVERSIONSUFFIX=	-source
7
PORTREVISION=	3
7
PORTREVISION=	4
8
PORTEPOCH=	1
8
PORTEPOCH=	1
9
CATEGORIES=	graphics
9
CATEGORIES=	graphics
10
MASTER_SITES=	http://www.mupdf.com/downloads/ \
10
MASTER_SITES=	http://www.mupdf.com/downloads/ \
(-)graphics/mupdf/files/patch-Makefile (-10 / +19 lines)
Lines 1-7 Link Here
1
$OpenBSD: patch-Makefile,v 1.12 2016/12/12 10:54:39 sthen Exp $
1
- Create shared library versions for MuPDF
2
--- Makefile.orig	2017-12-13 14:00:30 UTC
2
  and its third-party code; make them to be version-bumped
3
+++ Makefile
3
  with the port version to avoid desynchronization.
4
@@ -312,8 +312,8 @@ generate: $(JAVASCRIPT_GEN)
4
5
- Make MuPDF library to pick third-party library
6
  via ld(1) automatically: fitz (in MuPDF) uses code
7
  from lcms2 (in third-party).
8
9
Based on: $OpenBSD: patch-Makefile,v 1.12 2016/12/12 10:54:39 sthen Exp $
10
--- Makefile.orig	2018-04-12 16:14:06.000000000 +0300
11
+++ Makefile	2018-08-30 16:30:17.981273000 +0300
12
@@ -325,8 +325,8 @@
5
 
13
 
6
 # --- Library ---
14
 # --- Library ---
7
 
15
 
Lines 10-27 Link Here
10
+MUPDF_LIB = libmupdf.so.$(SOVERSION)
18
+MUPDF_LIB = libmupdf.so.$(SOVERSION)
11
+THIRD_LIB = libmupdfthird.so.$(SOVERSION)
19
+THIRD_LIB = libmupdfthird.so.$(SOVERSION)
12
 THREAD_LIB = $(OUT)/libmuthreads.a
20
 THREAD_LIB = $(OUT)/libmuthreads.a
21
 PKCS7_LIB = $(OUT)/libmupkcs7.a
13
 
22
 
14
 MUPDF_OBJ := \
23
@@ -355,8 +355,12 @@
15
@@ -344,7 +344,11 @@ THIRD_OBJ := \
24
 	$(ZLIB_OBJ) \
16
 THREAD_OBJ := $(THREAD_OBJ)
25
 	$(LCMS2_OBJ)
17
 
26
 
18
-$(MUPDF_LIB) : $(MUPDF_OBJ)
27
-$(MUPDF_LIB) : $(MUPDF_OBJ)
19
+$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_LIB)
28
+$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_LIB)
20
+	$(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -Wl,--no-undefined -o $@ $^ $(LIBS)
29
+	$(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -o $@ $^ $(THIRD_LIB) $(LIBS)
21
+
30
+
22
 $(THIRD_LIB) : $(THIRD_OBJ)
31
 $(THIRD_LIB) : $(THIRD_OBJ)
23
+	$(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -Wl,--no-undefined -o $@ $^ $(LIBS)
32
+	$(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -o $@ $^ $(LIBS)
24
+
33
+
25
 $(THREAD_LIB) : $(THREAD_OBJ)
34
 $(THREAD_LIB) : $(THREAD_OBJ)
35
 $(PKCS7_LIB) : $(PKCS7_OBJ)
26
 
36
 
27
 INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB)

Return to bug 232902