summaryrefslogtreecommitdiff
path: root/graphics/mupdf/Makefile
blob: 3b3532a4896abea8ee323d82b42f77c47ec96c55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:	mupdf
# Date created:		2009-08-07
# Whom:			Martin Dieringer <martin.dieringer@gmx.de>
#
# $FreeBSD$

PORTNAME=	mupdf
PORTVERSION=	r938
PORTEPOCH=	1
CATEGORIES=	graphics
MASTER_SITES=	http://ccxvii.net/mupdf/download/

MAINTAINER=	martin.dieringer@gmx.de
COMMENT=	Lightweight PDF viewer and toolkit

BUILD_DEPENDS=	jam:${PORTSDIR}/devel/jam
LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2 \
		jpeg.11:${PORTSDIR}/graphics/jpeg

WRKSRC=		${WRKDIR}/${PORTNAME}
USE_XORG=	x11 xext
JAM_ARGS=	-q -sLOCALBASE=${LOCALBASE} \
		-sPTHREAD_LIBS=${PTHREAD_LIBS} ${_MAKE_JOBS}
MAKE_JOBS_SAFE=	yes

EXECUTABLES=	cmapdump    pdfdraw     pdfinfo \
		fontdump    pdfclean    pdfextract  pdfshow

OPTIONS=	CJK "Enable Asian Fontset" On

.include <bsd.port.options.mk>

.if defined(WITHOUT_CJK)
JAM_ARGS+=	-sDEFINES=NOCJK
.endif

do-build:
	cd ${WRKSRC} &&	jam ${JAM_ARGS}

do-install:
	${INSTALL} ${WRKSRC}/build/mupdf ${PREFIX}/bin/mupdf
.for f in ${EXECUTABLES}
	${INSTALL} ${WRKSRC}/build/$f ${PREFIX}/bin/mu_$f ;
.endfor

.if ${ARCH} == "sparc64"
BROKEN=		Does not install on sparc64
.endif

.include <bsd.port.mk>