Ticket #22157: patch-macports-xmms2.diff

File patch-macports-xmms2.diff, 4.3 KB (added by manphiz@…, 15 years ago)
  • Portfile

    old new  
    33PortSystem              1.0
    44
    55name                    xmms2
    6 version                 0.5DrLecter
     6version                 0.6DrMattDestruction
    77categories              audio
    88maintainers             nomaintainer
    99homepage                http://xmms2.xmms.org/
     
    1212use_bzip2               yes
    1313
    1414description             CrossPlatform Music Multiplexer System
    15 long_description        Audio player
     15long_description        Next generation audio player of XMMS
    1616
    17 checksums               md5     9033ef15be9069ef43aeb4b6360a4d36 \
    18                         sha1    08a8e6f7cee8a7b7161d2208361cda6d474427a4 \
    19                         rmd160  085450a26de3261ab03ec27b76c00f2e0587a0cd
     17checksums               md5     954fb9c76b5db5e324a105e81b273200 \
     18                        sha1    524b64d2f8db1d7d84449566a46f6b56ad4ceabb \
     19                        rmd160  c8d9b2a19ab7822f76e12fc2c78640c5a8e6e698
    2020
    21 set my_python           ${prefix}/bin/python2.5
    22 depends_build           port:python25 \
     21depends_build           port:python26 \
    2322                        port:pkgconfig
    2423depends_lib             path:lib/pkgconfig/glib-2.0.pc:glib2 \
    2524                        port:gettext \
     
    3332                        port:libmad \
    3433                        port:libogg \
    3534                        port:libvorbis \
    36                         port:flac
     35                        port:flac \
     36                        port:ffmpeg \
     37                        port:libdiscid \
     38                        port:faad2 \
     39                        port:fftw-3 \
     40                        port:libmms \
     41                        port:libmodplug \
     42                        port:libmpcdec \
     43                        port:mpg123 \
     44                        port:readline \
     45                        port:libsamplerate \
     46                        port:libsdl \
     47                        port:speex \
     48                        port:wavpack
    3749
    38 patch {
    39     foreach f [glob -directory ${worksrcpath} waf waf-lite wafadmin/*.py wafadmin/*/*.py] {
    40         reinplace "s|^#!\\s*/usr/bin/env python\$|#!${my_python}|" ${f}
    41     }
    42 }
     50patchfiles              patch-src-lib-xmmsipc-socket_unix.c.diff
     51patch.args              -p1
    4352
    4453configure.cmd           ./waf configure
    45 configure.env-append    PYTHON=${my_python}
    46 configure.args          --with-optionals pixmaps,cli,xmmsclient-cf,launcher,xmmsclient++-glib,et,dns_sd \
    47                         --with-plugins equalizer,nulstripper,xspf,ao,vorbis,mp4,diskwrite,file,curl,null,normalize,daap,airplay,gme,cue,lastfm,gvfs,coreaudio,xml,id3v2,pls,mad,asx,wave,asf,flac,lastfmeta,karaoke,rss,m3u,replaygain,icymetaint
     54configure.env-append    PYTHON=${prefix}/bin/python2.6
     55configure.universal_args
     56configure.args          --conf-prefix=${prefix} --nocache
    4857
    4958build.cmd               ./waf
    5059build.target            build
    5160
    5261destroot.destdir        --destdir=${destroot}
     62
     63if {![variant_isset cpp]} {
     64        configure.args-append --without-optionals xmmsclient++,xmmsclient++-glib
     65}
     66
     67if {![variant_isset perl]} {
     68        configure.args-append --without-optionals perl
     69}
     70
     71if {![variant_isset ruby]} {
     72        configure.args-append --without-optionals ruby
     73}
     74
     75# Python is currently undetectable.  Disabled temporarily
     76#if {![variant_isset python]} {
     77#       configure.args-append --without-optionals python
     78#}
     79
     80variant cpp description {C++ development support} {
     81        depends_lib-append      port:boost
     82}
     83
     84variant perl description {Perl development support} {
     85        depends_lib-append      port:perl5
     86}
     87
     88variant ruby description {Ruby development support} {
     89        depends_lib-append      port:ruby
     90}
     91
     92# Python is currently undetectable.  Disabled temporarily
     93#variant python description {Python development support} {
     94#        depends_lib-append     port:python26 \
     95#                                port:py26-pyrex
     96#}
     97
     98variant dev_dep description {Use development version of several dependencies} {
     99        depends_lib-delete      port:ffmpeg \
     100                                port:libsdl \
     101                                port:speex
     102        depends_lib-append      port:ffmpeg-devel \
     103                                port:libsdl-devel \
     104                                port:speex-devel
     105}