47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
# Description: Small, efficient and fast rendering engine for Web Browsers.
|
|
# URL: https://www.webkitgtk.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: gst-plugins-base gtk gtk3 harfbuzz-icu hyphen libsecret libsoup libwebp ruby woff2 xorg-libxt bubblewrap xdg-dbus-proxy libseccomp libxslt
|
|
# Optional: enchant libnotify geoclue openjpeg2
|
|
|
|
name=webkitgtk
|
|
version=2.28.2
|
|
release=1
|
|
source=(https://webkitgtk.org/releases/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
mkdir build
|
|
cd $name-$version
|
|
|
|
# Make sure we do not have ccache masquerade directory in PATH.
|
|
# Use -DCMAKE_CXX_COMPILER_LAUNCHER=ccache instead of providing a wrapped compiler
|
|
if [ -e '/usr/bin/ccache' ]; then
|
|
#PKGMK_WEBKITGTK+=' -DCMAKE_CXX_COMPILER_LAUNCHER=ccache'
|
|
PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
|
fi
|
|
|
|
prt-get isinst openjpeg2 || PKGMK_WEBKITGTK+=' -DUSE_OPENJPEG=OFF'
|
|
prt-get isinst enchant || PKGMK_WEBKITGTK+=' -DENABLE_SPELLCHECK=OFF'
|
|
prt-get isinst libnotify && PKGMK_WEBKITGTK+=' -DUSE_LIBNOTIFY=ON' || PKGMK_WEBKITGTK+=' -DUSE_LIBNOTIFY=OFF'
|
|
prt-get isinst geoclue && PKGMK_WEBKITGTK+=' -DENABLE_GEOLOCATION=ON' || PKGMK_WEBKITGTK+=' -DENABLE_GEOLOCATION=OFF'
|
|
|
|
cd ../build
|
|
|
|
cmake ../$name-$version ${PKGMK_WEBKITGTK} \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
|
|
-DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib \
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
-DPORT=GTK \
|
|
-DENABLE_MINIBROWSER=ON \
|
|
-DUSE_SYSTEM_MALLOC=ON \
|
|
-Wno-dev
|
|
|
|
ninja -j ${JOBS-1}
|
|
DESTDIR=$PKG ninja install
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
}
|