blob: a908fe75df6b66959f99d3603c8bcc0f7b7a4daf (
plain) (
blame)
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
70
71
72
73
74
75
76
77
78
79
|
# New ports collection makefile for: xpdf
# Date created: 02 Feb 1996
# Whom: chuckr@glue.umd.edu
#
# $FreeBSD$
#
PORTNAME= xpdf
PORTVERSION= 3.00
PORTREVISION= 6
CATEGORIES= graphics print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= support/xpdf
.if defined(WANT_ANTIKICK)
PATCH_SITES= http://www.cs.cmu.edu/~dst/Adobe/Gallery/XPDF/anti-kick/
PATCHFILES= anti.diff
#.else
#PATCH_SITES= http://vzzbx.xs4all.nl/files/ \
# http://www.cs.cmu.edu/~dst/Adobe/Gallery/
#PATCHFILES= xpdf-ro-remove.patch
.endif
PATCH_DIST_STRIP= -p1
PATCH_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_TEX_CTAN}
PATCH_SITE_SUBDIR= support/xpdf
PATCHFILES= xpdf-2.01-patch1
MAINTAINER= nork@FreeBSD.org
COMMENT= Display PDF files, and convert them to other formats
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \
freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts
USE_X_PREFIX= yes
USE_MOTIF= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 259
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-gzip --enable-opi --with-x \
--with-t1-library="${LOCALBASE}/lib" \
--with-t1-includes="${LOCALBASE}/include" \
--with-freetype2-library="${LOCALBASE}/lib" \
--with-freetype2-includes="${LOCALBASE}/include/freetype2"
.if defined(A4)
CONFIGURE_ARGS+= --enable-a4-paper
.endif
.if defined(WANT_ANTIKICK)
CONFIGURE_ARGS+= --enable-antikick
.endif
MAN1= pdffonts.1 \
pdfimages.1 \
pdfinfo.1 \
pdftoppm.1 \
pdftops.1 \
pdftotext.1 \
xpdf.1
MAN5= xpdfrc.5
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ANNOUNCE CHANGES INSTALL README misc/hello.pdf
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
.if ${ARCH} == "amd64"
CFLAGS+= -static
.endif
|