aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/taglib.rb
blob: ed8aab43beac4432cf13a5a2c5cfad60880b8c0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'formula'

class Taglib < Formula
  homepage 'http://taglib.github.io/'
  url 'https://github.com/taglib/taglib/archive/v1.9.1.tar.gz'
  sha1 '44165eda04d49214a0c4de121a4d99ae18b9670b'

  head "https://github.com/taglib/taglib.git"

  bottle do
    cellar :any
    revision 1
    sha1 "431580f12a7811288b6e3b187ca75bf5e321fd7c" => :yosemite
    sha1 "7b9a9466fcbfb5952b7c97e739fa38a94e110f16" => :mavericks
    sha1 "9f12bf0949b250e67cb606cf389a99d7d2bc49ca" => :mountain_lion
  end

  depends_on 'cmake' => :build

  option :cxx11

  def install
    ENV.cxx11 if build.cxx11?
    ENV.append 'CXXFLAGS', "-DNDEBUG=1"
    system "cmake", "-DWITH_MP4=ON", "-DWITH_ASF=ON", *std_cmake_args
    system "make"
    system "make install"
  end
end