Lines 22-29
LIB_DEPENDS= libcurl.so:ftp/curl \
Link Here
|
22 |
libopenjp2.so:graphics/openjpeg |
22 |
libopenjp2.so:graphics/openjpeg |
23 |
|
23 |
|
24 |
USES= cpe compiler:c++11-lang gl gmake jpeg pkgconfig xorg |
24 |
USES= cpe compiler:c++11-lang gl gmake jpeg pkgconfig xorg |
25 |
USE_XORG= x11 xcursor xext xinerama xrandr |
25 |
USE_XORG= ice x11 xcursor xext xi xinerama xrandr |
26 |
USE_GL= gl glut |
26 |
USE_GL= gl glu |
27 |
USE_LDCONFIG= yes |
27 |
USE_LDCONFIG= yes |
28 |
|
28 |
|
29 |
CPE_VENDOR= artifex |
29 |
CPE_VENDOR= artifex |
Lines 33-39
CFLAGS+= `pkg-config --cflags libopenjp2`
Link Here
|
33 |
LDFLAGS+= `pkg-config --libs libjpeg libopenjp2` -ljbig2dec |
33 |
LDFLAGS+= `pkg-config --libs libjpeg libopenjp2` -ljbig2dec |
34 |
|
34 |
|
35 |
MAKE_ARGS= build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes \ |
35 |
MAKE_ARGS= build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes \ |
36 |
XCFLAGS+="-I${WRKSRC}/include/mupdf -fPIC" \ |
36 |
XCFLAGS+="-I${WRKSRC}/include/mupdf -I${WRKSRC}/thirdparty/freeglut/include -fPIC" \ |
37 |
XLIBS+="-L${LOCALBASE}/lib -L${WRKSRC}/build/release" \ |
37 |
XLIBS+="-L${LOCALBASE}/lib -L${WRKSRC}/build/release" \ |
38 |
SOVERSION=${DISTVERSION} |
38 |
SOVERSION=${DISTVERSION} |
39 |
ALL_TARGET= all extra-libs |
39 |
ALL_TARGET= all extra-libs |
Lines 52-57
PLIST_SUB= SOVERSION=${PORTVERSION}
Link Here
|
52 |
|
52 |
|
53 |
post-patch: |
53 |
post-patch: |
54 |
@${REINPLACE_CMD} -e 's/-pipe -O2//' -e 's/-ldl//' ${WRKSRC}/Makerules |
54 |
@${REINPLACE_CMD} -e 's/-pipe -O2//' -e 's/-ldl//' ${WRKSRC}/Makerules |
|
|
55 |
@(cd ${WRKSRC}/thirdparty/freeglut/src && \ |
56 |
${REINPLACE_CMD} -E 's/defined *\( *__FreeBSD(_kernel)?__ *\)/0/g' \ |
57 |
fg_internal.h fg_joystick.c x11/fg_internal_x11.h x11/fg_joystick_x11.c) |
55 |
|
58 |
|
56 |
post-install: |
59 |
post-install: |
57 |
${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 \ |
60 |
${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 \ |