add no_cjk FLAVOR giving a smaller binary for systems where disk space

is at a premium. (memory use of the two is pretty similar).
This commit is contained in:
sthen 2009-07-12 19:40:11 +00:00
parent d2c08f2888
commit 7c6ba86a56
2 changed files with 12 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.4 2009/06/22 11:56:15 sthen Exp $
# $OpenBSD: Makefile,v 1.5 2009/07/12 19:40:11 sthen Exp $
COMMENT = graphic library, pdf parser, viewer and utilities
DISTNAME = fitz-0.4
PKGNAME = ${DISTNAME:S/fitz/mupdf/}
PKGNAME = ${DISTNAME:S/fitz/mupdf/}p0
CATEGORIES = textproc x11
@ -44,6 +44,13 @@ JAMFLAGS = \
-sTHIRDPARTYINC="`freetype-config --cflags` -I${LOCALBASE}/include" \
-sTHIRDPARTYLIB="`freetype-config --libs` -L${LOCALBASE}/lib"
FLAVORS += no_cjk
FLAVOR ?=
.if ${FLAVOR:L:Mno_cjk}
JAMFLAGS += -sDEFINES=NOCJK
.endif
SEPARATE_BUILD = concurrent
pre-configure:

View File

@ -21,3 +21,6 @@ merging and extracting pages, and examining the internal object
structure of a PDF file.
The mupdf binary (aka pdfview) is a bare bones PDF viewer.
The optional no_cjk flavor disables CJK font metrics, giving a
smaller binary.