|
Lines 6-48
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= xpdf |
8 |
PORTNAME= xpdf |
| 9 |
PORTVERSION= 3.02 |
9 |
PORTVERSION= 3.03 |
| 10 |
PORTREVISION= 16 |
|
|
| 11 |
CATEGORIES= graphics print |
10 |
CATEGORIES= graphics print |
| 12 |
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \ |
11 |
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \ |
| 13 |
${MASTER_SITE_TEX_CTAN} |
12 |
${MASTER_SITE_TEX_CTAN} |
| 14 |
MASTER_SITE_SUBDIR= support/xpdf |
13 |
MASTER_SITE_SUBDIR= support/xpdf |
| 15 |
|
14 |
|
| 16 |
PATCH_SITES= ftp://ftp.foolabs.com/pub/xpdf/ |
|
|
| 17 |
PATCHFILES= xpdf-3.02pl1.patch xpdf-3.02pl2.patch xpdf-3.02pl3.patch \ |
| 18 |
xpdf-3.02pl4.patch xpdf-3.02pl5.patch |
| 19 |
PATCH_DIST_STRIP= -p1 |
| 20 |
|
| 21 |
MAINTAINER= araujo@FreeBSD.org |
15 |
MAINTAINER= araujo@FreeBSD.org |
| 22 |
COMMENT= Display PDF files, and convert them to other formats |
16 |
COMMENT= Display PDF files, and convert them to other formats |
| 23 |
|
17 |
|
| 24 |
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 |
18 |
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 |
| 25 |
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \ |
19 |
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 |
| 26 |
freetype.9:${PORTSDIR}/print/freetype2 |
|
|
| 27 |
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts |
| 28 |
|
20 |
|
| 29 |
CONFLICTS= poppler-utils-0.* |
21 |
CONFLICTS= poppler-utils-[0-9]* |
| 30 |
|
22 |
|
|
|
23 |
GNU_CONFIGURE= yes |
| 31 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
| 32 |
USE_AUTOTOOLS= autoconf |
|
|
| 33 |
CPPFLAGS+= -I${LOCALBASE}/include |
25 |
CPPFLAGS+= -I${LOCALBASE}/include |
| 34 |
LDFLAGS+= -L${LOCALBASE}/lib |
26 |
LDFLAGS+= -L${LOCALBASE}/lib |
| 35 |
CONFIGURE_ARGS= --enable-opi \ |
27 |
CONFIGURE_ARGS= --enable-opi \ |
| 36 |
--with-t1-library="${LOCALBASE}/lib" \ |
|
|
| 37 |
--with-t1-includes="${LOCALBASE}/include" \ |
| 38 |
--with-freetype2-library="${LOCALBASE}/lib" \ |
28 |
--with-freetype2-library="${LOCALBASE}/lib" \ |
| 39 |
--with-freetype2-includes="${LOCALBASE}/include/freetype2" |
29 |
--with-freetype2-includes="${LOCALBASE}/include/freetype2/" |
| 40 |
|
30 |
|
| 41 |
OPTIONS= LIBPAPER "Enable libpaper" off \ |
31 |
OPTIONS= LIBPAPER "Enable libpaper" off \ |
| 42 |
DRAW "Enable drawing annotations" on \ |
32 |
TYPE1 "Ghostscript type1 fonts" on \ |
| 43 |
X11 "Enable X11 support" on \ |
33 |
X11 "Enable X11 support" on \ |
| 44 |
|
34 |
|
| 45 |
.include <bsd.port.pre.mk> |
35 |
.include <bsd.port.options.mk> |
|
|
36 |
|
| 37 |
.if defined(WITH_TYPE1) |
| 38 |
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts |
| 39 |
.endif |
| 46 |
|
40 |
|
| 47 |
.if defined(WITH_LIBPAPER) |
41 |
.if defined(WITH_LIBPAPER) |
| 48 |
LIB_DEPENDS+= paper.2:${PORTSDIR}/print/libpaper |
42 |
LIB_DEPENDS+= paper.2:${PORTSDIR}/print/libpaper |
|
Lines 64-71
Link Here
|
| 64 |
pdftotext.1 |
58 |
pdftotext.1 |
| 65 |
MAN5= xpdfrc.5 |
59 |
MAN5= xpdfrc.5 |
| 66 |
|
60 |
|
| 67 |
CONFLICTS= poppler-utils-[0-9]* |
|
|
| 68 |
|
| 69 |
.if defined(WITHOUT_X11) |
61 |
.if defined(WITHOUT_X11) |
| 70 |
PKGNAMESUFFIX+= -nox11 |
62 |
PKGNAMESUFFIX+= -nox11 |
| 71 |
CONFIGURE_ARGS+= --without-x |
63 |
CONFIGURE_ARGS+= --without-x |
|
Lines 77-87
Link Here
|
| 77 |
PLIST_SUB+= X11="" |
69 |
PLIST_SUB+= X11="" |
| 78 |
.endif |
70 |
.endif |
| 79 |
|
71 |
|
| 80 |
.if defined(WITH_DRAW) |
|
|
| 81 |
# add support for adding/deleting drawing annotations in PDF files |
| 82 |
PATCH_SITES+= http://info.iet.unipi.it/~luigi/FreeBSD/ |
| 83 |
PATCHFILES+= patch-zz-xpdf-annot.20080728a |
| 84 |
|
| 85 |
post-patch: |
72 |
post-patch: |
| 86 |
${REINPLACE_CMD} -e 's|undef USE_COMBO_BOX|define USE_COMBO_BOX 1|' \ |
73 |
${REINPLACE_CMD} -e 's|undef USE_COMBO_BOX|define USE_COMBO_BOX 1|' \ |
| 87 |
${WRKSRC}/xpdf/XPDFViewer.h |
74 |
${WRKSRC}/xpdf/XPDFViewer.h |
|
Lines 90-98
Link Here
|
| 90 |
post-install: |
77 |
post-install: |
| 91 |
.if !defined(NOPORTDOCS) |
78 |
.if !defined(NOPORTDOCS) |
| 92 |
@${MKDIR} ${DOCSDIR} |
79 |
@${MKDIR} ${DOCSDIR} |
| 93 |
.for file in ANNOUNCE CHANGES INSTALL README misc/hello.pdf |
80 |
.for file in ANNOUNCE CHANGES README misc/hello.pdf |
| 94 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
81 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
| 95 |
.endfor |
82 |
.endfor |
| 96 |
.endif |
83 |
.endif |
| 97 |
|
84 |
|
| 98 |
.include <bsd.port.post.mk> |
85 |
.include <bsd.port.mk> |