2010-03-18 15:44:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class KdePhonon < Formula
|
2011-05-11 17:06:04 +00:00
|
|
|
url 'ftp://ftp.kde.org/pub/kde/stable/phonon/4.5.0/src/phonon-4.5.0.tar.bz2'
|
2010-03-18 15:44:05 +00:00
|
|
|
homepage 'http://phonon.kde.org/'
|
2011-05-11 17:06:04 +00:00
|
|
|
md5 '32f8d388c18fde2e23dea7bb103f9713'
|
2010-03-18 15:44:05 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'automoc4' => :build
|
2010-03-18 15:44:05 +00:00
|
|
|
depends_on 'qt'
|
2011-02-24 15:38:17 +00:00
|
|
|
depends_on 'glib' => :build
|
2010-03-18 15:44:05 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
keg_only "This package is already supplied by Qt and is only needed by KDE packages."
|
2010-04-18 13:17:46 +00:00
|
|
|
|
2010-03-18 15:44:05 +00:00
|
|
|
def install
|
2011-06-22 19:42:14 +00:00
|
|
|
inreplace 'cmake/FindPhononInternal.cmake',
|
|
|
|
'BAD_ALLOCATOR AND NOT WIN32', 'BAD_ALLOCATOR AND NOT APPLE'
|
2010-03-18 15:44:05 +00:00
|
|
|
system "cmake . #{std_cmake_parameters}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|