mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
93 lines
2.3 KiB
Bash
93 lines
2.3 KiB
Bash
SUMMARY="The WebKit module for Qt 5"
|
|
DESCRIPTION="Qt is a cross-platform application framework that is widely \
|
|
used for developing software with a graphical user interface, and WebKit is a \
|
|
complete web browser stack. This package contains QtWebKit, WebKit running on \
|
|
top of Qt."
|
|
HOMEPAGE="https://qt.io/"
|
|
COPYRIGHT="2015 The Qt Company Ltd."
|
|
LICENSE="GNU LGPL v2"
|
|
|
|
SOURCE_URI_4="https://download.qt.io/official_releases/qt/5.5/$portVersion/submodules/qtwebkit-opensource-src-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256_4="cd9d0e8c9e800db0d6ef78861e534b5bf97fb7c52e7865ae0b437d7cbbf00c42"
|
|
SOURCE_DIR_4="qtwebkit-opensource-src-$portVersion"
|
|
|
|
REVISION="1"
|
|
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86"
|
|
|
|
PROVIDES="
|
|
qt5webkit$secondaryArchSuffix = $portVersion compat >= 5.5
|
|
lib:libQt5WebKit$secondaryArchSuffix = $portVersion compat >= 5.5
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
qt5base$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libwebp$secondaryArchSuffix
|
|
icu$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
qt5webkit${secondaryArchSuffix}_devel = $portVersion compat >= 5.5
|
|
devel:libQt5WebKit$secondaryArchSuffix = $portVersion compat >= 5.5
|
|
"
|
|
REQUIRES_devel="
|
|
qt5base${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
qt5base${secondaryArchSuffix}_devel
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libwebp$secondaryArchSuffix
|
|
icu${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:qmake$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python
|
|
cmd:perl
|
|
cmd:ruby
|
|
cmd:flex
|
|
cmd:bison
|
|
cmd:gperf
|
|
cmd:make
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd $sourceDir4
|
|
qmake . \
|
|
"QMAKE_CFLAGS += -D_BSD_SOURCE -DUSE_SYSTEM_MALLOC=1" \
|
|
"QMAKE_CXXFLAGS += -D_BSD_SOURCE -DUSE_SYSTEM_MALLOC=1"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd $sourceDir4
|
|
make install
|
|
fixPkgconfig strict
|
|
|
|
prepareInstalledDevelLibs libQt5WebKit
|
|
|
|
# UGLY HACK -- REMOVE ME WHEN QMAKE/CMAKE/ETC IS FIXED
|
|
cd $libDir
|
|
for i in lib*.so.5.*;do
|
|
ln -fs $i $(echo $i | cut -f1,2 -d.)
|
|
done
|
|
|
|
mkdir -p $dataDir/cmake/Modules/
|
|
cp -r $libDir/cmake/. $dataDir/cmake/Modules/.
|
|
rm -rf $libDir/cmake/
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|