mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-01 01:00:03 +01:00
libraries/webkit2gtk: Revert back to building 4.0 API.
This reverts commit 9b3dc1f1ca
.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a3a2d5a3d0
commit
ecd451750b
2 changed files with 5 additions and 18 deletions
|
@ -7,7 +7,3 @@ of systems from desktop computers to embedded systems like phones,
|
|||
tablets, and televisions.
|
||||
|
||||
This package provides WebKit2 API and can co-exist with webkitgtk{3}.
|
||||
|
||||
NOTE:
|
||||
If you need to build webkit2 API v4.1, use SOUP3=YES ./webkit2gtk.SlackBuild
|
||||
It requires libsoup3 to be present before building this package.
|
||||
|
|
|
@ -82,15 +82,6 @@ find -L . \
|
|||
|
||||
patch -p1 < $CWD/unhide-deprecated-api.patch
|
||||
|
||||
# Use Slackware's libsoup by default, but we offer libsoup3 to build API v4.1:
|
||||
if [ "${SOUP3:-NO}" = "YES" ]; then
|
||||
USESOUP2=""
|
||||
WKAPI="4.1"
|
||||
else
|
||||
USESOUP2="-DUSE_SOUP2=ON"
|
||||
WKAPI="4.0"
|
||||
fi
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DPORT=GTK \
|
||||
|
@ -100,11 +91,11 @@ cd build
|
|||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \
|
||||
-DLIBEXEC_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX}/webkit2gtk-$WKAPI \
|
||||
-DLIBEXEC_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX}/webkit2gtk-4.0 \
|
||||
-DENABLE_GAMEPAD=OFF \
|
||||
-DENABLE_MINIBROWSER=ON \
|
||||
-DUSE_SYSTEMD=OFF \
|
||||
$USESOUP2 \
|
||||
-DUSE_SOUP2=ON \
|
||||
-Wno-dev \
|
||||
-G Ninja \
|
||||
..
|
||||
|
@ -114,11 +105,11 @@ cd build
|
|||
"${NINJA:=ninja}" -j$(expr $(nproc) / 2)
|
||||
DESTDIR=$PKG $NINJA -j1 install
|
||||
|
||||
mkdir -p $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-$WKAPI
|
||||
mkdir -p $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
|
||||
install -m 0644 ../Documentation/webkit2gtk-4.0/html/* \
|
||||
$PKG/usr/share/gtk-doc/html/webkit2gtk-$WKAPI
|
||||
$PKG/usr/share/gtk-doc/html/webkit2gtk-4.0
|
||||
install -m 0644 ../Documentation/webkitdomgtk-4.0/html/* \
|
||||
$PKG/usr/share/gtk-doc/html/webkitdomgtk-$WKAPI
|
||||
$PKG/usr/share/gtk-doc/html/webkitdomgtk-4.0
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ../NEWS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
Loading…
Reference in a new issue