2017-08-06 22:35:32 +10:00
|
|
|
# Description: Provides support for web applications using the Chromium browser project.
|
2020-06-21 10:37:29 +10:00
|
|
|
# URL: https://www.qt.io/
|
2016-10-05 23:24:35 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-02-01 17:13:16 +11:00
|
|
|
# Depends on: nss qt5 xorg-libxscrnsaver xorg-libxtst libvpx python
|
2016-10-05 23:24:35 +11:00
|
|
|
|
|
|
|
name=qtwebengine
|
2020-11-21 14:09:28 +11:00
|
|
|
version=5.15.2
|
2019-11-04 08:49:42 +11:00
|
|
|
release=1
|
2020-02-01 17:13:16 +11:00
|
|
|
source=(https://download.qt.io/official_releases/qt/${version::4}/$version/submodules/$name-everywhere-src-$version.tar.xz)
|
2016-10-05 23:24:35 +11:00
|
|
|
|
|
|
|
build() {
|
2017-12-24 17:34:55 +11:00
|
|
|
cd $name-everywhere-src-$version
|
2016-10-05 23:24:35 +11:00
|
|
|
|
2017-08-06 22:35:32 +10:00
|
|
|
# Ninja, by default, sets the number of jobs to the number of availalble threads
|
|
|
|
test -n "$JOBS" && export NINJAFLAGS+=" -j $JOBS"
|
|
|
|
|
2019-07-15 00:26:39 +10:00
|
|
|
prt-get isinst ccache && export \
|
|
|
|
QMAKE_CC='ccache gcc' \
|
2020-11-21 14:09:28 +11:00
|
|
|
QMAKE_LINK_C='ccache gcc' \
|
|
|
|
QMAKE_LINK_C_SHLIB='ccache gcc' \
|
2019-07-15 00:26:39 +10:00
|
|
|
QMAKE_CXX='ccache g++' \
|
|
|
|
QMAKE_LINK='ccache g++' \
|
2019-09-22 11:41:33 +10:00
|
|
|
QMAKE_LINK_SHLIB='ccache g++' \
|
|
|
|
PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
2019-07-15 00:26:39 +10:00
|
|
|
|
2016-10-05 23:24:35 +11:00
|
|
|
install -d build
|
|
|
|
cd build
|
|
|
|
|
2020-02-01 17:13:16 +11:00
|
|
|
qmake .. -- -proprietary-codecs
|
2016-10-05 23:24:35 +11:00
|
|
|
make
|
|
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
|
|
|
|
find "$PKG/usr/lib" -type f -name '*.prl' \
|
|
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
|
|
|
|
|
|
|
|
}
|