[Lunar-commits] <moonbase> polkit-qt: fix the compilation.

Florin Braescu florin at lunar-linux.org
Fri Sep 25 16:44:05 CEST 2009


commit c605010fb30fb4871b9a2438b254a98655c1a4ff
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Fri Sep 25 17:44:05 2009 +0300

    polkit-qt: fix the compilation.
---
 qt4-apps/polkit-qt/BUILD   |   14 ++++++++------
 qt4-apps/polkit-qt/DETAILS |    1 +
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/qt4-apps/polkit-qt/BUILD b/qt4-apps/polkit-qt/BUILD
index 80cc584..169325d 100644
--- a/qt4-apps/polkit-qt/BUILD
+++ b/qt4-apps/polkit-qt/BUILD
@@ -1,17 +1,19 @@
 (
 
-  sedit "s:lib64/automoc4:lib64/automoc4 opt/lunar/kde/4/lib/automoc4/:" cmake/modules/FindAutomoc4.cmake
+  KDE4_PREFIX=${KDE4_INSTALL_DIR:-/opt/lunar/kde/4}
+
+  sedit "s:lib64/automoc4:lib64/automoc4 $KDE4_PREFIX/lib/automoc4/:" cmake/modules/FindAutomoc4.cmake
 
   BUILD_DIR="$SOURCE_DIRECTORY/build_dir"
 
-  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 $BUILD_DIR &&
-  cd $BUILD_DIR &&
+  mkdir $BUILD_DIR  &&
+  cd $BUILD_DIR     &&
 
   cmake $SOURCE_DIRECTORY/ -DCMAKE_INSTALL_PREFIX=$MODULE_PREFIX  \
-                           -DCMAKE_BUILD_TYPE=RELEASE             &&
+                           -DCMAKE_BUILD_TYPE=RELEASE            &&
 
   default_make
 
diff --git a/qt4-apps/polkit-qt/DETAILS b/qt4-apps/polkit-qt/DETAILS
index f619c71..3b21dde 100644
--- a/qt4-apps/polkit-qt/DETAILS
+++ b/qt4-apps/polkit-qt/DETAILS
@@ -8,6 +8,7 @@
          ENTERED=20090628
          UPDATED=20090805
            SHORT="PolicyKit API with a nice Qt-styled API"
+
 cat << EOF
 PolicyKit API with a nice Qt-styled API.
 EOF


More information about the Lunar-commits mailing list