Ticket #17605: Portfile.diff

File Portfile.diff, 2.8 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 15 years ago)
  • Portfile

     
    1616
    1717homepage                http://www.gnu.org/software/pspp/
    1818platforms               darwin
    19 master_sites            http://ftpmirror.gnu.org/pspp
     19master_sites            gnu
    2020
    2121checksums               md5 b871739200938820d8db898cd200ed06 \
    2222                        sha1 22f335053a3e1d3861bfc2d87536b9a6fc5a1ae7 \
     
    2424
    2525use_parallel_build      yes
    2626
     27depends_build           path:bin/perl:perl5
     28configure.perl          ${prefix}/bin/perl
     29
    2730depends_lib                     port:gsl \
    28                         path:bin/perl:perl5 \
    2931                        port:libiconv \
    30                         port:plotutils \
     32                        port:zlib \
    3133                        port:pkgconfig \
    32                         port:gtk2 \
    33                         port:libglade2 \
    34                         port:libpqxx \
    35                         port:zlib \
    3634                        port:libxml2 \
    37                         port:ncursesw \
    38                         port:readline \
    39                         port:texinfo
     35                        port:readline
    4036
    41 configure.perl          ${prefix}/bin/perl
     37configure.args          --disable-rpath \
     38                        --without-gui \
     39                        --without-libplot \
     40                        --without-libpq \
     41                        --enable-debug \
     42                        --without-libncurses
    4243
    4344patchfiles              patch-config.h.in
    4445
     46variant ncurses description {Enable terminal resizing} {
     47    depends_lib-append  port:ncursesw
     48    configure.args-delete   --without-libncurses
     49}
     50
     51variant doc description {Build documentation} {
     52    depends_lib-append   port:texinfo
     53    build.target-append  pdf html
     54    post-destroot {
     55        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
     56        foreach fl [glob -nocomplain -directory ${worksrcpath}/doc *.pdf *.html] {
     57            copy ${fl} ${destroot}${prefix}/share/doc/${name}
     58        }
     59    }
     60}
     61
     62variant postgres description {Enables reading of postgresql databases} {
     63    depends_lib-append  port:postgresql83
     64    configure.args-delete   --without-libpq
     65    configure.ldflags-append -L${prefix}/lib/postgresql83
     66}
     67
     68variant graph description {Enable graphing features (default)} {
     69    depends_lib-append  port:plotutils
     70    configure.args-delete   --without-libplot
     71}
     72
     73variant gui description {Enable PSPPIRE, the graphical interface (default)} {
     74    depends_lib-append      port:pkgconfig \
     75                            port:gtk2 \
     76                            port:libglade2
     77    configure.args-delete   --without-gui
     78}
     79
     80default_variants        +graph +gui
     81
    4582post-destroot {
    4683    delete ${destroot}${prefix}/lib/charset.alias
    4784}