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 |
SOVERSION= ${PORTVERSION} |
|
|
26 |
CFLAGS+= -I${WRKSRC}/include/mupdf -fPIC |
25 |
LIBS+= -L${LOCALBASE}/lib |
27 |
LIBS+= -L${LOCALBASE}/lib |
26 |
MAKE_ARGS= build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes |
28 |
MAKE_ARGS= build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes \ |
|
|
29 |
SOVERSION=${SOVERSION} |
27 |
USES= cpe compiler:c++11-lang gmake jpeg pkgconfig |
30 |
USES= cpe compiler:c++11-lang gmake jpeg pkgconfig |
28 |
USE_XORG= x11 xcursor xext xinerama xrandr |
31 |
USE_XORG= x11 xcursor xext xinerama xrandr |
29 |
USE_GL= gl |
32 |
USE_GL= gl |
|
|
33 |
USE_LDCONFIG= yes |
30 |
|
34 |
|
31 |
CPE_VENDOR= artifex |
35 |
CPE_VENDOR= artifex |
32 |
|
36 |
|
Lines 40-45
Link Here
|
40 |
JS_MAKE_ARGS= V8_PRESENT=1 V8LIBS=-lv8 |
44 |
JS_MAKE_ARGS= V8_PRESENT=1 V8LIBS=-lv8 |
41 |
SCROLL_EXTRA_PATCHES= ${FILESDIR}/scroll_hack-platform__x11__pdfapp.c |
45 |
SCROLL_EXTRA_PATCHES= ${FILESDIR}/scroll_hack-platform__x11__pdfapp.c |
42 |
|
46 |
|
|
|
47 |
PLIST_SUB= SOVERSION=${SOVERSION} |
48 |
|
43 |
post-patch: |
49 |
post-patch: |
44 |
@${REINPLACE_CMD} -e 's/-pipe -O2 //' \ |
50 |
@${REINPLACE_CMD} -e 's/-pipe -O2 //' \ |
45 |
-e 's|/usr/local|${LOCALBASE}|' \ |
51 |
-e 's|/usr/local|${LOCALBASE}|' \ |
Lines 53-67
Link Here
|
53 |
${WRKSRC}/thirdparty/openjpeg \ |
59 |
${WRKSRC}/thirdparty/openjpeg \ |
54 |
${WRKSRC}/thirdparty/zlib |
60 |
${WRKSRC}/thirdparty/zlib |
55 |
|
61 |
|
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: |
62 |
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 |
63 |
${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 ${STAGEDIR}${PREFIX}/bin/mupdf |
|
|
64 |
cd ${STAGEDIR}${PREFIX}/lib && ( \ |
65 |
${LN} -s libmupdf.so.${SOVERSION} libmupdf.so; \ |
66 |
${LN} -s libmupdfthird.so.${SOVERSION} libmupdfthird.so; \ |
67 |
) |
66 |
|
68 |
|
67 |
.include <bsd.port.mk> |
69 |
.include <bsd.port.mk> |