```ruby
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
    system "cmake . #{std_cmake_parameters}"
    system "make install"
  end
end
```

Patch phonon-kde to avoid incorrect error.
user
```ruby
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
```
assistant