2013-04-07 07:35:16 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.40 2013/04/07 11:35:16 sthen Exp $
|
2009-06-02 18:15:08 -04:00
|
|
|
|
|
|
|
COMMENT = graphic library, pdf parser, viewer and utilities
|
|
|
|
|
2013-03-20 21:26:03 -04:00
|
|
|
V = 1.2
|
2011-03-22 19:40:46 -04:00
|
|
|
DISTNAME = mupdf-$V-source
|
2013-03-20 21:26:03 -04:00
|
|
|
EXTRACT_SUFX = .zip
|
2012-08-17 09:30:16 -04:00
|
|
|
PKGNAME = mupdf-${V:S/-rc/rc/}
|
2013-04-07 05:54:31 -04:00
|
|
|
REVISION = 0
|
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>
|
|
|
|
|
2013-04-07 07:35:16 -04:00
|
|
|
# code: Affero v3 (UGH!)
|
|
|
|
# font maps: Adobe (redist ok, see headers).
|
|
|
|
# droid font: Apache.
|
2009-06-22 07:56:15 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = 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 \
|
2012-04-25 09:55:11 -04:00
|
|
|
graphics/openjpeg>=1.5.0
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2010-06-03 15:38:34 -04:00
|
|
|
USE_GMAKE = Yes
|
2013-03-11 07:35:43 -04:00
|
|
|
NO_TEST = Yes
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2012-09-30 06:22:54 -04:00
|
|
|
.if ${MACHINE_ARCH} == "hppa"
|
|
|
|
CFLAGS += -ffunction-sections
|
|
|
|
.endif
|
|
|
|
|
2012-04-25 09:55:11 -04:00
|
|
|
# -I flags prepend mupdf's own, to allow building with previous ver installed
|
|
|
|
MAKE_ENV += CFLAGS="${CFLAGS} -I$(WRKSRC)/fitz -I$(WRKSRC)/pdf -I$(WRKSRC)/xps" \
|
2013-03-20 21:26:03 -04:00
|
|
|
LDFLAGS="${LDFLAGS}" CC=${CC} CXX=${CXX} build= verbose=1
|
2009-07-12 15:40:11 -04:00
|
|
|
|
2013-03-20 21:26:03 -04:00
|
|
|
FAKE_FLAGS = prefix=${PREFIX} mandir=${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
|
2013-03-20 21:26:03 -04:00
|
|
|
rm -rf ${WRKSRC}/thirdparty
|
2009-06-02 18:15:08 -04:00
|
|
|
|
2010-06-03 15:38:34 -04:00
|
|
|
post-install:
|
|
|
|
${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>
|