summaryrefslogtreecommitdiff
path: root/print/mupdf/Makefile
blob: bd2fa3c89a7b16badff60497bf528780db867f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $NetBSD: Makefile,v 1.7 2011/01/31 17:44:30 drochner Exp $
#

DISTNAME=	mupdf-0.7
PKGREVISION=	1
CATEGORIES=	print
MASTER_SITES=	http://ccxvii.net/mupdf/download/ \
		http://ccxvii.net/mupdf/download/archive/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://ccxvii.net/mupdf/
COMMENT=	Lightweight PDF viewer and toolkit
LICENSE=	gnu-gpl-v3

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	pkg-config gmake

USE_LIBTOOL=	yes

INSTALLATION_DIRS+=	bin include lib/pkgconfig
INSTALL_MAKE_FLAGS+=	prefix=${DESTDIR}${PREFIX}
LDFLAGS=	-Wl,-rpath,${X11BASE}/lib
MAKE_FLAGS+=	LDFLAGS=${LDFLAGS:Q}

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 "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"