[Lunar-commits] r19572 - in moonbase/trunk/zbeta: . qt4
Florin Braescu
florin at lunar-linux.org
Tue Apr 4 04:33:37 UTC 2006
Author: florin
Date: 2006-04-04 04:33:32 +0000 (Tue, 04 Apr 2006)
New Revision: 19572
Added:
moonbase/trunk/zbeta/qt4/
moonbase/trunk/zbeta/qt4/BUILD
moonbase/trunk/zbeta/qt4/CONFIGURE
moonbase/trunk/zbeta/qt4/DEPENDS
moonbase/trunk/zbeta/qt4/DETAILS
moonbase/trunk/zbeta/qt4/POST_INSTALL
moonbase/trunk/zbeta/qt4/PRE_BUILD
Log:
move qt to qt4 at Moe's proposal.
Added: moonbase/trunk/zbeta/qt4/BUILD
===================================================================
--- moonbase/trunk/zbeta/qt4/BUILD (rev 0)
+++ moonbase/trunk/zbeta/qt4/BUILD 2006-04-04 04:33:32 UTC (rev 19572)
@@ -0,0 +1,59 @@
+(
+ 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 \
+ -prefix ${MODULE_PREFIX} \
+ -release \
+ -fast \
+ -shared \
+ -thread \
+ -qt-gif \
+ -plugin-imgfmt-png \
+ -plugin-imgfmt-jpeg \
+ -plugin-imgfmt-mng \
+ -system-libpng \
+ -system-libjpeg \
+ -system-libmng \
+ -system-zlib \
+ -no-exceptions \
+ -thread \
+ -dlopen-opengl \
+ -xft \
+ -xkb \
+ -sm \
+ -tablet \
+ $OPTS &&
+
+ if [ "$SAMPIN" == "y" ] ; then
+ make
+ else
+ make sub-tools
+ fi &&
+
+ rm -f bin/qmake &&
+ cp qmake/qmake bin/qmake &&
+ make install &&
+
+ if [ "$SAMPIN" == "y" ] ; then
+ cp -a examples ${MODULE_PREFIX}/
+ cp -a tutorial ${MODULE_PREFIX}/
+ fi &&
+
+ 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}'\" \
+ >> $SOURCE_DIRECTORY/qt4.rc &&
+
+ install -m644 $SOURCE_DIRECTORY/qt4.rc /etc/profile.d/
+
+) > $C_FIFO 2>&1
Added: moonbase/trunk/zbeta/qt4/CONFIGURE
===================================================================
--- moonbase/trunk/zbeta/qt4/CONFIGURE (rev 0)
+++ moonbase/trunk/zbeta/qt4/CONFIGURE 2006-04-04 04:33:32 UTC (rev 19572)
@@ -0,0 +1 @@
+mquery SAMPIN "Install QT4 examples and tutorials?" n
Added: moonbase/trunk/zbeta/qt4/DEPENDS
===================================================================
--- moonbase/trunk/zbeta/qt4/DEPENDS (rev 0)
+++ moonbase/trunk/zbeta/qt4/DEPENDS 2006-04-04 04:33:32 UTC (rev 19572)
@@ -0,0 +1,19 @@
+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" &&
+
+optional_depends "sqlite" \
+ "-plugin-sql-sqlite -I/usr/include -L/usr/lib" \
+ "-no-sql-sqlite" \
+ "for sqlite database support" &&
+
+optional_depends "postgresql" \
+ "-plugin-sql-psql -I/usr/include/postgresql/server \
+ -L/usr/lib/postgresql" \
+ "-no-sql-psql" \
+ "for postgresql database support"
Added: moonbase/trunk/zbeta/qt4/DETAILS
===================================================================
--- moonbase/trunk/zbeta/qt4/DETAILS (rev 0)
+++ moonbase/trunk/zbeta/qt4/DETAILS 2006-04-04 04:33:32 UTC (rev 19572)
@@ -0,0 +1,32 @@
+ MODULE=qt4
+ VERSION=x11-opensource-src-4.1.2
+ SOURCE=qt-$VERSION.tar.gz
+ SOURCE_URL[0]=ftp://ftp.trolltech.com/qt/source/
+ SOURCE_URL[1]=http://gd.tuwien.ac.at/hci/qt/source/
+ SOURCE_VFY=sha1:a30ff8594b816528ab08ebcf349a31e244c4278d
+ MODULE_PREFIX=${QT_PREFIX:-/opt/lunar/qt4}
+ WEB_SITE=http://www.trolltech.com/qt
+ ENTERED=20050629
+ UPDATED=20060404
+ 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/qt4/
+PATH=/opt/lunar/qt4/bin:$PATH
+EOF
Added: moonbase/trunk/zbeta/qt4/POST_INSTALL
===================================================================
--- moonbase/trunk/zbeta/qt4/POST_INSTALL (rev 0)
+++ moonbase/trunk/zbeta/qt4/POST_INSTALL 2006-04-04 04:33:32 UTC (rev 19572)
@@ -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/qt4/PRE_BUILD
===================================================================
--- moonbase/trunk/zbeta/qt4/PRE_BUILD (rev 0)
+++ moonbase/trunk/zbeta/qt4/PRE_BUILD 2006-04-04 04:33:32 UTC (rev 19572)
@@ -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="${MODULE_PREFIX}"
+ QTDIR="${MODULE_PREFIX}"
+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