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

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

bump to 3.02 and add a variant to fix ticket:10705

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