- drop fontres.c and switch to upstream's standard method of embedding fonts; with gcc4 this is now able to build on arm without running out of RAM (this is fortunate because it avoids reworking fontres for changes to MuPDF).
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.26 2011/07/13 21:48:48 sthen Exp $
|
|
|
|
COMMENT = graphic library, pdf parser, viewer and utilities
|
|
|
|
V = 0.8.165
|
|
DISTNAME = mupdf-$V-source
|
|
PKGNAME = mupdf-$V
|
|
WRKDIST = ${WRKDIR}/mupdf-$V
|
|
|
|
CATEGORIES = textproc x11
|
|
|
|
HOMEPAGE = http://mupdf.com/
|
|
|
|
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# code: GPLv3. font maps: Adobe (redist ok, see headers). droid font: Apache.
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
WANTLIB = X11 Xext c freetype jbig2dec jpeg>=62 m openjpeg z
|
|
|
|
# http://git.ghostscript.com/?p=mupdf.git;a=summary
|
|
MASTER_SITES = ${HOMEPAGE}download/ \
|
|
${HOMEPAGE}download/archive/
|
|
|
|
RUN_DEPENDS = devel/desktop-file-utils
|
|
LIB_DEPENDS = graphics/jbig2dec \
|
|
graphics/jpeg \
|
|
graphics/openjpeg
|
|
|
|
USE_GMAKE = Yes
|
|
USE_GROFF = Yes
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
MAKE_ENV += CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=${CC} CXX=${CXX} \
|
|
MANDIR="${WRKINST}${PREFIX}/man/man1" build= verbose=1
|
|
|
|
FAKE_FLAGS = prefix=${WRKINST}${PREFIX} mandir=${WRKINST}${PREFIX}/man
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/debian/mupdf.pc
|
|
|
|
post-install:
|
|
# don't conflict with xpdf's pdfinfo
|
|
mv ${PREFIX}/bin/pdfinfo ${PREFIX}/bin/pdfinfo_mupdf
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ \
|
|
${PREFIX}/share/application-registry/ ${PREFIX}/share/pixmaps \
|
|
${PREFIX}/lib/pkgconfig/
|
|
${INSTALL_DATA} ${WRKSRC}/debian/mupdf.xpm ${PREFIX}/share/pixmaps/
|
|
${INSTALL_DATA} ${WRKSRC}/debian/mupdf.applications \
|
|
${PREFIX}/share/application-registry/
|
|
${INSTALL_DATA} ${WRKSRC}/debian/mupdf.desktop \
|
|
${PREFIX}/share/applications/
|
|
${INSTALL_DATA} ${WRKSRC}/debian/mupdf.pc \
|
|
${PREFIX}/lib/pkgconfig/mupdf.pc
|
|
|
|
.include <bsd.port.mk>
|