diff options
| author | Steffen Matthischke | 2013-09-20 17:00:53 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-28 19:42:37 -0700 |
| commit | dab3fbfc0dea14278e669bfe2ba87b34d1a21f0d (patch) | |
| tree | ac35edd6cb3c9e9e024dd210a5611f73cddf39a9 /Library | |
| parent | 1f01ff752b102bcfd34d5f97d47a276fd5f3c537 (diff) | |
| download | homebrew-dab3fbfc0dea14278e669bfe2ba87b34d1a21f0d.tar.bz2 | |
x265 0.4.1
Closes #22708.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/x265.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/x265.rb b/Library/Formula/x265.rb new file mode 100644 index 000000000..4b7d16311 --- /dev/null +++ b/Library/Formula/x265.rb @@ -0,0 +1,35 @@ +require 'formula' + +class X265 < Formula + homepage 'http://x265.org' + url 'https://bitbucket.org/multicoreware/x265/get/0.4.1.tar.bz2' + sha1 'a3441aa6f1dc0940b89a53bec8031492bca1fa86' + + head 'https://bitbucket.org/multicoreware/x265', :using => :hg + + depends_on 'yasm' => :build + depends_on 'cmake' => :build + depends_on :macos => :lion + + fails_with :gcc do + build 5666 + cause '-mstackrealign not supported in the 64bit mode' + end + + fails_with :llvm do + build 2335 + cause '-mstackrealign not supported in the 64bit mode' + end + + def install + + args = std_cmake_args + args.delete '-DCMAKE_BUILD_TYPE=None' + args << '-DCMAKE_BUILD_TYPE=Release' + ENV.append 'CXXFLAGS', '-mavx2' + + system "cmake", "source", *args + system "make" + bin.install 'x265' + end +end |
