mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
* Our version of CMake 3 include many fixes that are not backported to 2.8. One of these is needed to make cmake --system-information work. This is used by the WebKit build to detect the number of processors.
115 lines
3.1 KiB
Plaintext
115 lines
3.1 KiB
Plaintext
SUMMARY="Open source web browser engine"
|
|
DESCRIPTION="
|
|
WebKit is an open source web browser engine. WebKit is also the name of the \
|
|
Mac OS X system framework version of the engine that's used by Safari, \
|
|
Dashboard, Mail, and many other OS X applications. WebKit's HTML and \
|
|
JavaScript code began as a branch of the KHTML and KJS libraries from KDE.
|
|
"
|
|
HOMEPAGE="http://www.webkit.org/"
|
|
COPYRIGHT="1998-2014 Apple Inc., Google Inc., et al"
|
|
LICENSE="
|
|
GNU LGPL v2
|
|
GNU LGPL v2.1
|
|
MIT
|
|
"
|
|
SRC_URI="https://github.com/haiku/webkit/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="32f2b2a000253ac0127bf7347fd239db3692176cd80246bf32275b3340165f7f"
|
|
SRC_FILENAME="haikuwebkit-$portVersion.tar.gz"
|
|
REVISION="1"
|
|
ARCHITECTURES="x86 x86_64"
|
|
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"
|
|
fi
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
# TODO see if this is still needed.
|
|
#if [ $effectiveTargetArchitecture == x86_64 ]; then
|
|
# PATCHES="haikuwebkit-1.3.2.patchset"
|
|
#fi
|
|
|
|
PROVIDES="
|
|
haikuwebkit$secondaryArchSuffix = $portVersion
|
|
lib:libWebKit$secondaryArchSuffix = $portVersion
|
|
cmd:jsc
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix >= $haikuVersion
|
|
lib:libicuuc$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libxslt$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libavcodec$secondaryArchSuffix
|
|
lib:libexecinfo$secondaryArchSuffix
|
|
lib:libstdc++$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
haiku_devel >= $haikuVersion
|
|
devel:libicuuc$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libxslt$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libavcodec$secondaryArchSuffix
|
|
devel:libexecinfo$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:pkg_config
|
|
cmd:flex
|
|
cmd:bison
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gperf
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:m4
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:python
|
|
cmd:cmake >= 3.0.0
|
|
cmd:ruby
|
|
"
|
|
|
|
SOURCE_DIR="webkit-$portVersion"
|
|
|
|
BUILD()
|
|
{
|
|
export PKG_CONFIG_LIBDIR="`finddir B_SYSTEM_DIRECTORY`/$relativeDevelopLibDir/pkgconfig"
|
|
Tools/Scripts/build-webkit --haiku --no-webkit2 \
|
|
--cmakeargs="-DCMAKE_INSTALL_PREFIX=$prefix -DSHOULD_INSTALL_JS_SHELL=ON"
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd WebKitBuild/Release
|
|
make install
|
|
|
|
rm $developLibDir/*
|
|
prepareInstalledDevelLibs libWebKit
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
# ----- devel package -------------------------------------------------------
|
|
|
|
PROVIDES_devel="
|
|
haikuwebkit${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libjavascriptcore$secondaryArchSuffix = $portVersion
|
|
devel:libwebcore$secondaryArchSuffix = $portVersion
|
|
devel:libWebKit$secondaryArchSuffix = $portVersion
|
|
devel:libwtf$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
haikuwebkit$secondaryArchSuffix == $portVersion base
|
|
"
|