mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
606c824f56
- Update MASTER_SITES PR: 145913 Submitted by: Martin Dieringer <martin.dieringer@gmx.de> (maintainer)
51 lines
1.1 KiB
Makefile
51 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= r940
|
|
PORTEPOCH= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.mupdf.com/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>
|