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

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

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 20313 2006-11-01 21:58:20Z blair@macports.org $
2PortSystem 1.0
3name         xpdf
4version      3.01
5revision     3
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  yves@opendarwin.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
32checksums    md5 e004c69c7dddef165d768b1362b44268
33
34depends_lib      lib:libX11.6:XFree86 lib:libfreetype.6:freetype \
35                     port:libpaper port:openmotif port:t1lib
36depends_run  path:${prefix}/share/ghostscript/fonts:ghostscript
37
38patchfiles      xpdf-3.01pl2.patch
39patch.pre_args  -p1
40post-patch {
41    cd ${worksrcpath}
42    reinplace "s|/usr/local|${prefix}|g" \
43        doc/sample-xpdfrc xpdf/GlobalParams.cc
44}
45
46configure.args  \
47    --with-x \
48    --mandir=${prefix}/share/man \
49    --with-appdef-dir=/etc/X11/app-defaults \
50    --with-Xp-library=${prefix}/lib \
51    --with-Xp-includes=${prefix}/include \
52    --with-Xt-library=${prefix}/lib \
53    --with-Xt-includes=${prefix}/include \
54    --with-Xm-library=${prefix}/lib \
55    --with-Xm-includes=${prefix}/include \
56    --with-t1-library=${prefix}/lib \
57    --with-t1-includes=${prefix}/include \
58    --with-libpaper-library=${prefix}/lib \
59    --with-libpaper-includes=${prefix}/include \
60    --with-freetype2-library=${prefix}/lib \
61    --with-freetype2-includes=${prefix}/include/freetype2 \
62    --enable-wordlist \
63    --enable-opi
64configure.env \
65    CXXFLAGS="-I${prefix}/include/freetype2 -I${prefix}/include" \
66    CFLAGS="-I/usr/X11R6/include" \
67    CPPFLAGS="-I/usr/X11R6/include" \
68    LDFLAGS="-lz"
69   
70variant a4 {
71    configure.args-append --enable-a4-paper
72}
73
74platform puredarwin {
75    depends_lib-delete port:openmotif
76    depends_lib-append port:lesstif
77    configure.args-delete \
78        --with-Xp-library=${prefix}/lib \
79        --with-Xp-includes=${prefix}/include \
80        --with-Xt-library=${prefix}/lib \
81        --with-Xt-includes=${prefix}/include \
82        --with-Xm-library=${prefix}/lib \
83        --with-Xm-includes=${prefix}/include
84}
85
86post-install {
87    ui_msg " \
88        Xpdf language support packages are also available at \
89        http://www.foolabs.com/xpdf/download.html"
90}       
91       
Note: See TracBrowser for help on using the repository browser.