blob: 85d725c42a44323b290a528e475fae20d759a1da (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $NetBSD: Makefile,v 1.32 2004/11/25 13:20:36 dillo Exp $
DISTNAME= xpdf-3.00
PKGNAME= ${DISTNAME}.1
CATEGORIES= print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_SUNSITE:=apps/graphics/viewers/X/} \
http://gd.tuwien.ac.at/publishing/xpdf/
PATCHFILES= xpdf-3.00pl1.patch
PATCH_SITES= ${MASTER_SITES}
PATCH_DIST_ARGS=-d ${WRKSRC}/xpdf --quiet
MAINTAINER= dillo@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_BUILDLINK3= YES
USE_PKGINSTALL= YES
USE_X11= YES
USE_LANGUAGES= c c++
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-freetype2-includes=${BUILDLINK_PREFIX.freetype2}/include/freetype2
CONFIGURE_ARGS+= --with-t1-includes=${BUILDLINK_PREFIX.t1lib}/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
EGDIR= ${PREFIX}/share/examples/xpdf
CONF_FILES= ${EGDIR}/xpdfrc ${PKG_SYSCONFDIR}/xpdfrc
post-patch:
@cd ${WRKSRC}/doc && \
for f in *.1 *.5; do \
${MV} $${f} $${f}.orig; \
${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \
done
# Used by supplemental packages.
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/xpdf
.include "../../fonts/t1lib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-*-mipsel)
CXXFLAGS:= ${CXXFLAGS:N-O[0-9]*}
.endif
|