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 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name pianobar |
---|
7 | version 2013.01.07 |
---|
8 | categories audio |
---|
9 | platforms darwin |
---|
10 | maintainers gmail.com:cowboycodur |
---|
11 | license MIT |
---|
12 | homepage http://6xq.net/projects/pianobar/ |
---|
13 | master_sites http://6xq.net/static/projects/pianobar/ |
---|
14 | use_bzip2 yes |
---|
15 | |
---|
16 | description Console-based pandora.com player |
---|
17 | |
---|
18 | long_description pianobar is a console client for the \ |
---|
19 | personalized web radio pandora \ |
---|
20 | (http://www.pandora.com).\ |
---|
21 | Play and manage stations, rate songs and \ |
---|
22 | see why they were selected, show upcoming \ |
---|
23 | configure keybindings, last.fm scrobbling, \ |
---|
24 | proxy support for listening outside of USA. |
---|
25 | |
---|
26 | checksums rmd160 3c8945dcb72317cfcd49322111535bbb6dcb9094 \ |
---|
27 | sha256 a3909f796e7cef21b19d98282f332ecbcf9b2c60a2af22a0a2ce01e9c4d9f515 |
---|
28 | |
---|
29 | depends_build port:pkgconfig |
---|
30 | |
---|
31 | depends_lib port:gnutls \ |
---|
32 | port:libgcrypt \ |
---|
33 | port:json-c |
---|
34 | |
---|
35 | configure.cflags-append -std=c99 |
---|
36 | |
---|
37 | # Prevent upgrade failure. |
---|
38 | configure.cppflags-append -isystem${prefix}/include |
---|
39 | configure.cppflags-delete -I${prefix}/include |
---|
40 | |
---|
41 | use_configure no |
---|
42 | |
---|
43 | variant universal {} |
---|
44 | |
---|
45 | build.args CC="${configure.cc} [get_canonical_archflags cc]" \ |
---|
46 | PREFIX=${prefix} \ |
---|
47 | CFLAGS="${configure.cflags} ${configure.cppflags}" \ |
---|
48 | LDFLAGS="${configure.ldflags}" |
---|
49 | |
---|
50 | destroot.args PREFIX=${prefix} |
---|
51 | |
---|
52 | if {$subport == $name} { |
---|
53 | depends_lib-append port:faad2 \ |
---|
54 | port:libao \ |
---|
55 | port:libmad |
---|
56 | } |
---|
57 | |
---|
58 | subport libpiano { |
---|
59 | build.target libpiano.so.0 |
---|
60 | destroot.target install-libpiano |
---|
61 | platform darwin { |
---|
62 | build.target libpiano.0.dylib |
---|
63 | } |
---|
64 | } |
---|
65 | |
---|
66 | platform darwin { |
---|
67 | patchfiles-append patch-Makefile.diff |
---|
68 | } |
---|
69 | |
---|
70 | livecheck.type regex |
---|
71 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|