Skip to content

Commit

Permalink
libsamplerate: remove options
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert committed Jan 5, 2019
1 parent 9e0616b commit a6f64c9
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions Formula/libsamplerate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Libsamplerate < Formula
homepage "http://www.mega-nerd.com/SRC"
url "http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz"
sha256 "0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1"
revision 1

bottle do
cellar :any
Expand All @@ -14,8 +15,7 @@ class Libsamplerate < Formula
end

depends_on "pkg-config" => :build
depends_on "fftw" => :optional
depends_on "libsndfile" => :optional
depends_on "libsndfile"

# configure adds `/Developer/Headers/FlatCarbon` to the include, but this is
# very deprecated. Correct the use of Carbon.h to the non-flat location.
Expand All @@ -26,21 +26,6 @@ def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
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

Expand Down

0 comments on commit a6f64c9

Please sign in to comment.