Last active
August 29, 2015 14:06
-
-
Save TagPro-PreciousRoy/304d59e192ec0ff4cc3c to your computer and use it in GitHub Desktop.
Homebrew formula for pulseaudio HEAD on Mac OS 10.9 (WIP)
This file contains hidden or 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
diff --git a/configure.ac b/configure.ac | |
index f13ddb0..af41b9a 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -518,13 +518,13 @@ AC_SEARCH_LIBS([backtrace], [execinfo ubacktrace]) | |
if test "x$os_is_darwin" = "x1" ; then | |
AC_MSG_CHECKING([looking for Apple CoreService Framework]) | |
# How do I check a framework "library" - AC_CHECK_LIB prob. won't work??, just assign LIBS & hope | |
- AC_CHECK_HEADER([/Developer/Headers/FlatCarbon/CoreServices.h], | |
- [LIBS="$LIBS -framework CoreServices"], | |
- [AC_CHECK_HEADERS([/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h], | |
- [LIBS="$LIBS -framework CoreServices"], | |
- [AC_MSG_ERROR([CoreServices.h header file not found])] | |
- )] | |
- ) | |
+# AC_CHECK_HEADER([/Developer/Headers/FlatCarbon/CoreServices.h], | |
+# [LIBS="$LIBS -framework CoreServices"], | |
+# [AC_CHECK_HEADERS([/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h], | |
+# [LIBS="$LIBS -framework CoreServices"], | |
+# [AC_MSG_ERROR([CoreServices.h header file not found])] | |
+# )] | |
+# ) | |
AC_MSG_RESULT([ok]) | |
AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [Using clock_gettime() replacement]) |
This file contains hidden or 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
require 'formula' | |
class Pulseaudio < Formula | |
homepage "http://pulseaudio.org" | |
head "git://anongit.freedesktop.org/pulseaudio/pulseaudio" | |
sha1 "e420931a0b9cf37331cd06e30ba415046317ab85" | |
option :universal | |
depends_on "pkg-config" => :build | |
depends_on "libtool" => :build | |
depends_on "intltool" => :build if build.with? "nls" | |
depends_on "gettext" => :build if build.with? "nls" | |
depends_on "json-c" | |
depends_on "libsndfile" | |
depends_on "libsamplerate" | |
depends_on :x11 => :optional | |
depends_on "glib" => :optional | |
depends_on "gconf" => :optional | |
depends_on "d-bus" => :optional | |
depends_on "gtk+3" => :optional | |
depends_on "jack" => :optional | |
# i386 patch per MacPorts | |
patch :p0 do | |
url "https://trac.macports.org/export/119615/trunk/dports/audio/pulseaudio/files/i386.patch" | |
sha1 "4193a6112f90d103875d2ca91462c26d811a9386" | |
end | |
patch :p1 do | |
url "https://gist.githubusercontent.com/TagPro-PreciousRoy/304d59e192ec0ff4cc3c/raw/ccfe5ec5489546751e714216b94be465e37e5c89/configure.ac.diff" | |
sha1 "ce9cb3dd8b5a348a8fa8164ab757833e5f90f189" | |
end | |
patch :p1 do | |
url "https://gist.githubusercontent.com/TagPro-PreciousRoy/304d59e192ec0ff4cc3c/raw/fedb61c988e506be2863f5fef7c14b2bce05ab6c/pulseaudio.diff" | |
sha1 "84e3ad906c827f0491df6b083070746473db9a52" | |
end | |
fails_with :clang do | |
build 421 | |
cause "error: thread-local storage is unsupported for the current target" | |
end | |
def install | |
args = %W[ | |
--prefix=#{prefix} | |
--enable-coreaudio-output | |
--disable-neon-opt | |
--with-mac-sysroot=/ | |
] | |
args << "--with-mac-sysroot=#{MacOS.sdk_path}" | |
args << "--with-mac-version-min=#{MacOS.version}" | |
if build.universal? | |
args << "--enable-mac-universal" | |
ENV.universal_binary | |
end | |
system "/opt/local/bin/autoconf" | |
system "./configure", *args | |
system "make", "install" | |
end | |
end |
This file contains hidden or 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
require 'formula' | |
class Pulseaudio < Formula | |
homepage "http://pulseaudio.org" | |
head "git://anongit.freedesktop.org/pulseaudio/pulseaudio" | |
sha1 "e420931a0b9cf37331cd06e30ba415046317ab85" | |
option :universal | |
depends_on "pkg-config" => :build | |
depends_on "libtool" => :build | |
depends_on "intltool" => :build if build.with? "nls" | |
depends_on "gettext" => :build if build.with? "nls" | |
depends_on "json-c" | |
depends_on "libsndfile" | |
depends_on "libsamplerate" | |
depends_on :x11 => :optional | |
depends_on "glib" => :optional | |
depends_on "gconf" => :optional | |
depends_on "d-bus" => :optional | |
depends_on "gtk+3" => :optional | |
depends_on "jack" => :optional | |
# i386 patch per MacPorts | |
patch :p0 do | |
url "https://trac.macports.org/export/119615/trunk/dports/audio/pulseaudio/files/i386.patch" | |
sha1 "4193a6112f90d103875d2ca91462c26d811a9386" | |
end | |
patch :p1 do | |
url "https://gist.githubusercontent.com/TagPro-PreciousRoy/256f90d88ce2dfb4d82f/raw/ccfe5ec5489546751e714216b94be465e37e5c89/configure.in.diff" | |
sha1 "ce9cb3dd8b5a348a8fa8164ab757833e5f90f189" | |
end | |
patch :p1 do | |
url "https://gist.githubusercontent.com/TagPro-PreciousRoy/256f90d88ce2dfb4d82f/raw/fedb61c988e506be2863f5fef7c14b2bce05ab6c/pulseaudio-5.0.diff" | |
sha1 "84e3ad906c827f0491df6b083070746473db9a52" | |
end | |
fails_with :clang do | |
build 421 | |
cause "error: thread-local storage is unsupported for the current target" | |
end | |
def install | |
args = %W[ | |
--prefix=#{prefix} | |
--enable-coreaudio-output | |
--disable-neon-opt | |
--with-mac-sysroot=/ | |
] | |
args << "--with-mac-sysroot=#{MacOS.sdk_path}" | |
args << "--with-mac-version-min=#{MacOS.version}" | |
if build.universal? | |
args << "--enable-mac-universal" | |
ENV.universal_binary | |
end | |
system "/opt/local/bin/autoconf" | |
system "./configure", *args | |
system "make", "install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment