Skip to content

Commit

Permalink
Fixed l-smash Linux build
Browse files Browse the repository at this point in the history
Closes #6.

Signed-off-by: Rainbaby <[email protected]>
  • Loading branch information
saindriches committed Jan 20, 2024
1 parent 4f8e4c2 commit e604ae5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Formula/l-smash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class LSmash < Formula
url "https://github.com/vimeo/l-smash/archive/refs/tags/v2.18.0.tar.gz"
sha256 "9a2ae612e3d84116225725013cda2a6e996f65767d923fc07bb67025de9d2215"
license "ISC"
revision 1
head "https://github.com/vimeo/l-smash.git", branch: "master"

bottle do
Expand All @@ -16,7 +17,9 @@ class LSmash < Formula
depends_on "saindriches/vapoursynth/obuparse"

def install
system "./configure", "--prefix=#{prefix}"
ENV.append_to_cflags "-fPIC" if OS.linux?

system "./configure", "--prefix=#{prefix}", "--extra-cflags=#{ENV.cflags}"
system "make", "install"
end
end

0 comments on commit e604ae5

Please sign in to comment.