This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
PulseAudio 3.0 #18838
Closed
Closed
PulseAudio 3.0 #18838
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
11cca80
Revert "pulseaudio: move to boneyard"
albertz 629e82f
update PulseAudio to 3.0
albertz 0b4954b
pulseaudio: fix trunk-build
albertz 6ba7b8e
pulseaudio: remove semaphore-osx.c
albertz b65e110
pulseaudio: semaphore-posix.c instead of semaphore-osx.c
albertz e59e4fc
pulseaudio: fix. semaphore-posix.c doesn't work on OSX because sem_in…
albertz 222024b
pulseaudio: patch shm_open mode
albertz 7b7bb99
pulseaudio: comments
albertz 9ce483d
pulseaudio: use rewritten semaphore-osx.c
albertz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
require 'formula' | ||
|
||
class Pulseaudio < Formula | ||
homepage 'http://pulseaudio.org' | ||
url 'http://freedesktop.org/software/pulseaudio/releases/pulseaudio-3.0.tar.gz' | ||
sha1 '875ee8c39bb8413007004ffd31f6b35d6508a194' | ||
|
||
head 'git://anongit.freedesktop.org/pulseaudio/pulseaudio' | ||
|
||
option "with-dbus", "Enable dbus" | ||
|
||
# Dependencies from http://www.freedesktop.org/wiki/Software/PulseAudio/Ports/OSX | ||
if build.head? | ||
depends_on :autoconf | ||
depends_on :automake | ||
depends_on :libtool | ||
end | ||
|
||
depends_on 'pkg-config' => :build | ||
depends_on 'intltool' => :build | ||
depends_on 'libsndfile' | ||
depends_on 'speex' | ||
depends_on 'gdbm' | ||
depends_on 'liboil' | ||
depends_on 'json-c' | ||
depends_on 'dbus' if build.include? 'with-dbus' | ||
|
||
def install | ||
args = ["--prefix=#{prefix}", | ||
"--disable-jack", | ||
"--disable-hal", | ||
"--disable-bluez", | ||
"--disable-avahi", | ||
"--with-udev-rules-dir=#{lib}/udev/rules.d", | ||
"--with-mac-sysroot=#{MacOS.sdk_path}", | ||
"--with-mac-version-min=#{MacOS.version}"] | ||
|
||
args << '--disable-dbus' unless build.include? 'with-dbus' | ||
args << "--disable-nls" if build.head? and not Formula.factory('libtool').installed? | ||
|
||
if build.head? then | ||
# It uses `git describe` to set the version string. | ||
system "ln -s #{cached_download}/.git" | ||
# For `git describe`, we need the full history and tags. | ||
# If we already unhallowed earlier, this fails but we can ignore that. | ||
system "git fetch --unshallow || true" | ||
system "git fetch --tags" | ||
system "git describe" # just test | ||
system "./autogen.sh", *args | ||
else | ||
system "./configure", *args | ||
end | ||
|
||
# remove sconv_neon.c, mix_neon.c because it wont compile (it's ARM Neon related) and is not needed. | ||
# see <https://bugs.freedesktop.org/show_bug.cgi?id=62986>. | ||
system "echo > src/pulsecore/sconv_neon.c" | ||
system "echo > src/pulsecore/mix_neon.c" | ||
# fix shm_open mode. see <https://bugs.freedesktop.org/show_bug.cgi?id=62988>. | ||
inreplace "src/pulsecore/shm.c", "& 0444", "& 0777" | ||
# use rewritten semaphore-osx.c. see <https://bugs.freedesktop.org/show_bug.cgi?id=63014>. | ||
system "curl https://gist.github.com/albertz/5291528/raw/semaphore-osx.c > src/pulsecore/semaphore-osx.c" | ||
|
||
system "make" | ||
system "make install" | ||
end | ||
|
||
def caveats; <<-EOS.undent | ||
Edit `/usr/local/etc/pulse/default.pa` and remove the "module-detect" parts. | ||
You might want to add these: | ||
|
||
# Detect the CoreAudio soundcard. | ||
load-module module-coreaudio-detect | ||
# Listen on TCP port 4713. | ||
# Note that this allows anonymous access from any network! | ||
load-module module-native-protocol-tcp auth-anonymous=1 | ||
|
||
In `/usr/local/etc/pulse/daemon.conf`, you might want to set: | ||
|
||
# Disable autoexit on idle. | ||
exit-idle-time = -1 | ||
EOS | ||
end | ||
|
||
def test | ||
system "#{bin}/pulseaudio" | ||
end | ||
end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you reported this issue to the developers?