opt/webkitgtk/Pkgfile

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-04-02 13:06:43 +02:00
# Description: Small, efficient and fast rendering engine for Web Browsers.
# URL: https://www.webkitgtk.org/
# Maintainer: Danny Rawlins, crux at romster dot me
2018-07-06 16:39:34 +02:00
# Depends on: gst-plugins-base gtk gtk3 harfbuzz-icu hyphen libsecret libsoup libwebp ruby woff2 xorg-libxt
# Optional: enchant libnotify geoclue openjpeg2
2018-04-02 13:06:43 +02:00
name=webkitgtk
2019-08-01 16:11:20 +02:00
version=2.24.3
2018-04-02 13:06:43 +02:00
release=1
source=(https://webkitgtk.org/releases/$name-$version.tar.xz)
build() {
mkdir build
cd $name-$version
# setting CC and CXX breaks compilation
2019-03-15 12:34:28 +01:00
prt-get isinst ccache && unset CC CXX; export PATH="/usr/lib/ccache/:$PATH"
prt-get isinst openjpeg2 || PKGMK_WEBKITGTK+=' -DUSE_OPENJPEG=OFF'
2019-03-15 12:34:28 +01:00
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'
2018-04-02 13:06:43 +02:00
cd ../build
2019-03-15 12:34:28 +01:00
cmake ../$name-$version ${PKGMK_WEBKITGTK} \
2018-04-02 13:06:43 +02:00
-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 \
2019-03-15 12:34:28 +01:00
-Wno-dev
2018-04-02 13:06:43 +02:00
ninja -j ${JOBS-1}
DESTDIR=$PKG ninja install
rm -r $PKG/usr/share/locale
}