aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/kde-phonon.rb
blob: 887bc5d44368c0fff999f3d679a0d83b4f1b3664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class KdePhonon < Formula
  url 'ftp://ftp.kde.org/pub/kde/stable/phonon/4.5.0/src/phonon-4.5.0.tar.bz2'
  homepage 'http://phonon.kde.org/'
  md5 '32f8d388c18fde2e23dea7bb103f9713'

  depends_on 'cmake' => :build
  depends_on 'automoc4' => :build
  depends_on 'qt'
  depends_on 'glib' => :build

  keg_only "This package is already supplied by Qt and is only needed by KDE packages."

  def install
    inreplace 'cmake/FindPhononInternal.cmake',
        'BAD_ALLOCATOR AND NOT WIN32', 'BAD_ALLOCATOR AND NOT APPLE'
    system "cmake . #{std_cmake_parameters}"
    system "make install"
  end
end