Browse Source

Tobias Hintze <th@rocklinux.org>:


			
			
				rocklinux
			
			
		
Tobias Hintze 20 years ago
parent
commit
96a2a732ea
3 changed files with 80 additions and 4 deletions
  1. +33
    -0
      package/kde/qt/config.hlp
  2. +29
    -0
      package/kde/qt/config.in
  3. +18
    -4
      package/kde/qt/qt.conf

+ 33
- 0
package/kde/qt/config.hlp

@ -0,0 +1,33 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/kde/qt/config.hlp
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
MENU_PKG_QT
Options for building the Qt widget library
ROCKCFG_PKG_QT_STATIC
Please check here if you want to build static qt libraries.
Static libraries will be built in a second build-pass to provide
both: shared and static libraries. Qt binaries will use shared
objects.
NOTE: Enabling this option will increase qt-build-time dramatically.

+ 29
- 0
package/kde/qt/config.in

@ -0,0 +1,29 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/kde/qt/config.in
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
if pkgcheck qt X
then
menu_begin MENU_PKG_QT 'Qt widget library Options'
bool 'Build static qt libraries (see help)' \
ROCKCFG_PKG_QT_STATIC 0
menu_end
fi

+ 18
- 4
package/kde/qt/qt.conf

@ -25,14 +25,14 @@ if [ $prefix_auto = 1 ] ; then
set_confopt
fi
qt_main() {
qt_pass() {
QTDIR=$PWD
var_insert LD_LIBRARY_PATH ':' "$QTDIR/lib"
var_insert PATH ':' "$QTDIR/bin"
export QTDIR LD_LIBRARY_PATH PATH
# Qt only supports some selected options ...
confopt="-prefix $root/$prefix -thread -qt-gif -system-zlib \
confopt="-prefix $root/$prefix $1 -thread -qt-gif -system-zlib \
-system-libmng -system-libpng -system-libjpeg -xft -xrender \
-no-g++-exceptions -no-stl"
@ -47,9 +47,14 @@ qt_main() {
eval $MAKE ; eval $MAKE install
# create compatibility links ...
(cd $root/$prefix/lib/ ; for x in libqt-mt.so* ; do
(
cd $root/$prefix/lib/
for x in libqt-mt.so*
do
ln -svf $x ${x/-mt}
done)
done
[ -f libqt-mt.a ] && ln -svf libqt-mt.a libqt.a
)
echo "Copy some documentation ..."
# to be done in another package: examples extensions tutorial tools ...
@ -65,6 +70,15 @@ export QT33DIR QTDIR
EOT
}
qt_main() {
if [ "$ROCKCFG_PKG_QT_STATIC" = "1" ] ; then
echo "running -static build-pass..."
qt_pass -static
fi
echo "running -shared build-pass..."
qt_pass
}
createdocs=0
custmain=qt_main

Loading…
Cancel
Save