Ticket #61658: pianod-329-port-patches.diff

File pianod-329-port-patches.diff, 3.0 KB (added by perette (Perette Barella), 3 years ago)

Revised patch 175->329 providing configure options to ensure no unexpected linking.

  • Portfile

    old new  
    33PortSystem          1.0
    44
    55name                pianod
    6 version             175
    7 revision            4
     6version             329
     7revision            0
    88categories          audio
    99platforms           darwin
    1010license             MIT
    1111maintainers         deviousfish.com:perette
    12 description         Pandora client daemon
    13 long_description    Client/server Pandora daemon with socket interface \
    14                     and HTML5 websocket support. \
    15                     Includes a shell script for command-line control. \
     12description         Music playing daemon with Pandora support
     13long_description    Client/server Pandora & local music daemon controllable \
     14                    via telnet or WebSocket.  Includes web client and \
     15                    a shell script for command-line control. \
    1616                    Supports multiple listeners with adjustable privileges, \
    1717                    automatic station selection, script to run \
    18                     programmed station sequences. \
    19                     Web-based remote control available at deviousfish.com.
     18                    programmed station sequences.
    2019
    2120homepage            http://deviousfish.com/Pianod
    22 master_sites        http://deviousfish.com/Downloads/pianod
     21master_sites        http://deviousfish.com/Downloads/pianod2
     22distname            pianod2-${version}
    2323
    24 checksums           rmd160  386f64cfb322945ebfacae06061941f0aab70336 \
    25                     sha256  19733d4937b48707eebcde75775d865d6bf925efa86d8989f0efb2392ab4cdf9
     24checksums           size    802609 \
     25                    rmd160  7c8eb6c4ee38d6e2cd2a1a0232457e2638f0b8c9 \
     26                    sha256  48f2409a0c033fc92ac90e2e4beafc736b119cdcd7532ab140f3cb32da5f7e68
    2627
    2728depends_build       port:pkgconfig
    2829
    29 depends_lib         port:libao \
    30                     port:libgcrypt \
    31                     port:gnutls \
    32                     port:json-c \
    33                     port:faad2 \
    34                     port:libmad
     30depends_lib         port:curl port:taglib
    3531
    36 configure.args      ac_cv_prog_AWK=/usr/bin/awk
     32configure.args      ac_cv_prog_AWK=/usr/bin/awk \
     33                    OBJCXXFLAGS="-std=c++14" \
     34                    --with-engine=osx --with-tls=osx --without-libsdl --without-libao --without-accesscontrol --without-compression
     35
     36if {${os.platform} eq "darwin" && ${os.major} <= 10} {
     37    depends_lib-append  port:ffmpeg port:libao
     38    configure.cmd       ./configure --with-engine=ffmpeg --with-tls=osx --without-libsdl --without-accesscontrol --without-compression
     39}
    3740
    3841startupitem.create      yes
    3942startupitem.logfile     ${prefix}/var/log/pianod.log
     
    4144
    4245livecheck.type      regex
    4346livecheck.url       [lindex ${master_sites} 0]
    44 livecheck.regex     ${name}-(\[0-9\]+)${extract.suffix}
     47livecheck.regex     ${name}2-(\[0-9\]+)${extract.suffix}