libsamplerate: remove options
This commit is contained in:
parent
9e0616be66
commit
a6f64c9796
1 changed files with 2 additions and 17 deletions
|
@ -3,6 +3,7 @@ class Libsamplerate < Formula
|
||||||
homepage "http://www.mega-nerd.com/SRC"
|
homepage "http://www.mega-nerd.com/SRC"
|
||||||
url "http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz"
|
url "http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz"
|
||||||
sha256 "0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1"
|
sha256 "0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1"
|
||||||
|
revision 1
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
cellar :any
|
cellar :any
|
||||||
|
@ -14,8 +15,7 @@ class Libsamplerate < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on "pkg-config" => :build
|
depends_on "pkg-config" => :build
|
||||||
depends_on "fftw" => :optional
|
depends_on "libsndfile"
|
||||||
depends_on "libsndfile" => :optional
|
|
||||||
|
|
||||||
# configure adds `/Developer/Headers/FlatCarbon` to the include, but this is
|
# configure adds `/Developer/Headers/FlatCarbon` to the include, but this is
|
||||||
# very deprecated. Correct the use of Carbon.h to the non-flat location.
|
# very deprecated. Correct the use of Carbon.h to the non-flat location.
|
||||||
|
@ -26,21 +26,6 @@ class Libsamplerate < Formula
|
||||||
system "./configure", "--disable-dependency-tracking",
|
system "./configure", "--disable-dependency-tracking",
|
||||||
"--prefix=#{prefix}"
|
"--prefix=#{prefix}"
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
|
|
||||||
# https://github.com/Homebrew/homebrew/issues/47133
|
|
||||||
# Unless formula is built with libsndfile, the example program is broken.
|
|
||||||
rm_f "#{bin}/sndfile-resample" if build.without? "libsndfile"
|
|
||||||
end
|
|
||||||
|
|
||||||
def caveats
|
|
||||||
s = ""
|
|
||||||
if build.without? "libsndfile"
|
|
||||||
s += <<~EOS
|
|
||||||
Unless this formula is built with libsndfile, the example program,
|
|
||||||
"sndfile-resample", is broken and hence, removed from installation.
|
|
||||||
EOS
|
|
||||||
end
|
|
||||||
s
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue