[Lunar-commits] <moonbase> qt4: Adjusting the BUILD.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Fri Sep 17 11:41:06 CEST 2010


commit 930adfb4b00c3ab162a6116cfce3f11d98b06e3a
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Fri Sep 17 05:41:06 2010 -0400

    qt4: Adjusting the BUILD.
---
 qt4-apps/qt4/BUILD |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/qt4-apps/qt4/BUILD b/qt4-apps/qt4/BUILD
index a9aa537..bb64bbd 100644
--- a/qt4-apps/qt4/BUILD
+++ b/qt4-apps/qt4/BUILD
@@ -6,6 +6,7 @@
 
   sedit "s:COMMERCIAL_USER=ask:COMMERCIAL_USER=no:" configure &&
   sedit "s/-O2/$CFLAGS/" mkspecs/common/g++.conf &&
+  sedit "s/-Wl,-O1/$LDFLAGS/" mkspecs/common/g++.conf &&
 
   if [ "$MAKE_DOCS" == "y" ]; then
     OPTS+=" -make tools -make docs -make translations"
@@ -15,24 +16,25 @@
     OPTS+=" -make examples -make demos -make tools -make docs -make translations"
   fi &&
 
-  OPTS="-largefile -multimedia -audio-backend -no-separate-debug-info -script -release -scripttools -accessibility -glib -optimized-qmake -no-phonon -xmlpatterns -fast -shared" &&
+  OPTS="-largefile -multimedia -audio-backend -no-separate-debug-info -script -release -scripttools -accessibility -glib -optimized-qmake -xmlpatterns -fast -shared" &&
 
-  echo "yes" | ./configure                                     \
-               -prefix ${MODULE_PREFIX}                        \
-               -docdir ${MODULE_PREFIX}/share/$MODULE          \
-               -plugindir /opt/lunar/plugins/qt4               \
-               -datadir ${MODULE_PREFIX}/share/$MODULE         \
-               -translationdir ${MODULE_PREFIX}/share/$MODULE  \
-               -sysconfdir /etc/$MODULE/                       \
-               -examplesdir ${MODULE_PREFIX}/share/$MODULE     \
-               -demosdir ${MODULE_PREFIX}/share/$MODULE        \
-               $OPTS                                           &&
+  echo "yes" | ./configure                             \
+               -prefix /usr                            \
+               -docdir /usr/share/$MODULE              \
+               -plugindir /usr/lib/$MODULE/plugins     \
+               -datadir /usr/share/$MODULE             \
+               -translationdir /usr/share/$MODULE      \
+               -sysconfdir /etc/$MODULE                \
+               -examplesdir /usr/share/doc/$MODULE     \
+               -demosdir /usr/share/doc/$MODULE        \
+               $OPTS                                  &&
 
   default_make  &&
 
 # It wants to point moc_location and uic_location to ${prefix}/src/qt-everywhere-opensource-src-4.7.0-beta2/bin
 # and after much fiddling cannot get it to point them to /usr/bin. So lets jsut sedit these rascals.
   for i in `ls /usr/lib/pkgconfig/Q*.pc` ; do sed -i "s:\${prefix}/src/qt-everywhere-opensource-src-$VERSION/:\${prefix}/:" $i ; done &&
+  sed -i "s:\${prefix}/src/qt-everywhere-opensource-src-$VERSION/:\${prefix}/:"  /usr/lib/pkgconfig/phonon.pc &&
 
   if [ "$MAKE_QDOC3" == "y" ]; then
      cd tools/qdoc3 &&


More information about the Lunar-commits mailing list