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

Collapse All | Expand All

(-)graphics/mupdf/Makefile (-13 / +16 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	mupdf
4
PORTNAME=	mupdf
5
PORTVERSION=	1.5
5
PORTVERSION=	1.5
6
PORTREVISION=	1
6
PORTEPOCH=	1
7
PORTEPOCH=	1
7
CATEGORIES=	graphics
8
CATEGORIES=	graphics
8
MASTER_SITES=	GOOGLE_CODE \
9
MASTER_SITES=	GOOGLE_CODE \
Lines 14-28 COMMENT= Lightweight PDF viewer and tool Link Here
14
15
15
LICENSE=	AGPLv3
16
LICENSE=	AGPLv3
16
17
17
LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2 \
18
LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl \
19
		libfreetype.so:${PORTSDIR}/print/freetype2 \
18
		libjpeg.so:${PORTSDIR}/graphics/jpeg \
20
		libjpeg.so:${PORTSDIR}/graphics/jpeg \
19
		libjbig2dec.so:${PORTSDIR}/graphics/jbig2dec \
21
		libjbig2dec.so:${PORTSDIR}/graphics/jbig2dec \
20
		libopenjp2.so:${PORTSDIR}/graphics/openjpeg
22
		libopenjp2.so:${PORTSDIR}/graphics/openjpeg
21
23
22
MAKE_ARGS+=	build=release prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man \
24
LIBS+=		-L${LOCALBASE}/lib
23
			HAVE_X11=yes \
25
MAKE_ARGS=	build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes
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
USES=		pkgconfig gmake
27
USE_XORG=	x11 xext
27
USE_XORG=	x11 xext
28
28
Lines 36-47 JS_DESC= JavaScript support (V8 engine) Link Here
36
36
37
.include <bsd.port.options.mk>
37
.include <bsd.port.options.mk>
38
38
39
.if ${CC:T:Mclang} == "clang"
40
CFLAGS+=	-no-integrated-as
41
.elif ${ARCH} == "amd64" || ${ARCH} == "i386"
42
CFLAGS+=	-mfpmath=sse
43
.endif
44
45
.if ${PORT_OPTIONS:MSCROLL}
39
.if ${PORT_OPTIONS:MSCROLL}
46
EXTRA_PATCHES+=	${FILESDIR}/scroll_hack-platform__x11__pdfapp.c
40
EXTRA_PATCHES+=	${FILESDIR}/scroll_hack-platform__x11__pdfapp.c
47
.endif
41
.endif
Lines 52-63 MAKE_ARGS+= V8_PRESENT=1 V8LIBS=-lv8 Link Here
52
.endif
46
.endif
53
47
54
post-patch:
48
post-patch:
55
	${REINPLACE_CMD} -e 's/-pipe -O2 //' \
49
	@${REINPLACE_CMD} -e 's/-pipe -O2 //' \
56
		-e 's|/usr/local|${LOCALBASE}|' \
50
		-e 's|/usr/local|${LOCALBASE}|' \
51
		-e 's/Linux/FreeBSD/' \
57
		${WRKSRC}/Makerules
52
		${WRKSRC}/Makerules
58
	${RM} -r ${WRKSRC}/thirdparty/*
53
	@${REINPLACE_CMD} '/^CFLAGS/s|$$| -I${LOCALBASE}/include|' \
54
		${WRKSRC}/Makefile
55
	@${RM} -r ${WRKSRC}/thirdparty/*
56
57
post-build:
58
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
59
		${MAKEFILE} ${MAKE_ARGS} OUT=build/pic XCFLAGS=-fpic libs)
59
60
60
post-install:
61
post-install:
62
	${INSTALL_LIB} ${WRKSRC}/build/pic/libmupdf.a \
63
		${STAGEDIR}${PREFIX}/lib/libmupdf_pic.a
61
	${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 ${STAGEDIR}${PREFIX}/bin/mupdf
64
	${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 ${STAGEDIR}${PREFIX}/bin/mupdf
62
.for binary in mudraw mutool mujstest mupdf
65
.for binary in mudraw mutool mujstest mupdf
63
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${binary}
66
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${binary}
(-)graphics/mupdf/files/patch-Makefile (-16 lines)
Lines 1-16 Link Here
1
--- ./Makefile.orig	2014-06-10 17:09:28.000000000 +0200
2
+++ ./Makefile	2014-08-04 18:51:44.000000000 +0200
3
@@ -18,13 +18,6 @@
4
 include Makerules
5
 include Makethird
6
 
7
-THIRD_LIBS += $(FREETYPE_LIB)
8
-THIRD_LIBS += $(JBIG2DEC_LIB)
9
-THIRD_LIBS += $(JPEG_LIB)
10
-THIRD_LIBS += $(OPENJPEG_LIB)
11
-THIRD_LIBS += $(OPENSSL_LIB)
12
-THIRD_LIBS += $(ZLIB_LIB)
13
-
14
 LIBS += $(FREETYPE_LIBS)
15
 LIBS += $(JBIG2DEC_LIBS)
16
 LIBS += $(JPEG_LIBS)
(-)graphics/mupdf/pkg-plist (+1 lines)
Lines 69-74 include/mupdf/pdf/xref.h Link Here
69
include/mupdf/tiff.h
69
include/mupdf/tiff.h
70
include/mupdf/xps.h
70
include/mupdf/xps.h
71
lib/libmupdf.a
71
lib/libmupdf.a
72
lib/libmupdf_pic.a
72
man/man1/mudraw.1.gz
73
man/man1/mudraw.1.gz
73
man/man1/mupdf.1.gz
74
man/man1/mupdf.1.gz
74
man/man1/mutool.1.gz
75
man/man1/mutool.1.gz

Return to bug 192397