212630e921
pkgsrc changes: - Include more bl3 in buildlink3.mk to reflect current reality - Bump BUILDLINK_A[BP]I_DEPENDS.mupdf to 1.10a (packages that depends on mupdf seems to not run without being rebuilded despite a bug fix release) Changes: MuPDF 1.10a (2016-11-28) ------------------------ Version 1.10a is a bug fix release. If you downloaded the windows release for 1.10 you should also upgrade, since the zip archive accidentally included the RC2 binaries instead of the final version. A bug with mutool and saving PDF files using the 'ascii' option has been fixed. The iOS build issues have been fixed.
58 lines
1.8 KiB
Makefile
58 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.42 2016/12/09 08:19:31 leot Exp $
|
|
|
|
DISTNAME= mupdf-1.10a-source
|
|
PKGNAME= ${DISTNAME:S/-source//}
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://mupdf.com/downloads/archive/
|
|
|
|
MAINTAINER= leot@NetBSD.org
|
|
HOMEPAGE= http://mupdf.com/
|
|
COMMENT= Lightweight PDF, XPS and E-book 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+= -DJBIG_NO_MEMENTO
|
|
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/glfw \
|
|
${WRKSRC}/thirdparty/harfbuzz \
|
|
${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 "../../fonts/harfbuzz/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"
|