2012-04-12 09:31:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2012/04/12 13:31:01 sthen Exp $
|
2009-06-02 18:15:08 -04:00
|
|
|
|
|
|
|
COMMENT = graphic library, pdf parser, viewer and utilities
|
|
|
|
|
2011-09-05 09:24:39 -04:00
|
|
|
V = 0.9
|
2012-04-12 09:31:01 -04:00
|
|
|
REVISION = 0
|
2011-03-22 19:40:46 -04:00
|
|
|
DISTNAME = mupdf-$V-source
|
|
|
|
PKGNAME = mupdf-$V
|
|
|
|
WRKDIST = ${WRKDIR}/mupdf-$V
|
2009-06-02 18:15:08 -04:00
|
|
|
|
|
|
|
CATEGORIES = textproc x11
|
|
|
|
|
2010-03-31 09:06:47 -04:00
|
|
|
HOMEPAGE = http://mupdf.com/
|
2009-06-02 18:15:08 -04:00
|
|
|
|
|
|
|
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
2011-03-25 17:13:16 -04:00
|
|
|
# code: GPLv3. font maps: Adobe (redist ok, see headers). droid font: Apache.
|
2009-06-22 07:56:15 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2011-03-25 17:13:16 -04:00
|
|
|
WANTLIB = X11 Xext c freetype jbig2dec jpeg>=62 m openjpeg z
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2011-07-13 17:48:48 -04:00
|
|
|
# http://git.ghostscript.com/?p=mupdf.git;a=summary
|
2010-09-03 08:38:19 -04:00
|
|
|
MASTER_SITES = ${HOMEPAGE}download/ \
|
|
|
|
${HOMEPAGE}download/archive/
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2010-11-20 14:56:47 -05:00
|
|
|
RUN_DEPENDS = devel/desktop-file-utils
|
2011-03-25 17:13:16 -04:00
|
|
|
LIB_DEPENDS = graphics/jbig2dec \
|
|
|
|
graphics/jpeg \
|
2010-11-20 14:56:47 -05:00
|
|
|
graphics/openjpeg
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2010-06-03 15:38:34 -04:00
|
|
|
USE_GMAKE = Yes
|
|
|
|
NO_REGRESS = Yes
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2011-03-22 19:40:46 -04:00
|
|
|
MAKE_ENV += CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=${CC} CXX=${CXX} \
|
|
|
|
MANDIR="${WRKINST}${PREFIX}/man/man1" build= verbose=1
|
2009-07-12 15:40:11 -04:00
|
|
|
|
2011-07-13 17:48:48 -04:00
|
|
|
FAKE_FLAGS = prefix=${WRKINST}${PREFIX} mandir=${WRKINST}${PREFIX}/man
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2009-06-19 09:42:29 -04:00
|
|
|
pre-configure:
|
2010-06-03 15:38:34 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/debian/mupdf.pc
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2010-06-03 15:38:34 -04:00
|
|
|
post-install:
|
2011-07-13 17:48:48 -04:00
|
|
|
# don't conflict with xpdf's pdfinfo
|
2010-06-03 15:38:34 -04:00
|
|
|
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
|
2009-06-02 18:15:08 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|