Ticket #14884: Portfile-pike.diff

File Portfile-pike.diff, 3.9 KB (added by exodusd@…, 17 years ago)

added some variants and some more cleanup commands in post-destroot

  • Portfile

    old new  
    66name             pike
    77version          7.6.112
    88categories       lang
    9 maintainers      gmx.de:exodusd
     9maintainers      gmx.de:exodusd openmaintainer
    1010description      dynamic programming language
    1111long_description \
    1212        Pike is a dynamic programming language with a syntax \
     
    2626patchfiles       patch-Request.pike
    2727
    2828depends_lib      port:zlib port:gmp port:nettle
    29 default_variants +image +pcre
     29depends_build    port:zlib port:gmp port:nettle
     30
     31
     32variant bzip2 description {Bzip2 support for Pike} {
     33    depends_lib-append port:bzip2
     34    depends_build-append port:bzip2
     35}
    3036
    3137variant image description {Images (JPEG, PNG, GIF, TIFF) support for Pike} {
    3238    configure.args-append --with-jpeglib --with-gif --with-tifflib
     
    4652    depends_build-append port:pcre
    4753}
    4854
     55variant gdbm description {GDBM database support for Pike} {
     56    configure.args-append --with-gdbm
     57    depends_lib-append port:gdbm
     58    depends_build-append port:gdbm
     59}
     60
    4961variant mysql description {MySQL database support for Pike} {
    5062    configure.args-append --with-mysql
    5163    depends_lib-append lib:libmysqlclient:mysql5
    5264    depends_build-append lib:libmysqlclient:mysql5
    5365}
    5466
     67variant odbc description {ODBC database support for Pike} {
     68    configure.args-append --with-odbc
     69    depends_lib-append port:unixODBC
     70    depends_build-append port:unixODBC
     71}
     72
     73variant postgresql description {Postgres database support for Pike} {
     74    configure.args-append --with-postgres
     75    depends_lib-append port:postgresql83
     76    depends_build-append port:postgresql83
     77}
     78
     79variant gtk description {GTK support for Pike} {
     80    configure.args-append --with-gtk
     81    depends_lib-append port:gtk
     82    depends_build-append port:gtk
     83}
     84
     85variant opengl description {OpenGL support for Pike} {
     86    configure.args-append --with-GL --with-GLUT
     87    depends_lib-append port:glut
     88    depends_build-append port:glut
     89}
     90
     91#variant perl description {Perl support for Pike} {
     92#    configure.args-append --with-perl
     93#    depends_lib-append port:perl5.10
     94#    depends_build-append port:perl5.10
     95#}
     96
     97variant sane description {SANE scanner support for Pike} {
     98    configure.args-append --with-sane
     99    depends_lib-append port:sane-backends
     100    depends_build-append port:sane-backends
     101}
     102
     103variant sdl description {SDL support for Pike} {
     104    configure.args-append --with-SDL
     105    depends_lib-append port:libsdl port:libsdl_mixer
     106    depends_build-append port:libsdl port:libsdl_mixer
     107}
     108
     109variant svg description {SVG vector graphics support for Pike} {
     110    configure.args-append --with-svg
     111    depends_lib-append port:librsvg
     112    depends_build-append port:librsvg
     113}
     114
    55115variant doc description {Pike documentation} {
    56116    build.target-append doc
    57117}
     
    64124configure {
    65125    # setup the build.args here, because then the configure.args from the
    66126    # variants will have been assembled:
    67         build.args CONFIGUREARGS="--prefix=${prefix} ${configure.args}" \
     127        build.args CONFIGUREARGS="--prefix=${prefix} --without-bundles ${configure.args}" \
    68128            INSTALLARGS="--traditional"
    69129        destroot.destdir buildroot=${destroot} INSTALLARGS="--traditional"
    70130}
     
    75135destroot.target  install_nodoc
    76136
    77137post-destroot {
    78         # traditional, MacPorts tree compliant directory layout
    79         delete file ${destroot}${prefix}/bin/pike.syms
     138        file delete -force ${destroot}${prefix}/bin/pike.syms
     139        file delete -force ${destroot}${prefix}/doc/pike
     140        # move manpage to correct location:
    80141        move ${destroot}${prefix}/man/man1/pike.1 \
    81142            ${destroot}${prefix}/share/man/man1/
     143        # move documentation to correct location:
    82144        xinstall -d ${destroot}${prefix}/share/doc/pike-${version}
    83145        xinstall -W ${worksrcpath} README COPYING COPYRIGHT ANNOUNCE \
    84146            COMMITTERS ${destroot}${prefix}/share/doc/pike-${version}