[Lunar-commits] qt4: create a symlink qmake-qt4 -> qmake, which is helpful

Florin Braescu florin at lunar-linux.org
Sat Jan 12 23:33:25 CET 2008


commit 171770e0d5b966bc3bfe810aa18c689c47c101c8
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Jan 13 00:33:25 2008 +0200

    qt4: create a symlink qmake-qt4 -> qmake, which is helpful
---
 libs/qt4/BUILD |   32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/libs/qt4/BUILD b/libs/qt4/BUILD
index f530436..26a93ae 100644
--- a/libs/qt4/BUILD
+++ b/libs/qt4/BUILD
@@ -7,35 +7,37 @@
   sedit "s/-O2/$CXXFLAGS/" mkspecs/linux-g++/qmake.conf  &&
 
   case  $QT3_SUPPORT  in
-    y|Y)  OPTS="$OPTS -qt3support"  ;;
+    y|Y)  OPTS="$OPTS -qt3support"     ;;
     n|N)  OPTS="$OPTS -no-qt3support"  ;;
   esac &&
 
   echo "yes" | ./configure               \
                -prefix ${MODULE_PREFIX}  \
-               -release         \
-               -fast                \
-               -shared          \
-               -qt-gif          \
-               -system-libpng   \
-               -system-libjpeg  \
-               -system-libmng   \
-               -system-zlib     \
-               -no-exceptions   \
-               -nomake examples \
-               -nomake demos        \
-               $OPTS           &&
+               -release          \
+               -fast             \
+               -shared           \
+               -qt-gif           \
+               -system-libpng    \
+               -system-libjpeg   \
+               -system-libmng    \
+               -system-zlib      \
+               -no-exceptions    \
+               -nomake examples  \
+               -nomake demos     \
+               $OPTS            &&
 
   default_make  &&
 
+  ln -sf  $QTDIR/bin/qmake  $QTDIR/bin/qmake-qt4  &&
+
   if ! grep -q "${MODULE_PREFIX}/lib" /etc/ld.so.conf; then
     echo "${MODULE_PREFIX}/lib" >> /etc/ld.so.conf
-  fi &&
+  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}'\"  \
-        >> $SOURCE_DIRECTORY/qt4.rc &&
+        >> $SOURCE_DIRECTORY/qt4.rc  &&
 
   install -m644 $SOURCE_DIRECTORY/qt4.rc /etc/profile.d/
 


More information about the Lunar-commits mailing list