compat-32/qt4-32/Pkgfile

54 lines
2.0 KiB
Plaintext
Raw Normal View History

2013-02-14 12:15:11 +01: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
version=4.8.4
2013-04-11 09:57:21 +02:00
release=3
source=(http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-$version.tar.gz
boost-1.48.patch)
2013-02-14 12:15:11 +01:00
build () {
cd qt-everywhere-opensource-src-$version
2013-04-11 09:57:21 +02:00
patch -p1 -i $SRC/boost-1.48.patch
2013-02-14 12:15:11 +01:00
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 \
-plugindir /usr/share/qt4/plugins-32 \
2013-02-14 12:15:11 +01:00
-platform linux-g++ -release -shared -sm \
-nis -verbose -system-zlib \
-system-lib{png,jpeg} -xmlpatterns \
-no-{cups,fast,nas-sound,phonon} \
-no-sql-{db2,ibase,mysql,oci,odbc,psql,sqlite,sqlite2,sqlite_symbian,symsql,tds} \
2013-02-14 12:15:11 +01:00
-x{cursor,inerama,kb,randr,render} \
-nomake demos -nomake examples -nomake docs -nomake translations \
2013-02-14 12:15:11 +01: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
}