View | Details | Raw Unified | Return to bug 184335 | Differences between
and this patch

Collapse All | Expand All

(-)mupdf/Makefile (-14 / +14 lines)
Lines 2-14 Link Here
2
# $FreeBSD: head/graphics/mupdf/Makefile 355743 2014-05-29 20:18:17Z marino $
2
# $FreeBSD: head/graphics/mupdf/Makefile 355743 2014-05-29 20:18:17Z marino $
3
3
4
PORTNAME=	mupdf
4
PORTNAME=	mupdf
5
PORTVERSION=	1.2
5
PORTVERSION=	1.5
6
PORTREVISION=	2
7
PORTEPOCH=	1
6
PORTEPOCH=	1
8
CATEGORIES=	graphics
7
CATEGORIES=	graphics
9
MASTER_SITES=	GOOGLE_CODE \
8
MASTER_SITES=	GOOGLE_CODE \
10
		http://www.mupdf.com/download/
9
		http://www.mupdf.com/download/
11
EXTRACT_SUFX=	-source.zip
10
EXTRACT_SUFX=	-source.tar.gz
12
11
13
MAINTAINER=	lichray@gmail.com
12
MAINTAINER=	lichray@gmail.com
14
COMMENT=	Lightweight PDF viewer and toolkit
13
COMMENT=	Lightweight PDF viewer and toolkit
Lines 18-28 Link Here
18
LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2 \
17
LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2 \
19
		libjpeg.so:${PORTSDIR}/graphics/jpeg \
18
		libjpeg.so:${PORTSDIR}/graphics/jpeg \
20
		libjbig2dec.so:${PORTSDIR}/graphics/jbig2dec \
19
		libjbig2dec.so:${PORTSDIR}/graphics/jbig2dec \
21
		libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15
20
		libopenjp2.so:${PORTSDIR}/graphics/openjpeg
22
21
23
MAKE_ARGS+=	build=release prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man \
22
MAKE_ARGS+=	build=release prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man \
24
		XCFLAGS=-I${LOCALBASE}/include
23
			HAVE_X11=yes \
25
USES=		pkgconfig gmake zip
24
			XCFLAGS="`pkg-config --cflags freetype2` -I ${LOCALBASE}/include" \
25
			XLIBS="`pkg-config --libs freetype2 libopenjp2 x11 xext` -ljpeg -ljbig2dec"
26
USES=		pkgconfig gmake
26
USE_XORG=	x11 xext
27
USE_XORG=	x11 xext
27
28
28
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-source
29
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-source
Lines 50-66 Link Here
50
MAKE_ARGS+=	V8_PRESENT=1 V8LIBS=-lv8
51
MAKE_ARGS+=	V8_PRESENT=1 V8LIBS=-lv8
51
.endif
52
.endif
52
53
53
post-patch:	.SILENT
54
post-patch:
54
	${REINPLACE_CMD} \
55
		-e '/install:/,/^$$/ { /-d/d; }' \
56
		-e '/install.*bindir)$$/s/install/$$(BSD_INSTALL_PROGRAM)/' \
57
		-e '/install.*libdir)$$/s/install/$$(BSD_INSTALL_DATA)/' \
58
		-e '/install.*incdir)$$/s/install/$$(BSD_INSTALL_DATA)/' \
59
		-e '/install.*man1$$/s/install/$$(BSD_INSTALL_MAN)/' \
60
		${WRKSRC}/Makefile
61
	${REINPLACE_CMD} -e 's/-pipe -O2 //' \
55
	${REINPLACE_CMD} -e 's/-pipe -O2 //' \
62
		-e 's|/usr/local|${LOCALBASE}|' \
56
		-e 's|/usr/local|${LOCALBASE}|' \
63
		${WRKSRC}/Makerules
57
		${WRKSRC}/Makerules
64
	${RM} -r ${WRKSRC}/thirdparty/*
58
	${RM} -r ${WRKSRC}/thirdparty/*
65
59
60
post-install:
61
	${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 ${STAGEDIR}${PREFIX}/bin/mupdf
62
.for binary in mudraw mutool mujstest mupdf
63
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${binary}
64
.endfor
65
66
.include <bsd.port.mk>
66
.include <bsd.port.mk>
(-)mupdf/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mupdf-1.2-source.zip) = 9bc9e31ec27c091dad37f70940bd799e46ab6da4299bc58e803bff3dbb07dc3b
1
SHA256 (mupdf-1.5-source.tar.gz) = e41fa8951de3b44a5ec95052b8897fbcca1eb721e0fd0289862e31e2f03f846a
2
SIZE (mupdf-1.2-source.zip) = 13808821
2
SIZE (mupdf-1.5-source.tar.gz) = 13269193
(-)mupdf/files/patch-Makefile (-59 / +8 lines)
Lines 1-67 Link Here
1
--- Makefile.orig	2013-02-13 09:25:07.000000000 -0500
1
--- ./Makefile.orig	2014-08-04 15:10:15.000000000 +0200
2
+++ Makefile	2013-05-06 13:00:30.619173583 -0400
2
+++ ./Makefile	2014-08-04 15:10:27.000000000 +0200
3
@@ -12,19 +12,13 @@ default: all
3
@@ -18,13 +18,6 @@
4
 # Do not specify CFLAGS or LIBS on the make invocation line - specify
5
 # XCFLAGS or XLIBS instead. Make ignores any lines in the makefile that
6
 # set a variable that was set on the command line.
7
-CFLAGS += $(XCFLAGS) -Ifitz -Ipdf -Ixps -Icbz -Iscripts
8
-LIBS += $(XLIBS) -lfreetype -ljbig2dec -ljpeg -lopenjpeg -lz -lm
9
+CFLAGS += -Ifitz -Ipdf -Ixps -Icbz -Iscripts $(XCFLAGS)
10
+LIBS += -lfreetype -ljbig2dec -ljpeg -lopenjpeg -lz -lm $(XLIBS)
11
 LIBS_V8 = $(LIBS) $(V8LIBS)
12
 
13
 include Makerules
4
 include Makerules
14
 include Makethird
5
 include Makethird
15
 
6
 
16
-THIRD_LIBS := $(FREETYPE_LIB)
7
-THIRD_LIBS += $(FREETYPE_LIB)
17
-THIRD_LIBS += $(JBIG2DEC_LIB)
8
-THIRD_LIBS += $(JBIG2DEC_LIB)
18
-THIRD_LIBS += $(JPEG_LIB)
9
-THIRD_LIBS += $(JPEG_LIB)
19
-THIRD_LIBS += $(OPENJPEG_LIB)
10
-THIRD_LIBS += $(OPENJPEG_LIB)
11
-THIRD_LIBS += $(OPENSSL_LIB)
20
-THIRD_LIBS += $(ZLIB_LIB)
12
-THIRD_LIBS += $(ZLIB_LIB)
21
-
13
-
22
 ifeq "$(verbose)" ""
14
 LIBS += $(FREETYPE_LIBS)
23
 QUIET_AR = @ echo ' ' ' ' AR $@ ;
15
 LIBS += $(JBIG2DEC_LIBS)
24
 QUIET_CC = @ echo ' ' ' ' CC $@ ;
16
 LIBS += $(JPEG_LIBS)
25
@@ -169,14 +163,15 @@ $(MUTOOL) : $(addprefix $(OUT)/, pdfclea
26
 
27
 ifeq "$(NOX11)" ""
28
 MUVIEW := $(OUT)/mupdf
29
+ifeq "$(V8_PRESENT)" "1"
30
+$(MUVIEW) : $(FITZ_V8_LIB) $(THIRD_LIBS)
31
+$(MUVIEW) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o)
32
+	$(LINK_V8_CMD) $(X11_LIBS)
33
+else
34
 $(MUVIEW) : $(FITZ_LIB) $(THIRD_LIBS)
35
 $(MUVIEW) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o)
36
 	$(LINK_CMD) $(X11_LIBS)
37
-
38
-MUVIEW_V8 := $(OUT)/mupdf-v8
39
-$(MUVIEW_V8) : $(FITZ_V8_LIB) $(THIRD_LIBS)
40
-$(MUVIEW_V8) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o)
41
-	$(LINK_V8_CMD) $(X11_LIBS)
42
+endif
43
 endif
44
 
45
 MUJSTEST_V8 := $(OUT)/mujstest-v8
46
@@ -184,12 +179,6 @@ $(MUJSTEST_V8) : $(FITZ_V8_LIB) $(THIRD_
47
 $(MUJSTEST_V8) : $(addprefix $(OUT)/, jstest_main.o pdfapp.o)
48
 	$(LINK_V8_CMD)
49
 
50
-ifeq "$(V8_PRESENT)" "1"
51
-JSTARGETS := $(MUJSTEST_V8) $(FITZ_V8_LIB) $(MUVIEW_V8)
52
-else
53
-JSTARGETS :=
54
-endif
55
-
56
 # --- Format man pages ---
57
 
58
 %.txt: %.1
59
@@ -212,7 +201,7 @@ install: $(FITZ_LIB) $(MUVIEW) $(MUDRAW)
60
 	install -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(incdir) $(DESTDIR)$(mandir)/man1
61
 	install $(FITZ_LIB) $(DESTDIR)$(libdir)
62
 	install fitz/memento.h fitz/fitz.h pdf/mupdf.h xps/muxps.h cbz/mucbz.h $(DESTDIR)$(incdir)
63
-	install $(MUVIEW) $(MUDRAW) $(MUBUSY) $(DESTDIR)$(bindir)
64
+	install $(MUVIEW) $(MUDRAW) $(MUTOOL) $(DESTDIR)$(bindir)
65
 	install $(wildcard apps/man/*.1) $(DESTDIR)$(mandir)/man1
66
 
67
 # --- Clean and Default ---

Return to bug 184335