Ticket #17392: Portfile.diff

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

    old new  
    100100    --without-ipsepcola \
    101101    --without-rsvg \
    102102    --with-pangocairo \
     103    --without-glitz \
    103104    --with-freetype2 \
    104105    --with-fontconfig \
    105106    --without-gdk-pixbuf \
     
    128129    --disable-ruby \
    129130    --disable-tcl
    130131
     132platform macosx {
     133    if {${os.major} > 8} {
     134        configure.args-delete --without-quartz
     135        configure.args-append --with-quartz
     136    }
     137}
     138
    131139variant guile description {Include Guile language bindings} {
    132140    depends_lib-append \
    133141        port:guile
     
    150158        --disable-lua
    151159    configure.args-append \
    152160        --enable-lua
     161    post-patch {
     162        reinplace "s|/usr/lib\$LIBPOSTFIX/lua|${prefix}/lib\$LIBPOSTFIX/lua|g" ${worksrcpath}/configure
     163    }
    153164}
    154165
    155166variant ocaml description {Include Objective Caml language bindings} {
     
    162173        --disable-ocaml
    163174    configure.args-append \
    164175        --enable-ocaml
     176    configure.cppflags-append \
     177        -I${prefix}/lib/ocaml
    165178}
    166179
    167180variant perl description {Include PERL 5 language bindings} {
    168181    depends_lib-append \
    169         path:bin/perl:perl5.8
     182        path:bin/perl:perl5
    170183    depends_build-append \
    171184        port:swig
    172185    configure.args-delete \
     
    174187        --disable-perl
    175188    configure.args-append \
    176189        --enable-perl
     190    configure.perl  ${prefix}/bin/perl
    177191}
    178192
    179 variant php description {Include PHP 4 language bindings} {
     193variant php description {Include PHP language bindings} {
    180194    depends_lib-append \
    181         port:php4
     195        port:php5
    182196    depends_build-append \
    183197        port:swig
    184198    configure.args-delete \
     
    186200        --disable-php
    187201    configure.args-append \
    188202        --enable-php
     203    post-patch {
     204        reinplace "s|/usr/include/php|${prefix}/include/php|g" ${worksrcpath}/configure
     205        reinplace "s|/usr/lib\${LIBPOSTFIX}/php|${prefix}/lib\${LIBPOSTFIX}/php|g" ${worksrcpath}/configure
     206        reinplace "s|/usr/share/php|${prefix}/share/php|g" ${worksrcpath}/configure
     207    }
    189208}
    190209
    191 variant python description {Include Python 2.4 language bindings} {
     210variant python24 description {Include Python 2.4 language bindings} conflicts python25 python26 {
    192211    depends_lib-append \
    193212        port:python24
    194213    depends_build-append \
     
    198217        --disable-python
    199218    configure.args-append \
    200219        --enable-python
     220    configure.python ${prefix}/bin/python2.4
     221    # The configure script asks python where to install
     222    # This doesn't work for 2.4 and 2.5 (see #16334)
     223    post-patch {
     224        reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.4|" ${worksrcpath}/configure
     225    }
     226}
     227
     228variant python25 description {Include Python 2.5 language bindings} conflicts python24 python26 {
     229    depends_lib-append \
     230        port:python25
     231    depends_build-append \
     232        port:swig
     233    configure.args-delete \
     234        --disable-swig \
     235        --disable-python
     236    configure.args-append \
     237        --enable-python
     238    configure.python ${prefix}/bin/python2.5
     239    # The configure script asks python where to install
     240    # This doesn't work for 2.4 and 2.5 (see #16334)
     241    post-patch {
     242        reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.5|" ${worksrcpath}/configure
     243    }
     244}
     245
     246variant python26 description {Include Python 2.6 language bindings} conflicts python24 python25 {
     247    depends_lib-append \
     248        port:python26
     249    depends_build-append \
     250        port:swig
     251    configure.args-delete \
     252        --disable-swig \
     253        --disable-python
     254    configure.args-append \
     255        --enable-python
     256    configure.python ${prefix}/bin/python2.6
    201257}
    202258
    203259variant ruby description {Include Ruby language bindings} {
     
    224280        --enable-tcl
    225281}
    226282
     283variant java description {Include Java language bindings} {
     284    depends_build-append \
     285        port:swig
     286    configure.args-delete \
     287        --disable-swig \
     288        --disable-java
     289    configure.args-append \
     290        --enable-java
     291}
     292
    227293variant smyrna description {Include the Smyrna large graph viewer} {
    228294    configure.args-delete \
    229295        --without-smyrna \
     
    238304    depends_lib-append \
    239305        port:gtk2 \
    240306        port:gtkglext \
    241         port:libglade2
     307        port:libglade2 \
     308        port:gts
     309}
     310
     311variant r description {Include R language bindings} {
     312    depends_build-append \
     313        port:swig
     314    configure.args-delete \
     315        --disable-swig \
     316        --disable-r
     317    configure.args-append \
     318        --enable-r
     319}
     320
     321variant rsvg description {enable the rsvg plugin} {
     322    depends_lib-append \
     323        port:librsvg
     324    configure.args-delete \
     325        --without-rsvg
     326    configure.args-append \
     327        --with-rsvg
     328}
     329
     330variant gdk_pixbuf description {enable the gdk_pixbuf plugin} {
     331    depends_lib-append \
     332        port:gtk2
     333    configure.args-delete \
     334        --without-gdk-pixbuf
     335    configure.args-append \
     336        --with-gdk-pixbuf
     337}
     338
     339variant glitz description {enable the incomplete glitz plugin} {
     340    depends_lib-append \
     341        port:glitz
     342    configure.args-delete \
     343        --without-glitz
     344    configure.args-append \
     345        --with-glitz
     346}
     347
     348variant ming description {enable the incomplete ming plugin} {
     349    depends_lib-append \
     350        port:ming
     351    configure.args-delete \
     352        --without-ming
     353    configure.args-append \
     354        --with-ming
    242355}
    243356
    244357variant no_pangocairo description {Remove pangocairo support (no antialiased bitmapped output; no PDF output)} {