[Lunar-commits] <moonbase> phonon: add an optional depend on gst-bas-plugins and fix pkgconfig related path.

Florin Braescu florin at lunar-linux.org
Wed Jan 28 07:13:56 CET 2009


commit 76cb5b86c59b5f33661b5fbeb46d34fc75a3f12b
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Wed Jan 28 08:13:56 2009 +0200

    phonon: add an optional depend on gst-bas-plugins and fix pkgconfig related path.
---
 kde4/utils/phonon/BUILD   |   13 ++++++++-----
 kde4/utils/phonon/DEPENDS |    2 ++
 kde4/utils/phonon/DETAILS |   27 +++++++++++++--------------
 3 files changed, 23 insertions(+), 19 deletions(-)

diff --git a/kde4/utils/phonon/BUILD b/kde4/utils/phonon/BUILD
index 170891e..d85b4bd 100644
--- a/kde4/utils/phonon/BUILD
+++ b/kde4/utils/phonon/BUILD
@@ -1,17 +1,20 @@
 (
 
+  export CFLAGS="$CFLAGS -fPIC"
+
   KDE4_BUILD_DIR="$SOURCE_DIRECTORY/kde4-build"
 
-  source /etc/profile.d/qt4.rc  &&
-  source /etc/profile.d/kde4.rc &&
+  source /etc/profile.d/qt4.rc   &&
+  source /etc/profile.d/kde4.rc  &&
 
-  mkdir $KDE4_BUILD_DIR &&
-  cd $KDE4_BUILD_DIR    &&
+  patch_it $SOURCE_CACHE/$SOURCE2 1  &&
 
+  mkdir $KDE4_BUILD_DIR  &&
+  cd $KDE4_BUILD_DIR     &&
 
   cmake $SOURCE_DIRECTORY/ -DCMAKE_INSTALL_PREFIX=$MODULE_PREFIX  \
                            -DCMAKE_BUILD_TYPE=RELEASE            &&
 
-  default_make  
+  default_make
 
 ) > $C_FIFO 2>&1
diff --git a/kde4/utils/phonon/DEPENDS b/kde4/utils/phonon/DEPENDS
index 428f269..e8d8f53 100644
--- a/kde4/utils/phonon/DEPENDS
+++ b/kde4/utils/phonon/DEPENDS
@@ -1 +1,3 @@
 depends qt4
+
+optional_depends "gst-plugins-base"  ""  "" "for gstreamer audio support"
diff --git a/kde4/utils/phonon/DETAILS b/kde4/utils/phonon/DETAILS
index 6b155a5..58a9c37 100644
--- a/kde4/utils/phonon/DETAILS
+++ b/kde4/utils/phonon/DETAILS
@@ -2,26 +2,25 @@
            MAJOR=4.3
          VERSION=${MAJOR}.0
           SOURCE=$MODULE-$VERSION.tar.bz2
+         SOURCE2=$MODULE-pkgconfig_path.patch.bz2
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
-      SOURCE_URL=$KDE_URL/stable/$MODULE/$VERSION/
+      SOURCE_URL=$KDE_URL/stable/$MODULE/$VERSION
+     SOURCE2_URL=$PATCH_URL
       SOURCE_VFY=sha1:e0961fe8ad84725229d5d26f961665ed538d42d0
+     SOURCE2_VFY=sha1:706f90c96497c33835e448230ebe07f285537ff6
    MODULE_PREFIX=${KDE4_INSTALL_DIR:-/opt/lunar/kde/4}
         WEB_SITE=http://www.kde.org
          ENTERED=20080625
-         UPDATED=20090126
-           SHORT="multimedia API for KDE applications"
+         UPDATED=20090128
+           SHORT="Multimedia API for KDE applications"
+	   
 cat << EOF
-Before KDE3 there were talks about adding video support to aRts and
-fixing the problems people had with it, but in the end not much changed. 
-
-Phonon wants to fill in the gap and provide a multimedia API for KDE
-developers while at the same time giving the users more choices. With
-Phonon applications don't need to develop sound engines as Phonon
-provides them for free. Applications are written saying what they want
-and not how they want to do it. This leaves some room for the
-user/administrator to customize things. 
-
-If you need multimedia functionality in your program, Phonon is for you.
+  Phonon provides a multimedia API for KDE developers while at the same 
+time giving the users more choices. With Phonon applications don't need 
+to develop sound engines as Phonon provides them for free. Applications 
+are written saying what they want and not how they want to do it. This 
+leaves some room for the user/administrator to customize things. 
+  If you need multimedia functionality in your program, Phonon is for you.
 Use it from simple audio playback to full blown video playback with
 audio and video effects. Use it to record an audio signal or capture
 from a webcam. Use it to concentrate on your program and not on getting


More information about the Lunar-commits mailing list