[Lunar-commits] r15523 - in moonbase/trunk/zbeta: . qt

Florin Braescu florin at lunar-linux.org
Wed Jun 29 19:19:34 UTC 2005


Author: florin
Date: 2005-06-29 19:19:33 +0000 (Wed, 29 Jun 2005)
New Revision: 15523

Added:
   moonbase/trunk/zbeta/qt/
   moonbase/trunk/zbeta/qt/BUILD
   moonbase/trunk/zbeta/qt/CONFIGURE
   moonbase/trunk/zbeta/qt/DEPENDS
   moonbase/trunk/zbeta/qt/DETAILS
   moonbase/trunk/zbeta/qt/POST_INSTALL
   moonbase/trunk/zbeta/qt/PRE_BUILD
Log:
add a Qt 4.0.0 base module. it's not compatible with kde 3.4.x (stated ob Trolltech site). it's dedicated to the curious ppl.

Added: moonbase/trunk/zbeta/qt/BUILD
===================================================================
--- moonbase/trunk/zbeta/qt/BUILD	2005-06-29 15:01:46 UTC (rev 15522)
+++ moonbase/trunk/zbeta/qt/BUILD	2005-06-29 19:19:33 UTC (rev 15523)
@@ -0,0 +1,57 @@
+(
+  export  YACC=byacc
+  export  QT_PREFIX=${QT_PREFIX:-/opt/lunar/qt}
+  export  QTDIR=$SOURCE_DIRECTORY
+  export  PATH=$QTDIR/bin:$PATH
+  export  LD_LIBRARY_PATH=$QTDIR/lib
+
+  prepare_install  &&
+
+  sedit "s/-O2/$CXXFLAGS/" mkspecs/linux-g++/qmake.conf  &&
+
+  echo  "yes"  |  ./configure  -release                      \
+                               -shared                       \
+                               -thread                       \
+                               -qt-gif                       \
+                               -plugin-imgfmt-mng            \
+                               -system-libpng                \
+                               -system-libjpeg               \
+                               -system-zlib                  \
+                               -no-g++-exceptions            \
+                               -thread                       \
+                               -no-stl                       \
+                               -dlopen-opengl                \
+                               -prefix ${QT_PREFIX:-$QTDIR}  \
+                               -xft                          \
+                               $OPTS                        &&
+
+  case $SAMPCOMP in
+    y|Y|j|J)
+      make
+      ;;
+    *)
+      make symlinks sub-src sub-tools
+      ;;
+  esac  &&
+
+  rm bin/qmake              &&     
+  cp qmake/qmake bin/qmake  &&
+  make install              &&
+
+  case $SAMPIN in
+    y|Y|j|J)
+      mv examples  ${QT_PREFIX:-$QTDIR}  &&
+      mv tutorial  ${QT_PREFIX:-$QTDIR}
+      ;;
+  esac  &&
+
+  if ! grep -q "${QT_PREFIX:-$QTDIR}/lib" /etc/ld.so.conf; then
+    echo "${QT_PREFIX:-$QTDIR}/lib" >> /etc/ld.so.conf
+  fi
+
+  if [ ! -f /etc/profile.d/qt.rc ]; then
+    echo "export QTDIR=$QT_PREFIX" > /etc/profile.d/qt.rc
+    echo "export PATH=\$QTDIR/bin:\$PATH" >> /etc/profile.d/qt.rc
+  fi
+
+) > $C_FIFO 2>&1

Added: moonbase/trunk/zbeta/qt/CONFIGURE
===================================================================
--- moonbase/trunk/zbeta/qt/CONFIGURE	2005-06-29 15:01:46 UTC (rev 15522)
+++ moonbase/trunk/zbeta/qt/CONFIGURE	2005-06-29 19:19:33 UTC (rev 15523)
@@ -0,0 +1,2 @@
+mquery SAMPIN "Install Qt examples and tutorials?" y
+mquery SAMPCOMP "Pre-compile Qt examples and tutorials?" n

Added: moonbase/trunk/zbeta/qt/DEPENDS
===================================================================
--- moonbase/trunk/zbeta/qt/DEPENDS	2005-06-29 15:01:46 UTC (rev 15522)
+++ moonbase/trunk/zbeta/qt/DEPENDS	2005-06-29 19:19:33 UTC (rev 15523)
@@ -0,0 +1,9 @@
+depends  byacc     &&
+depends  libungif  &&
+depends  libmng    &&
+depends  %X  &&
+
+optional_depends  "mysql"                                                    \
+                  "-plugin-sql-mysql -I/usr/include/mysql -L/usr/lib/mysql"  \
+                  "-no-sql-mysql"                                            \
+                  "for mysql database support"

Added: moonbase/trunk/zbeta/qt/DETAILS
===================================================================
--- moonbase/trunk/zbeta/qt/DETAILS	2005-06-29 15:01:46 UTC (rev 15522)
+++ moonbase/trunk/zbeta/qt/DETAILS	2005-06-29 19:19:33 UTC (rev 15523)
@@ -0,0 +1,31 @@
+          MODULE=qt-x11-opensource-desktop
+         VERSION=4.0.0
+          SOURCE=$MODULE-$VERSION.tar.bz2
+   SOURCE_URL[0]=ftp://ftp.trolltech.com/qt/source/
+   SOURCE_URL[1]=http://gd.tuwien.ac.at/hci/qt/source/
+      SOURCE_VFY=sha1:0a74bc1ada9e68ab36ede26e85b0e2793b46ee73
+        WEB_SITE=http://www.trolltech.com/qt
+         ENTERED=20050629
+         UPDATED=20050629
+         GARBAGE=off
+      FTP_PASSIVE=on
+      MAINTAINER=florin at lunar-linux.org
+           SHORT="Qt is a C++ toolkit for application development."
+
+cat << EOF
+Qt is a C++ toolkit for application development. It lets application 
+developers target all major operating systems with a single application 
+source code.
+
+Qt provides a platform-independent API to all central platform 
+functionality: GUI, database access, networking, file handling, etc. The 
+Qt library encapsulates the different APIs of different operating systems, 
+providing the application programmer with a single, common API for all 
+operating systems. The native C APIs are encapsulated in a set of 
+well-designed, fully object-oriented C++ classes. 
+
+Certain environment variables must be defined before compiling and using 
+applications that depend on qt.
+QTDIR=/opt/lunar/qt/
+PATH=/opt/lunar/qt/bin:$PATH
+EOF

Added: moonbase/trunk/zbeta/qt/POST_INSTALL
===================================================================
--- moonbase/trunk/zbeta/qt/POST_INSTALL	2005-06-29 15:01:46 UTC (rev 15522)
+++ moonbase/trunk/zbeta/qt/POST_INSTALL	2005-06-29 19:19:33 UTC (rev 15523)
@@ -0,0 +1,4 @@
+if module_installed kdelibs3;     then lin kdelibs3;     fi
+if module_installed kdeartwork3;  then lin kdeartwork3;  fi
+if module_installed sip;          then lin sip;          fi
+if module_installed PyQt;         then lin PyQt;         fi

Added: moonbase/trunk/zbeta/qt/PRE_BUILD
===================================================================
--- moonbase/trunk/zbeta/qt/PRE_BUILD	2005-06-29 15:01:46 UTC (rev 15522)
+++ moonbase/trunk/zbeta/qt/PRE_BUILD	2005-06-29 19:19:33 UTC (rev 15523)
@@ -0,0 +1,15 @@
+cat << EOF
+Certain environment variables must be defined before compiling and using qt 
+and applications that depend on qt, QT_PREFIX and/or QTDIR. 
+The default values are:
+   QT_PREFIX= 
+   QTDIR=/opt/lunar/qt. 
+You can put the file actual.rc in the /etc/profile.d directory containing the 
+new value of QT_PREFIX, and it's value will be used as the location where the 
+qt module to be installed. QTDIR value is used as a default value unless a 
+new value is set for QT_PREFIX. Remember to logout and login again after you
+put/alter the actual.rc file, in order to be processed, and after that to 
+begin the qt install process.
+EOF
+
+default_pre_build



More information about the Lunar-commits mailing list