2013-09-20 15:00:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class X265 < Formula
|
|
|
|
homepage 'http://x265.org'
|
2013-12-04 17:46:26 +00:00
|
|
|
url 'https://bitbucket.org/multicoreware/x265/get/0.6.tar.bz2'
|
|
|
|
sha1 '67221e7455a3b844d1c6edad771df3b299dab442'
|
2013-09-20 15:00:53 +00:00
|
|
|
|
|
|
|
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'
|
|
|
|
|
|
|
|
system "cmake", "source", *args
|
|
|
|
system "make"
|
2013-10-30 00:36:54 +00:00
|
|
|
system "make", "install"
|
2013-09-20 15:00:53 +00:00
|
|
|
end
|
|
|
|
end
|