1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/graphics/mupdf/Makefile
Dmitry Marakasov 1b34cf260c MuPDF is a lightweight PDF viewer and toolkit written in portable C.
The renderer in MuPDF is tailored for high quality anti-aliased graphics. It
renders text with metrics and spacing accurate to within fractions of a
pixel for the highest fidelity in reproducing the look of a printed page on
screen.

MuPDF has a small footprint. A binary that includes the standard Roman fonts
is only one megabyte. A build with full CJK support (including an Asian
font) is approximately five megabytes.

MuPDF has support for all non-interactive PDF 1.7 features, and the toolkit
provides a simple API for accessing the internal structures of the PDF
document. Example code for navigating interactive links and bookmarks,
encrypting PDF files, extracting fonts, images, and searchable text, and
rendering pages to image files is provided.

WWW: http://ccxvii.net/mupdf/

PR:		137559
Submitted by:	Martin Dieringer <martin.dieringer@gmx.de>
2009-11-11 16:38:48 +00:00

46 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
DISTVERSION= 2009-07-07
CATEGORIES= graphics
MASTER_SITES= http://ccxvii.net/mupdf/download/
DISTNAME= ${PORTNAME}-${DISTVERSION}-source
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.10:${PORTSDIR}/graphics/jpeg
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
.include <bsd.port.mk>