pkgsrc/print/mupdf/Makefile
wiz 45e86508b6 Update to 1.6:
List of changes in MuPDF 1.6

* Features:
	* Color detection device (mudraw -T).
	* Sepia mode full-page color tinting in X11 and win32 viewer (keybinding: shift-C).
	* Re-implement printf and strtod due to portability issue with locales and number formatting.
	* Add 'gsview' project: a Windows Modern UI viewer.
	* Improve XML parser interface.
* Bug fixes:
	* CBZ page ordering
	* ZIP64 support
	* iOS and Android bug fixes
	* Miscellaneous minor fixes
2014-10-05 15:19:18 +00:00

54 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.28 2014/10/05 15:19:18 wiz Exp $
DISTNAME= mupdf-1.6-source
PKGNAME= ${DISTNAME:S/-source//}
CATEGORIES= print
MASTER_SITES= http://mupdf.com/downloads/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mupdf.com/
COMMENT= Lightweight PDF viewer and toolkit
LICENSE= gnu-agpl-v3
USE_LANGUAGES+= c99
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
INSTALLATION_DIRS+= bin include lib/pkgconfig
INSTALL_MAKE_FLAGS+= prefix=${PREFIX}
INSTALL_MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
LDFLAGS= ${COMPILER_RPATH_FLAG}${X11BASE}/lib
MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
MAKE_FLAGS+= XCFLAGS=${CFLAGS:Q}
MAKE_FLAGS+= build=release
CFLAGS.SunOS+= -D_XOPEN_SOURCE=600
.include "options.mk"
# Remove thirdparty directory in order to use the libraries provided by pkgsrc
# mujs directory is an exception and should not be removed (MuJS is the
# default Javascript interpreter for mupdf).
post-extract:
${RM} -fr \
${WRKSRC}/thirdparty/curl \
${WRKSRC}/thirdparty/freetype \
${WRKSRC}/thirdparty/jbig2dec \
${WRKSRC}/thirdparty/jpeg \
${WRKSRC}/thirdparty/openjpeg \
${WRKSRC}/thirdparty/zlib
post-build:
sed -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/mupdf.pc > ${WRKSRC}/mupdf.pc
post-install:
${INSTALL_DATA} ${WRKSRC}/mupdf.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/jbig2dec/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/openjpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"