Ports: Add qt5compat port

This commit is contained in:
Clemens Wasser 2022-11-01 15:13:43 +01:00 committed by Andrew Kaster
parent cdf6e568f6
commit 9a5ae8a92a
Notes: sideshowbarker 2024-07-17 12:02:22 +09:00
2 changed files with 32 additions and 0 deletions

View file

@ -209,6 +209,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`python3`](python3/) | Python | 3.11.0 | https://www.python.org/ |
| [`qemu`](qemu/) | QEMU | 7.1.0 | https://qemu.org |
| [`qoi`](qoi/) | Quite OK Image Format for fast, lossless image compression | edb8d7b | https://github.com/phoboslab/qoi |
| [`qt6-qt5compat`](qt6-qt5compat/) | Qt6 Qt5Compat | 6.2.3 | https://doc.qt.io/qt-6/qtcore5-index.html |
| [`qt6-qtbase`](qt6-qtbase/) | Qt6 QtBase | 6.2.3 | https://qt.io |
| [`qt6-serenity`](qt6-serenity/) | QSerenityPlatform | | https://github.com/SerenityPorts/QSerenityPlatform |
| [`quake`](quake/) | Quake | 0.65 | https://github.com/SerenityOS/SerenityQuake |

31
Ports/qt6-qt5compat/package.sh Executable file
View file

@ -0,0 +1,31 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='qt6-qt5compat'
version='6.2.3'
workdir="qt5compat-everywhere-src-${version}"
useconfigure='true'
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 1cf89198cf2cf8a5c15336ccd69fa1f39b779feb64117d6bbf5509c21c123f53"
auth_type='sha256'
depends=(
'qt6-qtbase'
'libiconv'
)
configure() {
export LDFLAGS='-liconv'
run cmake -GNinja \
-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt \
-DCMAKE_CROSSCOMPILING=ON \
-DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON \
-DQT_HOST_PATH=$(qmake6 -query QT_HOST_PREFIX) \
-DQT_HOST_PATH_CMAKE_DIR=$(qmake6 -query QT_HOST_LIBS)/cmake \
-DQT_FEATURE_cxx20=ON
unset LDFLAGS
}
build() {
run ninja
}
install() {
run ninja install
}