freebsd-ports/graphics/mupdf/Makefile
Tong LIU 46a8ae52c0 - Update to r937
- Fix previous pre.mk ordering bug by converting to new style options.mk.

PR:	ports/144022
Submitted by:	Martin Dieringer <martin.dieringer@gmx.de>

Feature safe:	yes
2010-02-22 11:41:10 +00:00

50 lines
1.1 KiB
Makefile

# 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>