[Lunar-commits] <moonbase> qt4: Cut the compile time in half. Reduce the size to a 10th of the original.

Moritz Heiber moe at lunar-linux.org
Fri May 16 17:19:51 CEST 2008


commit 528d0366edcadcf26921433133b56ee99b37b994
Author: Moritz Heiber <moe at lunar-linux.org>
Date:   Fri May 16 17:19:51 2008 +0200

    qt4: Cut the compile time in half. Reduce the size to a 10th of the original.
---
 kde4/base/qt4/BUILD        |   10 +++++-----
 kde4/base/qt4/CONFIGURE    |    1 +
 kde4/base/qt4/POST_INSTALL |    2 ++
 kde4/base/qt4/POST_REMOVE  |    1 +
 4 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/kde4/base/qt4/BUILD b/kde4/base/qt4/BUILD
index 80aefde..b3c9b40 100644
--- a/kde4/base/qt4/BUILD
+++ b/kde4/base/qt4/BUILD
@@ -6,12 +6,15 @@
 
   sedit "s/-O2/$CXXFLAGS/" mkspecs/linux-g++/qmake.conf  &&
 
-  OPTS="$OPTS -qt3support"
+  if in_depends qt4 sqlite ; then
+    OPTS+=" -system-sqlite"
+  fi
 
   echo "yes" | ./configure               \
                -prefix ${MODULE_PREFIX}  \
                -release          \
                -fast             \
+               -no-separate-debug-info \
                -shared           \
                -qt-gif           \
                -system-libpng    \
@@ -25,14 +28,11 @@
                -stl              \
                -webkit           \
                -fontconfig       \
+               -qt3support       \
                $OPTS            &&
 
   default_make  &&
 
-  if ! grep -q "${MODULE_PREFIX}/lib" /etc/ld.so.conf; then
-    echo "${MODULE_PREFIX}/lib" >> /etc/ld.so.conf
-  fi  &&
-
   echo "export QTDIR=\"${MODULE_PREFIX}\"" >> $SOURCE_DIRECTORY/qt4.rc  &&
   echo export PATH=\"'${QTDIR}'/bin:'${PATH}'\" >> $SOURCE_DIRECTORY/qt4.rc  &&
   echo export PKG_CONFIG_PATH=\"'${QTDIR}'/lib/pkgconfig:'${PKG_CONFIG_PATH}'\"  \
diff --git a/kde4/base/qt4/CONFIGURE b/kde4/base/qt4/CONFIGURE
new file mode 100644
index 0000000..4d548d5
--- /dev/null
+++ b/kde4/base/qt4/CONFIGURE
@@ -0,0 +1 @@
+mquery "Build the QT4 documentation?" n "-make docs" "-nomake docs"
diff --git a/kde4/base/qt4/POST_INSTALL b/kde4/base/qt4/POST_INSTALL
index 5d890f0..b9768af 100644
--- a/kde4/base/qt4/POST_INSTALL
+++ b/kde4/base/qt4/POST_INSTALL
@@ -1,2 +1,4 @@
+ld_add $MODULE_PREFIX/lib
+
 if module_installed sip;   then lin sip;   fi
 if module_installed PyQt;  then lin PyQt;  fi
diff --git a/kde4/base/qt4/POST_REMOVE b/kde4/base/qt4/POST_REMOVE
new file mode 100644
index 0000000..a51e5a0
--- /dev/null
+++ b/kde4/base/qt4/POST_REMOVE
@@ -0,0 +1 @@
+ld_remove $MODULE_PREFIX/lib


More information about the Lunar-commits mailing list