mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-17 09:10:08 +02:00
* Fix an upstream problem with the time conversion in the native system notifications * Kludge the packaging to put *.so symlinks in the runtime path too. Not particularly happy about it but I'm sick of dealing with this recipe. This makes qmake/cmake/etc... happy
228 lines
8.2 KiB
Plaintext
228 lines
8.2 KiB
Plaintext
SUMMARY="A comprehensive C++ application development framework"
|
|
DESCRIPTION="
|
|
Qt is a cross-platform application and UI framework for developers
|
|
using C++ or QML, a CSS & JavaScript like language. Qt Creator is the
|
|
supporting Qt IDE.
|
|
|
|
Qt, Qt Quick and the supporting tools are developed as an open source
|
|
project governed by an inclusive meritocratic model. Qt can be used
|
|
under open source (LGPL v2.1) or commercial terms.
|
|
"
|
|
HOMEPAGE="http://qt-haiku.ru"
|
|
SRC_URI="git://gitorious.org/+qt-haiku/qt/qt-haiku-port.git"
|
|
LICENSE="GNU LGPL v2.1"
|
|
COPYRIGHT="2011 Nokia Corporation and/or its subsidiary(-ies)."
|
|
REVISION="4"
|
|
ARCHITECTURES="x86"
|
|
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
|
# x86_gcc2 is fine as primary target architecture as long as we're building
|
|
# for a different secondary architecture.
|
|
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
|
else
|
|
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
|
fi
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
qtcore$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qtconfig$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qsystray$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libphonon$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQt3Support$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtCLucene$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtCore$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtDeclarative$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtDesigner$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtDesignerComponents$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtGui$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtHelp$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtMultimedia$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtNetwork$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtScript$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtScriptTools$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtSql$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtSvg$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtTest$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtWebKit$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtXml$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
lib:libQtXmlPatterns$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix >= $haikuVersion
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libicuuc$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng$secondaryArchSuffix
|
|
"
|
|
|
|
# haiku_x86 doesn't claim to provide lib:libtiff_x86 on gcc2 builds
|
|
if [ "$targetArchitecture" != x86_gcc2 ];then
|
|
REQUIRES="$REQUIRES lib:libtiff$secondaryArchSuffix"
|
|
fi
|
|
|
|
BUILD_REQUIRES="
|
|
icu${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
"
|
|
# should have devel:libtiff too but that doesn't seem to be provided
|
|
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
cmd:make
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:perl
|
|
"
|
|
|
|
if [ "$targetArchitecture" = x86_gcc2 ];then
|
|
BUILD_PREREQUIRES="$BUILD_PREREQUIRES cmd:g++"
|
|
fi
|
|
|
|
PROVIDES_devel="
|
|
qtcore${secondaryArchSuffix}_devel = $portVersion compat >= 4.8
|
|
cmd:assistant$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:designer$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:lconvert$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:linguist$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:lrelease$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:lupdate$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:moc$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:pixeltool$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qcollectiongenerator$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qdoc3$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qhelpconverter$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qhelpgenerator$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qmake$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qmlplugindump$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qmlviewer$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qt3to4$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:qttracereplay$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:rcc$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:uic$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:uic3$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:xmlpatterns$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
cmd:xmlpatternsvalidator$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libphonon$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQt3Support$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtCLucene$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtCore$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtDeclarative$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtDesigner$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtDesignerComponents$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtGui$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtHelp$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtMultimedia$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtNetwork$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtScript$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtScriptTools$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtSql$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtSvg$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtTest$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtWebKit$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtXml$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtXmlPatterns$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
devel:libQtUiTools$secondaryArchSuffix = $portVersion compat >= 4.8
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
qtcore$secondaryArchSuffix == $portVersion
|
|
haiku$secondaryArchSuffix >= $haikuVersion
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PATCHES="qtcore-4.8.5.git.patchset"
|
|
|
|
SOURCE_DIR="qt-haiku-port"
|
|
|
|
BUILD()
|
|
{
|
|
|
|
./configure \
|
|
-prefix $prefix \
|
|
-bindir $binDir \
|
|
-libdir $libDir \
|
|
-headerdir $includeDir \
|
|
-docdir $docDir/Qt \
|
|
-datadir $dataDir/Qt \
|
|
-translationdir $dataDir/Qt/translations \
|
|
-sysconfdir $settingsDir \
|
|
-demosdir $dataDir/Qt/demos \
|
|
-examplesdir $dataDir/Qt/examples \
|
|
-importdir $dataDir/Qt/imports \
|
|
-plugindir $addOnsDir/Qt \
|
|
-no-pch -no-opengl -no-largefile \
|
|
-fast -nomake examples -nomake demos -release -opensource \
|
|
-confirm-license -no-iconv -phonon -no-phonon-backend \
|
|
-multimedia -no-audio-backend
|
|
|
|
make $jobArgs
|
|
|
|
cd src/3rdparty/haiku-tools/qsystray
|
|
if [ "$targetArchitecture" = x86 ];then
|
|
make -f Makefile.gcc4
|
|
else
|
|
export PATH="/bin:$PATH"
|
|
make -f Makefile.gcc2
|
|
fi
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
cd src/3rdparty/haiku-tools/qsystray
|
|
if [ "$targetArchitecture" = x86 ];then
|
|
cp -af qsystray $binDir
|
|
else
|
|
cp -af qsystray_gcc2 $binDir/qsystray
|
|
fi
|
|
|
|
prepareInstalledDevelLibs libphonon \
|
|
libQt3Support libQtCLucene \
|
|
libQtCore libQtDeclarative \
|
|
libQtDesigner libQtDesignerComponents \
|
|
libQtGui libQtHelp \
|
|
libQtMultimedia libQtNetwork \
|
|
libQtScript libQtScriptTools \
|
|
libQtSql libQtSvg \
|
|
libQtTest libQtWebKit \
|
|
libQtXml libQtXmlPatterns \
|
|
libQtUiTools
|
|
|
|
fixPkgconfig
|
|
|
|
#UGLY HACK -- REMOVE ME WHEN QMAKE/CMAKE/ETC IS FIXED
|
|
cd $libDir
|
|
for i in lib*.so.4.*;do
|
|
ln -s $i $(echo $i | cut -f1,2 -d.)
|
|
done
|
|
|
|
devCommands="assistant designer lconvert
|
|
linguist lrelease lupdate
|
|
moc pixeltool qcollectiongenerator
|
|
qdoc3 qhelpconverter qhelpgenerator
|
|
qmake qmlplugindump qmlviewer
|
|
qt3to4 qttracereplay rcc
|
|
uic uic3 xmlpatterns
|
|
xmlpatternsvalidator"
|
|
|
|
for i in $devCommands;do
|
|
devPackageCommands="$devPackageCommands $binDir/$i"
|
|
done
|
|
|
|
packageEntries devel $developDir \
|
|
$devPackageCommands \
|
|
$dataDir/Qt/mkspecs
|
|
|
|
# move tests to demo/example package when it exists
|
|
rm -rf $prefix/tests
|
|
rm -rf $dataDir/Qt/demos $dataDir/Qt/examples
|
|
}
|