2009-06-22 07:56:15 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2009/06/22 11:56:15 sthen Exp $
|
2009-06-02 18:15:08 -04:00
|
|
|
|
|
|
|
COMMENT = graphic library, pdf parser, viewer and utilities
|
|
|
|
|
2009-06-22 07:56:15 -04:00
|
|
|
DISTNAME = fitz-0.4
|
|
|
|
PKGNAME = ${DISTNAME:S/fitz/mupdf/}
|
2009-06-02 18:15:08 -04:00
|
|
|
|
|
|
|
CATEGORIES = textproc x11
|
|
|
|
|
|
|
|
HOMEPAGE = http://ccxvii.net/fitz/
|
|
|
|
|
|
|
|
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
2009-06-22 07:56:15 -04:00
|
|
|
# code: GPLv3. font maps: Adobe (redist ok, see headers). droid: Apache.
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2009-06-02 18:15:08 -04:00
|
|
|
|
|
|
|
WANTLIB = X11 Xext c freetype m z
|
|
|
|
|
|
|
|
# from darcs checkout
|
|
|
|
MASTER_SITES = http://spacehopper.org/mirrors/
|
|
|
|
|
|
|
|
BUILD_DEPENDS = ::devel/jam
|
|
|
|
|
|
|
|
LIB_DEPENDS = jasper::graphics/jasper \
|
|
|
|
jpeg.>=62::graphics/jpeg
|
|
|
|
|
|
|
|
USE_X11 = Yes
|
|
|
|
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
|
|
|
JAMDEBUG = -d x # display command-lines
|
|
|
|
JAMDEBUG += -q # die quickly on build failure
|
|
|
|
MAKE_ENV += CC=${CC} CXX=${CXX}
|
|
|
|
|
|
|
|
JAMFLAGS = \
|
|
|
|
-sALL_LOCATE_TARGET=${WRKBUILD} \
|
|
|
|
-sBUILD= \
|
|
|
|
-sHAVE_JASPER=yes \
|
|
|
|
-sOPTIM="${CFLAGS}" \
|
|
|
|
-sOS=LINUX \
|
|
|
|
-sTHIRDPARTYINC="`freetype-config --cflags` -I${LOCALBASE}/include" \
|
|
|
|
-sTHIRDPARTYLIB="`freetype-config --libs` -L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
SEPARATE_BUILD = concurrent
|
|
|
|
|
2009-06-19 09:42:29 -04:00
|
|
|
pre-configure:
|
|
|
|
cp ${FILESDIR}/fontres.c ${WRKSRC}/
|
|
|
|
|
2009-06-02 18:15:08 -04:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} jam ${JAMDEBUG} ${JAMFLAGS}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/mupdf.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/mupdf ${PREFIX}/bin
|
2009-06-18 20:51:49 -04:00
|
|
|
.for x in pdfclean pdfdraw pdfextract pdfinfo pdfshow
|
2009-06-02 18:15:08 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/$x ${PREFIX}/bin/mu_$x
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|