mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Add qt-4.8.5 recipe
* Untested as secondary on gcc2 * Could use some subpackages like _debug/_demos/etc... (demos and examples are disabled at the moment) * Might need some fine tuning of install directories but they're generally ok. This is things like possibly moving qtconfig into the preferences directory and putting some of the bin commands that are currently in the _devel package into an apps dir. * Several of the libs and some of the data files from the main package could probably be put in the _devel package.
This commit is contained in:
File diff suppressed because one or more lines are too long
30
dev-qt/qtcore/patches/qtcore-4.8.5.git.patchset
Normal file
30
dev-qt/qtcore/patches/qtcore-4.8.5.git.patchset
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
From 3c8c94f39ddd083200f92005b67b9a88844b3772 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chris Roberts <cpr420@gmail.com>
|
||||||
|
Date: Thu, 14 Nov 2013 15:34:00 -0700
|
||||||
|
Subject: [PATCH] Adjust font paths for updated Haiku fs layout
|
||||||
|
|
||||||
|
---
|
||||||
|
src/gui/text/qfontdatabase_haiku.cpp | 7 ++++---
|
||||||
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/gui/text/qfontdatabase_haiku.cpp b/src/gui/text/qfontdatabase_haiku.cpp
|
||||||
|
index c1b9526..f7b6dd7 100644
|
||||||
|
--- a/src/gui/text/qfontdatabase_haiku.cpp
|
||||||
|
+++ b/src/gui/text/qfontdatabase_haiku.cpp
|
||||||
|
@@ -50,9 +50,10 @@ static void initializeDb()
|
||||||
|
FT_Library lib = qt_getFreetype();
|
||||||
|
|
||||||
|
directory_which FontDirs[] = {
|
||||||
|
- B_BEOS_FONTS_DIRECTORY,
|
||||||
|
- B_COMMON_FONTS_DIRECTORY,
|
||||||
|
- B_USER_FONTS_DIRECTORY
|
||||||
|
+ B_SYSTEM_FONTS_DIRECTORY,
|
||||||
|
+ B_SYSTEM_NONPACKAGED_FONTS_DIRECTORY,
|
||||||
|
+ B_USER_FONTS_DIRECTORY,
|
||||||
|
+ B_USER_NONPACKAGED_FONTS_DIRECTORY
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.3.4
|
||||||
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework"
|
|
||||||
HOMEPAGE="http://qt-haiku.ru"
|
|
||||||
SRC_URI="http://pkgs.fedoraproject.org/repo/pkgs/qt/qt-everywhere-opensource-src-4.7.3.tar.gz/49b96eefb1224cc529af6fe5608654fe/qt-everywhere-opensource-src-4.7.3.tar.gz"
|
|
||||||
REVISION="1"
|
|
||||||
STATUS_HAIKU="stable"
|
|
||||||
DEPEND=""
|
|
||||||
CHECKSUM_MD5="49b96eefb1224cc529af6fe5608654fe"
|
|
||||||
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
|
|
||||||
BUILD()
|
|
||||||
{
|
|
||||||
cd qt-everywhere-opensource-src-4.7.3
|
|
||||||
configure --prefix-install=no -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
|
|
||||||
}
|
|
||||||
|
|
||||||
INSTALL()
|
|
||||||
{
|
|
||||||
cd qt-everywhere-opensource-src-4.7.3
|
|
||||||
make install INSTALL_ROOT=${DESTDIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
LICENSE="GNU LGPL v2.1"
|
|
||||||
COPYRIGHT="2011 Nokia Corporation and/or its subsidiary(-ies)."
|
|
||||||
205
dev-qt/qtcore/qtcore-4.8.5.git.recipe
Normal file
205
dev-qt/qtcore/qtcore-4.8.5.git.recipe
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
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="1"
|
||||||
|
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:libtiff$secondaryArchSuffix
|
||||||
|
lib:libjpeg$secondaryArchSuffix
|
||||||
|
lib:libpng$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
icu_devel$secondaryArchSuffix
|
||||||
|
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
|
||||||
|
"
|
||||||
|
|
||||||
|
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
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES="qtcore-4.8.5.git.patchset"
|
||||||
|
|
||||||
|
SOURCE_DIR="qt-haiku-port"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
./configure \
|
||||||
|
-prefix $prefix \
|
||||||
|
-headerdir $includeDir \
|
||||||
|
-docdir $docDir/Qt \
|
||||||
|
-datadir $dataDir/Qt \
|
||||||
|
-translationdir $dataDir/Qt \
|
||||||
|
-sysconfdir $settingsDir \
|
||||||
|
-demosdir $dataDir/Qt \
|
||||||
|
-examplesdir $dataDir/Qt \
|
||||||
|
-importdir $dataDir/Qt \
|
||||||
|
-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 [ "$effectiveTargetArchitecture" = x86 ];then
|
||||||
|
make -f Makefile.gcc4
|
||||||
|
else
|
||||||
|
make -f Makefile.gcc2
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd src/3rdparty/haiku-tools/qsystray
|
||||||
|
if [ "$effectiveTargetArchitecture" = x86 ];then
|
||||||
|
cp -af qsystray $binDir
|
||||||
|
else
|
||||||
|
cp -af qsystray_gcc2 $binDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
prepareInstalledDevelLibs libphonon \
|
||||||
|
libQt3Support libQtCLucene \
|
||||||
|
libQtCore libQtDeclarative \
|
||||||
|
libQtDesigner libQtDesignerComponents \
|
||||||
|
libQtGui libQtHelp \
|
||||||
|
libQtMultimedia libQtNetwork \
|
||||||
|
libQtScript libQtScriptTools \
|
||||||
|
libQtSql libQtSvg \
|
||||||
|
libQtTest libQtWebKit \
|
||||||
|
libQtXml libQtXmlPatterns \
|
||||||
|
libQtUiTools
|
||||||
|
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
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$secondaryArchSuffix"
|
||||||
|
done
|
||||||
|
|
||||||
|
packageEntries devel $developDir \
|
||||||
|
$devPackageCommands
|
||||||
|
|
||||||
|
# move tests to demo/example package when it exists
|
||||||
|
rm -rf $prefix/tests
|
||||||
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework"
|
|
||||||
HOMEPAGE="http://qt-haiku.ru"
|
|
||||||
SRC_URI="git://gitorious.org/+qt-haiku/qt/qt-haiku-port.git"
|
|
||||||
REVISION="1"
|
|
||||||
STATUS_HAIKU="stable"
|
|
||||||
DEPEND=""
|
|
||||||
#CHECKSUM_MD5=""
|
|
||||||
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
|
|
||||||
BUILD()
|
|
||||||
{
|
|
||||||
cd qtcore-4.8.x
|
|
||||||
configure --prefix-install=no -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
|
|
||||||
}
|
|
||||||
|
|
||||||
INSTALL()
|
|
||||||
{
|
|
||||||
cd qtcore-4.8.x
|
|
||||||
make install INSTALL_ROOT=${DESTDIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
LICENSE="GNU LGPL v2.1"
|
|
||||||
COPYRIGHT="2011 Nokia Corporation and/or its subsidiary(-ies)."
|
|
||||||
Reference in New Issue
Block a user