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: Portfile 120553 2014-06-01 09:31:41Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | # TODO: Improve atomics by using libkern/OSAtomics.h |
---|
5 | # https://bugs.freedesktop.org/show_bug.cgi?id=67795 |
---|
6 | |
---|
7 | PortSystem 1.0 |
---|
8 | |
---|
9 | name pulseaudio |
---|
10 | version 5.0 |
---|
11 | revision 2 |
---|
12 | license LGPL-2.1 |
---|
13 | categories audio |
---|
14 | maintainers devans openmaintainer |
---|
15 | platforms darwin |
---|
16 | description A sound server for POSIX OSes |
---|
17 | |
---|
18 | long_description \ |
---|
19 | PulseAudio is a sound server for POSIX OSes, meaning that it is a proxy \ |
---|
20 | for your sound applications. It allows you to do advanced operations \ |
---|
21 | on your sound data as it passes between your application and your hardware. \ |
---|
22 | Things like transferring the audio to a different machine, changing the \ |
---|
23 | sample format or channel count and mixing several sounds into one are \ |
---|
24 | easily achieved using a sound server. |
---|
25 | |
---|
26 | homepage http://www.freedesktop.org/wiki/Software/PulseAudio/ |
---|
27 | master_sites http://freedesktop.org/software/${name}/releases/ |
---|
28 | |
---|
29 | use_xz yes |
---|
30 | |
---|
31 | checksums rmd160 4ba13e92c58f8ada4542d521131094a55e3b6991 \ |
---|
32 | sha256 99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939 |
---|
33 | |
---|
34 | depends_build port:pkgconfig \ |
---|
35 | port:intltool \ |
---|
36 | port:autoconf \ |
---|
37 | port:automake \ |
---|
38 | port:libtool \ |
---|
39 | port:p5.16-xml-parser |
---|
40 | |
---|
41 | depends_lib port:libiconv \ |
---|
42 | port:json-c \ |
---|
43 | port:libsndfile \ |
---|
44 | port:libsamplerate \ |
---|
45 | port:libtool \ |
---|
46 | port:gdbm \ |
---|
47 | path:lib/pkgconfig/glib-2.0.pc:glib2 \ |
---|
48 | port:gtk3 \ |
---|
49 | port:dbus \ |
---|
50 | port:fftw-3-single \ |
---|
51 | port:speex \ |
---|
52 | port:orc |
---|
53 | |
---|
54 | # configure falls back to libatomic_ops as last resort |
---|
55 | # if no linux kernel support and inline asm snippet fails to build |
---|
56 | # likely to fail on Leopard and older |
---|
57 | # https://trac.macports.org/ticket/42052 |
---|
58 | |
---|
59 | platform darwin { |
---|
60 | if {${os.major} < 10} { |
---|
61 | depends_lib-append port:libatomic_ops |
---|
62 | } |
---|
63 | } |
---|
64 | |
---|
65 | patchfiles patch-man-Makefile.am.diff \ |
---|
66 | i386.patch \ |
---|
67 | coreaudio.patch \ |
---|
68 | patch-default.pa.diff |
---|
69 | |
---|
70 | # reconfigure with our intltool.m4 using upstream autogen.sh |
---|
71 | |
---|
72 | post-patch { |
---|
73 | xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} |
---|
74 | reinplace "s|@@MP_PERL@@|${prefix}/bin/perl5.16|" ${worksrcpath}/man/Makefile.am |
---|
75 | } |
---|
76 | |
---|
77 | configure.cmd ./autogen.sh |
---|
78 | |
---|
79 | configure.args --with-mac-sysroot=/ \ |
---|
80 | --with-mac-version-min=$macosx_deployment_target \ |
---|
81 | --without-caps \ |
---|
82 | --disable-silent-rules \ |
---|
83 | --disable-tests \ |
---|
84 | --disable-x11 \ |
---|
85 | --disable-oss-output \ |
---|
86 | --disable-alsa \ |
---|
87 | --disable-esound \ |
---|
88 | --disable-solaris \ |
---|
89 | --disable-waveout \ |
---|
90 | --disable-jack \ |
---|
91 | --disable-asyncns \ |
---|
92 | --disable-tcpwrap \ |
---|
93 | --disable-lirc \ |
---|
94 | --disable-bluez4 \ |
---|
95 | --disable-bluez5 \ |
---|
96 | --disable-udev \ |
---|
97 | --disable-hal-compat \ |
---|
98 | --disable-openssl \ |
---|
99 | --disable-xen \ |
---|
100 | --disable-systemd \ |
---|
101 | --enable-neon-opt=no \ |
---|
102 | --enable-orc |
---|
103 | |
---|
104 | add_users pulse group=pulse realname=Pulse\ Audio |
---|
105 | |
---|
106 | variant x11 { |
---|
107 | configure.args-delete --disable-x11 |
---|
108 | depends_lib-append port:xorg-libX11 \ |
---|
109 | port:xorg-libxcb \ |
---|
110 | port:xorg-libice \ |
---|
111 | port:xorg-libsm \ |
---|
112 | port:xorg-libXtst |
---|
113 | } |
---|
114 | |
---|
115 | variant jack description {Enable Jack support } { |
---|
116 | configure.args-delete --disable-jack |
---|
117 | depends_lib-append port:jack |
---|
118 | } |
---|
119 | |
---|
120 | variant openssl description {Enable OpenSSL (& Airtunes) support } { |
---|
121 | configure.args-delete --disable-openssl |
---|
122 | depends_lib-append port:openssl |
---|
123 | } |
---|
124 | |
---|
125 | default_variants +x11 |
---|
126 | |
---|
127 | livecheck.type regex |
---|
128 | livecheck.url ${master_sites} |
---|
129 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|