ladybird/Ports/qt6-qt5compat/package.sh

32 lines
931 B
Bash
Raw Normal View History

2022-11-01 14:13:43 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
port='qt6-qt5compat'
2022-12-03 16:30:46 +00:00
version='6.4.0'
2022-11-01 14:13:43 +00:00
workdir="qt5compat-everywhere-src-${version}"
useconfigure='true'
2022-12-03 16:30:46 +00:00
files="https://download.qt.io/official_releases/qt/$(cut -d. -f1,2 <<< ${version})/${version}/submodules/qt5compat-everywhere-src-${version}.tar.xz qt6-qt5compat-${version}.tar.xz 73475d0837f78246d509199f211a35c71fc36cccf64b3de258ebc6387194a4c0"
2022-11-01 14:13:43 +00:00
auth_type='sha256'
depends=(
'qt6-qtbase'
'libiconv'
)
configure() {
export LDFLAGS='-liconv'
run cmake -GNinja \
2022-12-03 16:30:46 +00:00
-DCMAKE_TOOLCHAIN_FILE="${SERENITY_BUILD_DIR}/CMakeToolchain.txt" \
2022-11-01 14:13:43 +00:00
-DCMAKE_CROSSCOMPILING=ON \
-DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON \
2022-12-03 16:30:46 +00:00
-DQT_HOST_PATH="$(qmake6 -query QT_HOST_PREFIX)" \
-DQT_HOST_PATH_CMAKE_DIR="$(qmake6 -query QT_HOST_LIBS)/cmake" \
2022-11-01 14:13:43 +00:00
-DQT_FEATURE_cxx20=ON
unset LDFLAGS
}
build() {
run ninja
}
install() {
run ninja install
}