blob: 566631942ed6e7edfad355343cb2d97ee67b0740 (
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
40
41
42
43
|
# $NetBSD: Makefile,v 1.7 2002/04/10 12:17:39 joda Exp $
#
DISTNAME= xpdf-1.00
PKGREVISION= 1 # because of switch to freetype2
CATEGORIES= print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_SUNSITE:=apps/graphics/viewers/X/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.foolabs.com/xpdf/
COMMENT= Display tool for PDF files
DEPENDS+= ghostscript-fonts-[0-9]*:../../fonts/ghostscript-fonts
CONFLICTS= xpdf-crypto-[0-9]*
USE_BUILDLINK_ONLY= YES
USE_X11BASE= YES
USE_FREETYPE2= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-freetype2-includes=${BUILDLINK_DIR}/include/freetype2
CONFIGURE_ARGS+= --with-t1-includes=${BUILDLINK_DIR}/include
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
MAKE_ENV+= SED="${SED}" ECHO="${ECHO}"
.include "../../mk/bsd.prefs.mk"
.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
CONFIGURE_ARGS+= --enable-a4-paper
.endif
post-install:
${SED} -e "s|@@LOCALBASE@@|${LOCALBASE}|g" \
${FILESDIR}/xpdf-app-defaults \
> ${X11PREFIX}/lib/X11/app-defaults/Xpdf
.include "../../graphics/freetype2/buildlink.mk"
.include "../../graphics/xpm/buildlink.mk"
.include "../../textproc/t1lib/buildlink.mk"
.include "../../mk/x11.buildlink.mk"
.include "../../mk/bsd.pkg.mk"
|