source: trunk/dports/graphics/xpdf/Portfile @ 21436

Last change on this file since 21436 was 21436, checked in by takanori@…, 13 years ago

Security fix for CVE-2007-0104.
Patch obtained from: KDE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 21436 2007-01-25 06:29:27Z takanori@macports.org $
2PortSystem 1.0
3name         xpdf
4version      3.01
5revision     5
6description  Xpdf is a viewer for PDF files.
7long_description \
8    Xpdf is a viewer for Portable Document Format \
9    (PDF) files.  These are also sometimes also called \
10    Acrobat files, from the name of Adobes PDF software.
11
12maintainers    nomaintainer@macports.org
13categories   graphics print
14platforms    darwin
15homepage     http://www.foolabs.com/xpdf/
16
17master_sites \
18    ftp://ftp.foolabs.com/pub/xpdf/ \
19    ftp://ftp.funet.fi/pub/TeX/CTAN/support/xpdf/ \
20    ftp://ctan.unsw.edu.au/tex-archive/support/xpdf/ \
21    ftp://ftp.tex.ac.uk/tex-archive/support/xpdf/ \
22    ftp://ftp.kddlabs.co.jp/CTAN/support/xpdf/ \
23    ftp://ftp.meiji.ac.jp/pub/TeX/CTAN/support/xpdf/ \
24    ftp://ctan.tug.org/tex-archive/support/xpdf/ \
25    ftp://ftp.dante.de/tex-archive/support/xpdf/ \
26    ftp://gd.tuwien.ac.at/publishing/tex/CTAN/support/xpdf/ \
27    ftp://ftp.ntnu.no/pub/tex/CTAN/support/xpdf/ \
28    ftp://www.dnsbalance.ring.gr.jp/pub/text/CTAN/support/xpdf/ \
29    http://www.t.ring.gr.jp/archives/text/CTAN/support/xpdf/ \
30    ftp://ftp.chg.ru/pub/TeX/CTAN/support/xpdf/ \
31    kde:security_patches/:kdesec
32distfiles    ${distname}${extract.suffix} \
33             post-3.5.5-kdegraphics-CVE-2007-0104.diff:kdesec
34checksums    ${distname}${extract.suffix} md5 e004c69c7dddef165d768b1362b44268 \
35             post-3.5.5-kdegraphics-CVE-2007-0104.diff md5 a690ce46117257609c2b43485ea4d0d7
36
37depends_lib      lib:libX11.6:XFree86 lib:libfreetype.6:freetype \
38                     port:libpaper port:openmotif port:t1lib
39depends_run  path:${prefix}/share/ghostscript/fonts:ghostscript
40
41patchfiles      xpdf-3.01pl2.patch
42patch.pre_args  -p1
43post-patch {
44    cd ${worksrcpath}
45    reinplace "s|/usr/local|${prefix}|g" \
46        doc/sample-xpdfrc xpdf/GlobalParams.cc
47    system "patch -p2 < ${distpath}/post-3.5.5-kdegraphics-CVE-2007-0104.diff"
48}
49
50configure.args  \
51    --with-x \
52    --mandir=${prefix}/share/man \
53    --with-appdef-dir=${prefix}/etc/X11/app-defaults \
54    --with-Xp-library=${prefix}/lib \
55    --with-Xp-includes=${prefix}/include \
56    --with-Xt-library=${prefix}/lib \
57    --with-Xt-includes=${prefix}/include \
58    --with-Xm-library=${prefix}/lib \
59    --with-Xm-includes=${prefix}/include \
60    --with-t1-library=${prefix}/lib \
61    --with-t1-includes=${prefix}/include \
62    --with-libpaper-library=${prefix}/lib \
63    --with-libpaper-includes=${prefix}/include \
64    --with-freetype2-library=${prefix}/lib \
65    --with-freetype2-includes=${prefix}/include/freetype2 \
66    --enable-wordlist \
67    --enable-opi
68configure.env \
69    CXXFLAGS="-I${prefix}/include/freetype2 -I${prefix}/include" \
70    CFLAGS="-I/usr/X11R6/include" \
71    CPPFLAGS="-I/usr/X11R6/include" \
72    LDFLAGS="-lz"
73   
74variant a4 {
75    configure.args-append --enable-a4-paper
76}
77
78platform puredarwin {
79    depends_lib-delete port:openmotif
80    depends_lib-append port:lesstif
81    configure.args-delete \
82        --with-Xp-library=${prefix}/lib \
83        --with-Xp-includes=${prefix}/include \
84        --with-Xt-library=${prefix}/lib \
85        --with-Xt-includes=${prefix}/include \
86        --with-Xm-library=${prefix}/lib \
87        --with-Xm-includes=${prefix}/include
88}
89
90post-install {
91    ui_msg " \
92        Xpdf language support packages are also available at \
93        http://www.foolabs.com/xpdf/download.html"
94}       
95       
Note: See TracBrowser for help on using the repository browser.