Ticket #22157: patch-macports-xmms2.diff
File patch-macports-xmms2.diff, 4.3 KB (added by manphiz@…, 15 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name xmms2 6 version 0. 5DrLecter6 version 0.6DrMattDestruction 7 7 categories audio 8 8 maintainers nomaintainer 9 9 homepage http://xmms2.xmms.org/ … … 12 12 use_bzip2 yes 13 13 14 14 description CrossPlatform Music Multiplexer System 15 long_description Audio player15 long_description Next generation audio player of XMMS 16 16 17 checksums md5 9 033ef15be9069ef43aeb4b6360a4d36\18 sha1 08a8e6f7cee8a7b7161d2208361cda6d474427a4\19 rmd160 085450a26de3261ab03ec27b76c00f2e0587a0cd17 checksums md5 954fb9c76b5db5e324a105e81b273200 \ 18 sha1 524b64d2f8db1d7d84449566a46f6b56ad4ceabb \ 19 rmd160 c8d9b2a19ab7822f76e12fc2c78640c5a8e6e698 20 20 21 set my_python ${prefix}/bin/python2.5 22 depends_build port:python25 \ 21 depends_build port:python26 \ 23 22 port:pkgconfig 24 23 depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ 25 24 port:gettext \ … … 33 32 port:libmad \ 34 33 port:libogg \ 35 34 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 37 49 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 } 50 patchfiles patch-src-lib-xmmsipc-socket_unix.c.diff 51 patch.args -p1 43 52 44 53 configure.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 54 configure.env-append PYTHON=${prefix}/bin/python2.6 55 configure.universal_args 56 configure.args --conf-prefix=${prefix} --nocache 48 57 49 58 build.cmd ./waf 50 59 build.target build 51 60 52 61 destroot.destdir --destdir=${destroot} 62 63 if {![variant_isset cpp]} { 64 configure.args-append --without-optionals xmmsclient++,xmmsclient++-glib 65 } 66 67 if {![variant_isset perl]} { 68 configure.args-append --without-optionals perl 69 } 70 71 if {![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 80 variant cpp description {C++ development support} { 81 depends_lib-append port:boost 82 } 83 84 variant perl description {Perl development support} { 85 depends_lib-append port:perl5 86 } 87 88 variant 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 98 variant 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 }