Ticket #53880: Portfile

File Portfile, 2.5 KB (added by oleaamot (Ole Aamot), 7 years ago)

Portfile for GNOME Internet Radio Locator version 9.9.2 (GTK+2/GTK+3)

Line 
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
3PortSystem          1.0
4
5name                girl
6version             9.9.2
7set branch          [join [lrange [split $version .] 0 1] .]
8categories          gnome
9platforms           darwin
10license             GPL-2+
11maintainers         gnome.org:ole \
12                    openmaintainer
13description         GNOME Internet Radio Locator
14long_description    Locate Internet Radio Stations
15homepage            http://people.gnome.org/~ole/girl/
16master_sites        gnome:sources/${name}/${branch}/
17
18use_xz              yes
19
20checksums           rmd160  8277d3335e2690045dbac0b530504303effc8c63 \
21                    sha256  fe67b8efbe59703a2cb39438d47971c7998231b59147b3568afb2a8ff7fd4be4
22
23depends_build       port:pkgconfig \
24                    port:intltool \
25                    port:gtk-doc \
26                    port:gnome-common \
27                    port:autoconf \
28                    port:automake \
29                    port:yelp-tools \
30                    port:itstool
31
32depends_lib         port:desktop-file-utils \
33                    port:gtk2 \
34                    port:gtk3 \
35                    port:libchamplain \
36                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
37                    port:libgnome \
38                    port:libgnomeui \
39                    port:libxml2 \
40                    port:gnome-vfs \
41                    port:gstreamer1 \
42                    port:gstreamer1-gst-plugins-base \
43                    port:pango \
44                    port:zlib
45
46depends_run         port:gstreamer1-gst-plugins-good \
47                    port:gstreamer1-gst-plugins-bad \
48                    port:gstreamer1-gst-plugins-ugly
49
50# reconfigure using autogen.sh from upstream git for intltool 0.51 compatibility
51
52post-patch {
53    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
54}
55
56configure.cmd       ./autogen.sh
57
58# building with optimization greater than -O0 causes crash on selecting station
59# https://trac.macports.org/ticket/52993
60configure.optflags  -O0
61configure.args      --disable-silent-rules
62
63variant debug description {Build with debug symbols and enable debug messages} {
64    patchfiles-append   patch-enable-debug.diff
65    configure.optflags  -O0 -g
66}
67
68post-activate {
69   system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
70   system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
71}
72
73livecheck.type      gnome-with-unstable