Lines 5-50
Link Here
|
5 |
# $FreeBSD: ports/graphics/mupdf/Makefile,v 1.6 2010/04/27 19:06:53 amdmi3 Exp $ |
5 |
# $FreeBSD: ports/graphics/mupdf/Makefile,v 1.6 2010/04/27 19:06:53 amdmi3 Exp $ |
6 |
|
6 |
|
7 |
PORTNAME= mupdf |
7 |
PORTNAME= mupdf |
8 |
PORTVERSION= r940 |
8 |
PORTVERSION= r1309 |
9 |
PORTEPOCH= 1 |
9 |
PORTEPOCH= 1 |
10 |
CATEGORIES= graphics |
10 |
CATEGORIES= graphics |
11 |
MASTER_SITES= http://www.mupdf.com/download/ |
11 |
MASTER_SITES= http://www.mupdf.com/download/snapshots/ |
12 |
|
12 |
|
13 |
MAINTAINER= martin.dieringer@gmx.de |
13 |
MAINTAINER= martin.dieringer@gmx.de |
14 |
COMMENT= Lightweight PDF viewer and toolkit |
14 |
COMMENT= Lightweight PDF viewer and toolkit |
15 |
|
15 |
|
16 |
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam |
|
|
17 |
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ |
16 |
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ |
18 |
jpeg.11:${PORTSDIR}/graphics/jpeg |
17 |
jpeg.11:${PORTSDIR}/graphics/jpeg \ |
|
|
18 |
jbig2dec.0:${PORTSDIR}/graphics/jbig2dec \ |
19 |
openjpeg.2:${PORTSDIR}/graphics/openjpeg |
19 |
|
20 |
|
|
|
21 |
USE_GMAKE= yes |
22 |
MAKE_ARGS+= build=release prefix=${PREFIX} verbose=true |
20 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
23 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
21 |
USE_XORG= x11 xext |
24 |
USE_XORG= x11 xext |
22 |
JAM_ARGS= -q -sLOCALBASE=${LOCALBASE} \ |
25 |
USE_GNOME= pkgconfig |
23 |
-sPTHREAD_LIBS=${PTHREAD_LIBS} ${_MAKE_JOBS} |
26 |
|
24 |
MAKE_JOBS_SAFE= yes |
27 |
MAKE_JOBS_SAFE= yes |
25 |
|
28 |
|
26 |
EXECUTABLES= cmapdump pdfdraw pdfinfo \ |
29 |
LICENSE= GPLv3 |
27 |
fontdump pdfclean pdfextract pdfshow |
30 |
LICENSE_FILE= ${WRKSRC}/COPYING |
28 |
|
31 |
|
29 |
OPTIONS= CJK "Enable Asian Fontset" On |
32 |
CFLAGS+= -I${LOCALBASE}/include |
|
|
33 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
|
34 |
|
31 |
.include <bsd.port.options.mk> |
35 |
.include <bsd.port.options.mk> |
32 |
|
36 |
|
33 |
.if defined(WITHOUT_CJK) |
|
|
34 |
JAM_ARGS+= -sDEFINES=NOCJK |
35 |
.endif |
36 |
|
37 |
do-build: |
38 |
cd ${WRKSRC} && jam ${JAM_ARGS} |
39 |
|
40 |
do-install: |
41 |
${INSTALL} ${WRKSRC}/build/mupdf ${PREFIX}/bin/mupdf |
42 |
.for f in ${EXECUTABLES} |
43 |
${INSTALL} ${WRKSRC}/build/$f ${PREFIX}/bin/mu_$f ; |
44 |
.endfor |
45 |
|
46 |
.if ${ARCH} == "sparc64" |
37 |
.if ${ARCH} == "sparc64" |
47 |
BROKEN= Does not install on sparc64 |
38 |
BROKEN= Does not install on sparc64 |
48 |
.endif |
39 |
.endif |
49 |
|
40 |
|
|
|
41 |
post-patch: |
42 |
@${REINPLACE_CMD} 's/LAGS :=/LAGS +=/g' ${WRKSRC}/Makerules |
43 |
@${REINPLACE_CMD} 's/Linux/FreeBSD/g' ${WRKSRC}/Makerules |
44 |
|
50 |
.include <bsd.port.mk> |
45 |
.include <bsd.port.mk> |