Ticket #2493: portfile.diff

File portfile.diff, 1.8 KB (added by danchr@…, 20 years ago)

Patch against the Portfile

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/audio/mpg123/Portfile,v
    retrieving revision 1.12
    diff -a -u -a -u -r1.12 Portfile
     
    55version         pre0.59s
    66revision        0
    77categories      audio
    8 maintainers     darwinports@opendarwin.org
     8maintainers     danchr@opendarwin.org
    99description     fast mp3 player for linux and unix systems
    1010long_description        \
    1111        Mpg123 is a fast, free and portable MPEG audio player for Unix. It \
    1212        supports MPEG 1.0/2.0 layers 1, 2 and 3. For full CD quality \
    1313        playback (44 kHz, 16 bit, stereo) a Pentium, SPARCstation10, DEC \
    1414        Alpha or similar CPU is required. Mono and/or reduced quality \
    15         playback (22 kHz or 11 kHz) is even possible on 486 CPUs.
     15        playback (22 kHz or 11 kHz) is even possible on 486 CPUs. \
     16        \
     17        This version uses EsounD on a pure Darwin install and CoreAudio \
     18        on Mac OS X.
     19
    1620homepage        http://www.mpg123.de/
    1721platforms       darwin
    1822master_sites    http://www.mpg123.de/mpg123/
    1923checksums       md5 a63675b0ea7990d4a7d7e7e14f23a3e4
    2024worksrcdir      ${name}
    21 depends_lib     lib:libaudiofile.0:audiofile lib:libesd.0:esound
     25depends_lib     lib:libaudiofile.0:audiofile
    2226post-patch {
    2327        reinplace "s|PREFIX=/usr/local|PREFIX=${prefix}|g" "${worksrcpath}/Makefile"   
    2428}
     
    2731        CPPFLAGS=-I${prefix}/include
    2832destroot.destdir        PREFIX=${destroot}/${prefix}
    2933
     34variant puredarwin { }
     35
    3036variant darwin {
    31         patchfiles      patch-Makefile
    32         build.target    darwin-esd
     37        if { ! [variant_isset puredarwin] } {
     38                depends_lib-append \
     39                                lib:/Library/Frameworks/CoreAudio.framework:XXX
     40                patchfiles      patch-macosx.diff
     41                build.target    macosx
     42        } else {
     43               depends_lib-append lib:libesd.0:esound
     44               patchfiles       patch-Makefile
     45               build.target     darwin-esd
     46        }
    3347}