2018-04-02 21:06:43 +10:00
|
|
|
# Description: Small, efficient and fast rendering engine for Web Browsers.
|
|
|
|
# URL: https://www.webkitgtk.org/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-09-24 21:55:22 +10:00
|
|
|
# Depends on: gst-plugins-base gtk gtk3 icu harfbuzz hyphen libseccomp libsecret libsoup libwebp libxslt ruby woff2 xorg-libxt
|
2021-03-30 00:14:09 +11:00
|
|
|
# Optional: enchant libnotify geoclue openjpeg2 xdg-dbus-proxy bubblewrap wpebackend-fdo libmanette
|
2018-04-02 21:06:43 +10:00
|
|
|
|
2021-10-03 15:57:01 +11:00
|
|
|
name=webkitgtk-40
|
2021-09-24 21:55:22 +10:00
|
|
|
version=2.32.4
|
2018-04-02 21:06:43 +10:00
|
|
|
release=1
|
2021-10-03 15:57:01 +11:00
|
|
|
source=(https://webkitgtk.org/releases/webkitgtk-$version.tar.xz)
|
2018-04-02 21:06:43 +10:00
|
|
|
|
|
|
|
build() {
|
2020-03-12 20:57:37 +11:00
|
|
|
# Make sure we do not have ccache masquerade directory in PATH.
|
2020-07-09 22:46:39 +10:00
|
|
|
[ -e '/usr/bin/ccache' ] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
2019-03-15 22:34:28 +11:00
|
|
|
|
2021-10-03 15:57:01 +11:00
|
|
|
prt-get isinst openjpeg2 || PKGMK_WEBKITGTK40+=' -DUSE_OPENJPEG=OFF'
|
|
|
|
prt-get isinst enchant || PKGMK_WEBKITGTK40+=' -DENABLE_SPELLCHECK=OFF'
|
|
|
|
prt-get isinst libnotify && PKGMK_WEBKITGTK40+=' -DUSE_LIBNOTIFY=ON' || PKGMK_WEBKITGTK40+=' -DUSE_LIBNOTIFY=OFF'
|
|
|
|
prt-get isinst geoclue && PKGMK_WEBKITGTK40+=' -DENABLE_GEOLOCATION=ON' || PKGMK_WEBKITGTK40+=' -DENABLE_GEOLOCATION=OFF'
|
|
|
|
prt-get isinst bubblewrap xdg-dbus-proxy && PKGMK_WEBKITGTK40+=' -DENABLE_BUBBLEWRAP_SANDBOX=ON' \
|
|
|
|
|| PKGMK_WEBKITGTK40+=' -DENABLE_BUBBLEWRAP_SANDBOX=OFF'
|
|
|
|
prt-get isinst wpebackend-fdo || PKGMK_WEBKITGTK40+=' -DUSE_WPE_RENDERER=OFF'
|
|
|
|
prt-get isinst libmanette || PKGMK_WEBKITGTK40+=' -DENABLE_GAMEPAD=OFF'
|
2018-04-02 21:06:43 +10:00
|
|
|
|
2021-10-03 15:57:01 +11:00
|
|
|
cmake -S webkitgtk-$version -B build -G Ninja ${PKGMK_WEBKITGTK40} \
|
2020-11-09 20:14:31 +11:00
|
|
|
-D CMAKE_INSTALL_PREFIX:PATH=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
|
|
|
|
-D CMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
|
|
-D CMAKE_SKIP_RPATH:BOOL=ON \
|
|
|
|
-D PORT=GTK \
|
|
|
|
-D ENABLE_MINIBROWSER=ON \
|
|
|
|
-D USE_SYSTEM_MALLOC=ON \
|
|
|
|
-D USE_SYSTEMD=OFF \
|
2019-03-15 22:34:28 +11:00
|
|
|
-Wno-dev
|
2018-04-02 21:06:43 +10:00
|
|
|
|
2020-07-09 22:46:39 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2018-04-02 21:06:43 +10:00
|
|
|
|
2021-10-03 15:57:01 +11:00
|
|
|
mv $PKG/usr/bin/WebKitWebDriver{,-40}
|
|
|
|
|
2018-04-02 21:06:43 +10:00
|
|
|
rm -r $PKG/usr/share/locale
|
|
|
|
}
|