1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup github 1.0 |
---|
5 | |
---|
6 | github.setup PromyLOPh pianobar 2022.04.01 |
---|
7 | checksums rmd160 3146efb25c5b8bdb293c9057e4f52a743bf5f116 \ |
---|
8 | sha256 2653c6659a141868625ab24ecf04210d20347d50e0bd03e670e2daefa9f4fb2d \ |
---|
9 | size 61196 |
---|
10 | |
---|
11 | categories audio |
---|
12 | maintainers {ryandesign @ryandesign} openmaintainer |
---|
13 | license MIT |
---|
14 | |
---|
15 | description Console-based pandora.com player |
---|
16 | |
---|
17 | long_description pianobar is a console client for the \ |
---|
18 | personalized web radio pandora \ |
---|
19 | (http://www.pandora.com).\ |
---|
20 | Play and manage stations, rate songs and \ |
---|
21 | see why they were selected, show upcoming \ |
---|
22 | configure keybindings, last.fm scrobbling, \ |
---|
23 | proxy support for listening outside of USA. |
---|
24 | |
---|
25 | github.tarball_from archive |
---|
26 | |
---|
27 | depends_build port:pkgconfig |
---|
28 | |
---|
29 | depends_lib port:curl \ |
---|
30 | path:lib/libavcodec.dylib:ffmpeg \ |
---|
31 | port:libao \ |
---|
32 | port:libgcrypt \ |
---|
33 | port:json-c |
---|
34 | |
---|
35 | compiler.c_standard 1999 |
---|
36 | configure.cflags-append -std=c99 |
---|
37 | |
---|
38 | # Prevent upgrade failure. |
---|
39 | configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include |
---|
40 | |
---|
41 | use_configure no |
---|
42 | |
---|
43 | variant universal {} |
---|
44 | |
---|
45 | variant useffmpeg6 description {Use latest ffmpeg6 libraries} { |
---|
46 | depends_lib-append path:libexec/ffmpeg6/lib/libavcodec.dylib:ffmpeg6 |
---|
47 | build.env-append PKG_CONFIG_PATH=${prefix}/libexec/ffmpeg6/lib/pkgconfig/ |
---|
48 | } |
---|
49 | |
---|
50 | if {![variant_isset universal]} { |
---|
51 | puts "universal not set" |
---|
52 | depends_lib-delete path:lib/libavcodec.dylib:ffmpeg |
---|
53 | } |
---|
54 | |
---|
55 | if {[variant_isset useffmpeg6]} { |
---|
56 | puts "fmpeg6 set" |
---|
57 | puts $depends_lib |
---|
58 | } |
---|
59 | |
---|
60 | build.args CC="${configure.cc} [get_canonical_archflags cc]" \ |
---|
61 | DYNLINK=1 \ |
---|
62 | PREFIX=${prefix} \ |
---|
63 | CFLAGS="${configure.cflags} ${configure.cppflags}" \ |
---|
64 | LDFLAGS="${configure.ldflags}" \ |
---|
65 | V=1 |
---|
66 | |
---|
67 | destroot.args PREFIX=${prefix} |
---|
68 | |
---|
69 | if {${subport} eq ${name}} { |
---|
70 | revision 0 |
---|
71 | depends_lib-append port:libpiano |
---|
72 | } else { |
---|
73 | livecheck.type none |
---|
74 | } |
---|
75 | |
---|
76 | subport libpiano { |
---|
77 | revision 0 |
---|
78 | depends_lib-append path:lib/pkgconfig/gnutls.pc:gnutls |
---|
79 | #config.env-append PKG_CONFIG_PATH=${prefix}/libexec/ffmpeg6/lib/pkgconfig/ |
---|
80 | build.target libpiano.so.0 |
---|
81 | destroot.target install-libpiano |
---|
82 | platform darwin { |
---|
83 | build.target libpiano.0.dylib |
---|
84 | } |
---|
85 | } |
---|
86 | |
---|
87 | platform darwin { |
---|
88 | patchfiles-append patch-Makefile.diff |
---|
89 | } |
---|