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} |