source: trunk/dports/multimedia/audacious-core/Portfile

Last change on this file was 153443, checked in by ionic@…, 12 months ago

multimedia/audacious-core: update to 3.8 including patchset.

Changes:

  • Renamed patches to drop the file name and add a description of what they do.
  • Refreshed patches.
  • Dropped the patch switching from -std=gnu++11 to -std=c++11 on OS X. Enabling GNU extensions shouldn't Hurd.
  • The Qt5 interface will now be regarded as a fully-qualified member, as it matured quite a lot.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153443 2016-09-30 11:15:18Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6PortGroup           cxx11 1.0
7
8name                audacious-core
9set real_name       audacious
10
11# Please keep audacious, audacious-core and audacious-plugins synchronized.
12version             3.8
13revision            0
14
15license             BSD
16categories          multimedia
17platforms           darwin
18maintainers         ionic
19homepage            http://www.audacious-media-player.org/
20description         Audacious is an advanced audio player.
21long_description    ${description} It is free, lightweight, based on GTK3, \
22                    runs on Linux and many other *nix platforms. The player focuses on audio quality \
23                    and supports a wide range of audio codecs. \
24                    Its advanced audio playback engine is considerably more powerful than GStreamer. \
25                    Audacious is a fork of Beep Media Player (BMP), which itself forked from XMMS.
26
27# Maintainer-only helper for testing changes quickly and easily.
28#fetch.type          git
29#git.url             git://github.com/Ionic/${real_name}
30#git.branch          ${real_name}-${version}-buildfix
31
32master_sites        http://distfiles.audacious-media-player.org
33distname            ${real_name}-${version}
34use_bzip2           yes
35checksums           rmd160  63abcb3536a1bc88a8c3b9674d9d46b7519ec48c \
36                    sha256  ffe8c0661dcb999598887e8ee05cd24faa7939086f5a8183fdba6210a95c4a71
37
38universal_variant   no
39
40conflicts_build     ${name}
41
42patchfiles          patch-update-buildsys-and-make-verbose.diff \
43                    patch-drop-libc++.diff
44
45depends_build       path:bin/pkg-config:pkgconfig \
46                    path:bin/aclocal:automake \
47                    path:bin/autom4te:autoconf
48
49depends_lib         port:libiconv \
50                    port:gettext \
51                    path:lib/pkgconfig/dbus-1.pc:dbus \
52                    path:lib/pkgconfig/glib-2.0.pc:glib2
53
54# Note: rpath is required on OS X.
55configure.args      --enable-nls \
56                    --enable-rpath \
57                    --enable-dbus \
58                    --disable-qt \
59                    --disable-gtk \
60                    --disable-valgrind
61
62use_autoreconf      yes
63autoreconf.cmd      ./autogen.sh
64autoreconf.args
65
66post-destroot {
67    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${real_name}
68    move ${destroot}${prefix}/share/${real_name}/AUTHORS \
69         ${destroot}${prefix}/share/${real_name}/COPYING \
70         ${destroot}${prefix}/share/doc/${real_name}
71}
72
73variant qt5 description {Add Qt5 support} {
74    PortGroup   qt5 1.0
75
76    configure.args-replace  --disable-qt \
77                            --enable-qt
78
79    notes-append {
80                    The Qt5 interface is known to crash upon exit, \
81                    but should otherwise be functional.\
82    }
83}
84
85variant gtk2 conflicts gtk3 description {Add GTK2 support} {
86    depends_lib-append      path:lib/pkgconfig/gtk-2.0.pc:gtk2
87
88    configure.args-replace  --disable-gtk \
89                            --enable-gtk
90}
91
92variant gtk3 conflicts gtk2 description {Add GTK3 support} {
93    depends_lib-append      path:lib/pkgconfig/gtk-3.0.pc:gtk3
94
95    patchfiles-append       patch-gtk3.diff
96
97    configure.args-replace  --disable-gtk \
98                            --enable-gtk
99}
100
101# Need either one of gtk2, gtk3 or Qt5 to have a GUI. Default to gtk2, which is preferred by upstream.
102if {![variant_isset gtk2] && ![variant_isset gtk3] && ![variant_isset qt5]} {
103    default_variants-append +gtk2
104}
105
106livecheck.type      regex
107livecheck.url       ${master_sites}
108livecheck.regex     "${real_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.