Ignore:
Timestamp:
Sep 16, 2005, 10:05:26 PM (14 years ago)
Author:
yves
Message:

I'm taking this port, fixing the fonts problem and feeling quite satisfied
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/xpdf/Portfile

    r14070 r14134  
    1 # $Id: Portfile,v 1.13 2005/09/13 06:57:48 olegb Exp $
     1# $Id: Portfile,v 1.14 2005/09/16 22:05:26 yves Exp $
    22PortSystem 1.0
    3 name            xpdf
    4 version         3.01
    5 description     Xpdf is a viewer for PDF files.
    6 long_description        Xpdf is a viewer for Portable Document Format \
    7                         (PDF) files.  These are also sometimes also called \
    8                         Acrobat files, from the name of Adobes PDF \
    9                         software.
    10 maintainers     darwinports@opendarwin.org
    11 categories      graphics print
    12 platforms       darwin
    13 homepage        http://www.foolabs.com/xpdf/
    14 master_sites    ftp://ftp.foolabs.com/pub/xpdf/ \
    15                 ftp://ftp.funet.fi/pub/TeX/CTAN/support/xpdf/ \
    16                 ftp://ctan.unsw.edu.au/tex-archive/support/xpdf/ \
    17                 ftp://ftp.tex.ac.uk/tex-archive/support/xpdf/ \
    18                 ftp://ftp.kddlabs.co.jp/CTAN/support/xpdf/ \
    19                 ftp://ftp.meiji.ac.jp/pub/TeX/CTAN/support/xpdf/ \
    20                 ftp://ctan.tug.org/tex-archive/support/xpdf/ \
    21                 ftp://ftp.dante.de/tex-archive/support/xpdf/ \
    22                 ftp://gd.tuwien.ac.at/publishing/tex/CTAN/support/xpdf/ \
    23                 ftp://ftp.ntnu.no/pub/tex/CTAN/support/xpdf/ \
    24                 ftp://www.dnsbalance.ring.gr.jp/pub/text/CTAN/support/xpdf/ \
    25                 http://www.t.ring.gr.jp/archives/text/CTAN/support/xpdf/ \
    26                 ftp://ftp.chg.ru/pub/TeX/CTAN/support/xpdf/
    27 checksums       md5 e004c69c7dddef165d768b1362b44268
    28 distname        xpdf-3.01
    29 depends_lib     lib:libX11.6:XFree86 lib:libXm.4:openmotif lib:libt1.5:t1lib \
    30                 lib:libfreetype.6:freetype lib:libpaper:libpaper
    31 configure.args  --with-x --mandir=${prefix}/share/man \
    32                 --with-t1-library=${prefix}/lib \
    33                 --with-t1-includes=${prefix}/include \
    34                 --with-libpaper-library=${prefix}/lib \
    35                 --with-libpaper-includes=${prefix}/include \
    36                 --with-freetype2-library=/usr/X11R6/lib \
    37                 --with-freetype2-includes=/usr/X11R6/include/freetype2
    38 configure.env   CXXFLAGS="-I/usr/X11R6/include/freetype2 -I${prefix}/include" \
    39                 CFLAGS="-I/usr/X11R6/include" \
    40                 CPPFLAGS="-I/usr/X11R6/include" \
    41                 LDFLAGS="-lz"
    42 variant a4 {
    43         configure.args-append --enable-a4-paper
     3name         xpdf
     4version      3.01
     5revision     1
     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
     38patch {
     39    cd ${worksrcpath}
     40    reinplace "s|/usr/local|${prefix}|g" \
     41        doc/sample-xpdfrc xpdf/GlobalParams.cc
    4442}
    4543
    46 variant puredarwin {
    47                 depends_lib-delete lib:libXm.4:openmotif
    48                 depends_lib-append lib:libXm.2:lesstif
     44configure.args  \
     45    --with-x \
     46    --mandir=${prefix}/share/man \
     47    --with-appdef-dir=/etc/X11/app-defaults \
     48    --with-t1-library=${prefix}/lib \
     49    --with-t1-includes=${prefix}/include \
     50    --with-libpaper-library=${prefix}/lib \
     51    --with-libpaper-includes=${prefix}/include \
     52    --with-freetype2-library=${prefix}/lib \
     53    --with-freetype2-includes=${prefix}/include/freetype2 \
     54    --enable-wordlist \
     55    --enable-opi
     56configure.env \
     57    CXXFLAGS="-I${prefix}/include/freetype2 -I${prefix}/include" \
     58    CFLAGS="-I/usr/X11R6/include" \
     59    CPPFLAGS="-I/usr/X11R6/include" \
     60    LDFLAGS="-lz"
     61   
     62variant a4 {
     63    configure.args-append --enable-a4-paper
    4964}
     65
     66platform puredarwin {
     67    depends_lib-delete port:openmotif
     68    depends_lib-append port:lesstif
     69}
Note: See TracChangeset for help on using the changeset viewer.