diff options
Diffstat (limited to 'print/mupdf/Makefile')
-rw-r--r-- | print/mupdf/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/print/mupdf/Makefile b/print/mupdf/Makefile new file mode 100644 index 00000000000..f3d1409db7f --- /dev/null +++ b/print/mupdf/Makefile @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/02/18 10:07:32 wiz Exp $ +# + +DISTNAME= mupdf-r937 +PKGNAME= ${DISTNAME:S/-r/-0.0./} +CATEGORIES= print +MASTER_SITES= http://ccxvii.net/mupdf/download/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://ccxvii.net/mupdf/ +COMMENT= Lightweight PDF viewer and toolkit +LICENSE= gnu-gpl-v3 + +BUILD_DEPENDS+= jam-[0-9]*:../../devel/jam + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= pkg-config + +WRKSRC= ${WRKDIR}/mupdf +MAKE_ENV+= OS=pkgsrc +MAKE_ENV+= FT=${BUILDLINK_PREFIX.freetype2} + +INSTALLATION_DIRS+= bin include lib/pkgconfig share/doc/mupdf + +do-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} jam '-sBUILD=release' + sed -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/mupdf.pc > ${WRKSRC}/mupdf.pc + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/build/*/mupdf ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/fitz/fitz.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/fitz/fitz_base.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/fitz/fitz_draw.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/fitz/fitz_stream.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/fitz/fitz_tree.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/mupdf/mupdf.h ${DESTDIR}${PREFIX}/include + ${INSTALL_LIB} ${WRKSRC}/build/*/libmupdf.a ${DESTDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/mupdf.pc ${DESTDIR}${PREFIX}/lib/pkgconfig + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/mupdf + +.include "../../devel/zlib/buildlink3.mk" +.include "../../graphics/freetype2/buildlink3.mk" +.include "../../graphics/jpeg/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" |