Lines 4-9
Link Here
|
4 |
PORTNAME= mupdf |
4 |
PORTNAME= mupdf |
5 |
PORTVERSION= 1.10a |
5 |
PORTVERSION= 1.10a |
6 |
DISTVERSIONSUFFIX= -source |
6 |
DISTVERSIONSUFFIX= -source |
|
|
7 |
PORTREVISION= 1 |
7 |
PORTEPOCH= 1 |
8 |
PORTEPOCH= 1 |
8 |
CATEGORIES= graphics |
9 |
CATEGORIES= graphics |
9 |
MASTER_SITES= http://www.mupdf.com/downloads/ \ |
10 |
MASTER_SITES= http://www.mupdf.com/downloads/ \ |
Lines 21-32
Link Here
|
21 |
libjbig2dec.so:graphics/jbig2dec \ |
22 |
libjbig2dec.so:graphics/jbig2dec \ |
22 |
libopenjp2.so:graphics/openjpeg |
23 |
libopenjp2.so:graphics/openjpeg |
23 |
|
24 |
|
24 |
CFLAGS+= -I${WRKSRC}/include/mupdf |
25 |
CFLAGS+= -I${WRKSRC}/include/mupdf -fPIC |
25 |
LIBS+= -L${LOCALBASE}/lib |
26 |
LIBS+= -L${LOCALBASE}/lib |
26 |
MAKE_ARGS= build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes |
27 |
MAKE_ARGS= build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes \ |
|
|
28 |
SOVERSION=${PORTVERSION} |
27 |
USES= cpe compiler:c++11-lang gmake jpeg pkgconfig |
29 |
USES= cpe compiler:c++11-lang gmake jpeg pkgconfig |
28 |
USE_XORG= x11 xcursor xext xinerama xrandr |
30 |
USE_XORG= x11 xcursor xext xinerama xrandr |
29 |
USE_GL= gl |
31 |
USE_GL= gl |
|
|
32 |
USE_LDCONFIG= yes |
30 |
|
33 |
|
31 |
CPE_VENDOR= artifex |
34 |
CPE_VENDOR= artifex |
32 |
|
35 |
|
Lines 40-45
Link Here
|
40 |
JS_MAKE_ARGS= V8_PRESENT=1 V8LIBS=-lv8 |
43 |
JS_MAKE_ARGS= V8_PRESENT=1 V8LIBS=-lv8 |
41 |
SCROLL_EXTRA_PATCHES= ${FILESDIR}/scroll_hack-platform__x11__pdfapp.c |
44 |
SCROLL_EXTRA_PATCHES= ${FILESDIR}/scroll_hack-platform__x11__pdfapp.c |
42 |
|
45 |
|
|
|
46 |
PLIST_SUB= SOVERSION=${PORTVERSION} |
47 |
|
43 |
post-patch: |
48 |
post-patch: |
44 |
@${REINPLACE_CMD} -e 's/-pipe -O2 //' \ |
49 |
@${REINPLACE_CMD} -e 's/-pipe -O2 //' \ |
45 |
-e 's|/usr/local|${LOCALBASE}|' \ |
50 |
-e 's|/usr/local|${LOCALBASE}|' \ |
Lines 53-67
Link Here
|
53 |
${WRKSRC}/thirdparty/openjpeg \ |
58 |
${WRKSRC}/thirdparty/openjpeg \ |
54 |
${WRKSRC}/thirdparty/zlib |
59 |
${WRKSRC}/thirdparty/zlib |
55 |
|
60 |
|
56 |
post-build: |
|
|
57 |
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ |
58 |
${MAKEFILE} ${MAKE_ARGS} OUT=build/pic XCFLAGS=-fpic libs) |
59 |
|
60 |
post-install: |
61 |
post-install: |
61 |
${INSTALL_DATA} ${WRKSRC}/build/pic/libmupdf.a \ |
|
|
62 |
${STAGEDIR}${PREFIX}/lib/libmupdf_pic.a |
63 |
${INSTALL_DATA} ${WRKSRC}/build/pic/libmupdfthird.a \ |
64 |
${STAGEDIR}${PREFIX}/lib/libmupdfthird_pic.a |
65 |
${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 ${STAGEDIR}${PREFIX}/bin/mupdf |
62 |
${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 ${STAGEDIR}${PREFIX}/bin/mupdf |
|
|
63 |
cd ${STAGEDIR}${PREFIX}/lib && ( \ |
64 |
${LN} -s libmupdf.so.${PORTVERSION} libmupdf.so; \ |
65 |
${LN} -s libmupdfthird.so.${PORTVERSION} libmupdfthird.so; \ |
66 |
) |
66 |
|
67 |
|
67 |
.include <bsd.port.mk> |
68 |
.include <bsd.port.mk> |