2013-02-14 22:15:11 +11:00
|
|
|
# Description: Qt Free Edition
|
|
|
|
# URL: http://www.trolltech.com
|
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
|
|
# Depends on: fontconfig-32 glib-32 libmng-32 libpng-32 mesa3d-32 xorg-libxcursor-32 xorg-libxi-32 xorg-libxinerama-32 xorg-libxrandr-32 dbus-32 qt4
|
|
|
|
|
|
|
|
name=qt4-32
|
2013-10-09 23:20:05 +11:00
|
|
|
version=4.8.5
|
|
|
|
release=1
|
|
|
|
source=(http://download.qt-project.org/official_releases/qt/${version%.*}/$version/qt-everywhere-opensource-src-$version.tar.gz)
|
2013-02-14 22:15:11 +11:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd qt-everywhere-opensource-src-$version
|
|
|
|
|
|
|
|
sed -i 's|X11R6/||g' mkspecs/*/*.conf
|
|
|
|
sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++-unix.conf
|
|
|
|
sed -i "s|INSTALLS += translations||" projects.pro
|
|
|
|
sed -i 's|"$COMPILER" -c|$COMPILER -c|' config.tests/unix/fvisibility.test
|
|
|
|
|
|
|
|
./configure -prefix /usr/share/qt4 \
|
|
|
|
-bindir /usr/share/qt4/bin \
|
|
|
|
-headerdir /usr/share/qt4/include \
|
|
|
|
-libdir /usr/share/qt4/lib32 \
|
2013-03-27 01:53:15 +11:00
|
|
|
-plugindir /usr/share/qt4/plugins-32 \
|
2013-02-14 22:15:11 +11:00
|
|
|
-platform linux-g++ -release -shared -sm \
|
|
|
|
-nis -verbose -system-zlib \
|
|
|
|
-system-lib{png,jpeg} -xmlpatterns \
|
|
|
|
-no-{cups,fast,nas-sound,phonon} \
|
2013-03-27 01:53:15 +11:00
|
|
|
-no-sql-{db2,ibase,mysql,oci,odbc,psql,sqlite,sqlite2,sqlite_symbian,symsql,tds} \
|
2013-02-14 22:15:11 +11:00
|
|
|
-x{cursor,inerama,kb,randr,render} \
|
2013-03-27 01:53:15 +11:00
|
|
|
-nomake demos -nomake examples -nomake docs -nomake translations \
|
2013-02-14 22:15:11 +11:00
|
|
|
-no-separate-debug-info -opensource -confirm-license
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib" make
|
|
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
|
|
|
|
install -d $PKG/{etc/ld.so.conf.d,usr/lib32}
|
|
|
|
echo "/usr/share/qt4/lib32" > $PKG/etc/ld.so.conf.d/qt4-32.conf
|
|
|
|
|
|
|
|
ln -s ../share/qt4/lib32 $PKG/usr/lib32/qt4
|
|
|
|
mv $PKG/usr/share/qt4/lib32/pkgconfig $PKG/usr/lib32
|
|
|
|
|
|
|
|
rm -r \
|
|
|
|
$PKG/usr/share/qt4/bin \
|
|
|
|
$PKG/usr/share/qt4/include \
|
|
|
|
$PKG/usr/share/qt4/mkspecs \
|
|
|
|
$PKG/usr/share/qt4/q3porting.xml \
|
|
|
|
$PKG/usr/share/qt4/imports \
|
|
|
|
$PKG/usr/share/qt4/tests \
|
|
|
|
$PKG/usr/share/qt4/phrasebooks
|
|
|
|
}
|