blob: 99be5fc77b7e1b061d06f6f3002bf3a0fe95cc0f (
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
64
65
66
67
68
69
|
# $FreeBSD$
PORTNAME= xpdf
PORTVERSION= 3.04
PORTREVISION= 7
CATEGORIES= graphics print
MASTER_SITES= http://mirrors.rit.edu/zi/ \
ftp://ftp.foolabs.com/pub/xpdf/ \
TEX_CTAN/support/xpdf \
http://komquats.com/distfiles/
MAINTAINER= cy@FreeBSD.org
COMMENT= Display PDF files and convert them to other formats
LICENSE= GPLv2
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libpng.so:graphics/png
GNU_CONFIGURE= yes
USES= gmake cpe
CPE_VENDOR= foolabs
CFLAGS+= -I${LOCALBASE}/include -O0
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-opi \
--with-freetype2-library="${LOCALBASE}/lib" \
--with-freetype2-includes="${LOCALBASE}/include/freetype2" \
--bindir="${PREFIX}/libexec/xpdf" \
--mandir="${PREFIX}/share/xpdf/man"
MANPREFIX= ${PREFIX}/share/xpdf
OPTIONS_DEFINE= LIBPAPER TYPE1 X11 DOCS
LIBPAPER_DESC= Enable libpaper
TYPE1_DESC= Ghostscript type1 fonts
OPTIONS_DEFAULT= TYPE1 X11
OPTIONS_SUB= yes
SUB_FILES= xpdf-man.conf
TYPE1_RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:print/gsfonts
LIBPAPER_LIB_DEPENDS= libpaper.so:print/libpaper
LIBPAPER_CONFIGURE_ON=--with-libpaper-library="${LOCALBASE}/lib" \
--with-libpaper-includes="${LOCALBASE}/include"
LIBPAPER_CONFIGURE_OFF=--without-libpaper-library
.if defined(A4)
CONFIGURE_ARGS+= --enable-a4-paper
.endif
X11_CONFIGURE_WITH= x
X11_USES= motif
post-patch:
${REINPLACE_CMD} -e 's|undef USE_COMBO_BOX|define USE_COMBO_BOX 1|' \
${WRKSRC}/xpdf/XPDFViewer.h
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ANNOUNCE CHANGES README misc/hello.pdf
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
${LN} -sf ${PREFIX}/libexec/xpdf/xpdf ${STAGEDIR}${PREFIX}/bin/xpdf
${INSTALL_DATA} ${WRKDIR}/xpdf-man.conf \
${STAGEDIR}${PREFIX}/etc/man.d/xpdf.conf
.include <bsd.port.mk>
|