92 lines
3.8 KiB
Bash
92 lines
3.8 KiB
Bash
# Template file for 'qtcreator'
|
|
pkgname=qtcreator
|
|
version=11.0.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="$(vopt_bool qbs BUILD_QBS) -DWITH_DOCS=ON -DBUILD_WITH_PCH=OFF"
|
|
hostmakedepends="clang llvm perl pkg-config python3 which
|
|
qt6-base qt6-tools qtchooser qt6-shadertools qt6-declarative-host-tools"
|
|
makedepends="qt6-declarative-devel
|
|
qt6-quick3d-devel qt6-svg-devel qt6-plugin-odbc qt6-plugin-sqlite
|
|
qt6-plugin-pgsql qt6-plugin-mysql qt6-qt5compat-devel
|
|
qt6-serialport-devel
|
|
clang llvm clang-tools-extra"
|
|
depends="qt6-plugin-sqlite mesa-dri"
|
|
short_desc="Cross-platform IDE for Qt developers"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="LGPL-3.0-or-later, custom:QtCompany-GPL-Exception-1.0"
|
|
homepage="https://wiki.qt.io/Category:Tools::QtCreator"
|
|
changelog="https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changelog/changes-${version}.md"
|
|
distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/qt-creator-opensource-src-${version}.tar.xz"
|
|
checksum=4f9e593853cf3bf806c6573abb6fc4176761416023d97dded07e19c456d6db73
|
|
replaces="qtcreator-data>=0"
|
|
python_version=3
|
|
|
|
build_options="qbs"
|
|
desc_option_qbs="Build vendored Qbs"
|
|
|
|
if [ -z "$XBPS_CROSS_BUILD" ] && [ "$XBPS_TARGET_WORDSIZE" != 32 ]; then
|
|
hostmakedepends+=" qt6-tools-devel"
|
|
build_options_default="qbs"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
# Install the license with the annotation for
|
|
# the Qt Company GPL Exception 1.0
|
|
vlicense LICENSE.GPL3-EXCEPT
|
|
}
|
|
|
|
qtcreator-full_package() {
|
|
short_desc+=" - full Qt5 dependencies (transitional dummy package)"
|
|
depends="qtcreator-qt5>=${version}_${revision}"
|
|
build_style=meta
|
|
}
|
|
|
|
qtcreator-qt5_package() {
|
|
short_desc+=" - full Qt5 dependencies"
|
|
depends="${sourcepkg}>=${version}_${revision} base-devel
|
|
qt5-3d-devel qt5-charts-devel qt5-connectivity-devel qt5-datavis3d-devel
|
|
qt5-declarative-devel qt5-gamepad-devel qt5-location-devel qt5-lottie-devel
|
|
qt5-multimedia-devel qt5-networkauth-devel qt5-purchasing-devel qt5-quickcontrols
|
|
qt5-quickcontrols2-devel qt5-remoteobjects-devel qt5-script-devel qt5-scxml-devel
|
|
qt5-sensors-devel qt5-serialbus-devel qt5-serialport-devel
|
|
qt5-speech-devel qt5-styleplugins-devel qt5-svg-devel
|
|
qt5-tools-devel qt5-virtualkeyboard-devel qt5-wayland-devel qt5-webchannel-devel
|
|
qt5-webglplugin-devel qt5-webkit-devel qt5-websockets-devel qt5-webview-devel
|
|
qt5-x11extras-devel qt5-xmlpatterns-devel qt5-host-tools qt5-doc
|
|
qt5-examples qt5-imageformats qt5-graphicaleffects qt5-translations
|
|
qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds"
|
|
# Not for big endian targets and not if word sizes of host and target differ
|
|
if [ "$XBPS_TARGET_ENDIAN" = "le" -a "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then
|
|
# qt5-webengine cannot be built for armv5tel
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv5tel*) ;;
|
|
*) depends+=" qt5-webengine-devel" ;;
|
|
esac
|
|
fi
|
|
build_style=meta
|
|
}
|
|
|
|
qtcreator-qt6_package() {
|
|
short_desc+=" - full Qt6 dependencies"
|
|
depends="${sourcepkg}>=${version}_${revision} base-devel
|
|
qt6-3d-devel qt6-charts-devel qt6-concurrent qt6-connectivity-devel
|
|
qt6-declarative-devel qt6-location-devel qt6-lottie-devel qt6-multimedia-devel
|
|
qt6-networkauth-devel qt6-qt5compat-devel qt6-remoteobjects-devel qt6-scxml-devel
|
|
qt6-sensors-devel qt6-serialport-devel qt6-shadertools-devel qt6-svg-devel
|
|
qt6-tools-devel qt6-virtualkeyboard-devel qt6-wayland-devel qt6-webchannel-devel
|
|
qt6-websockets-devel qt6-tools qt6-designer qt6-imageformats qt6-translations
|
|
qt6-plugin-mysql qt6-plugin-odbc qt6-plugin-pgsql qt6-plugin-sqlite qt6-base-doc"
|
|
# Not for big endian targets and not if word sizes of host and target differ
|
|
if [ "$XBPS_TARGET_ENDIAN" = "le" -a "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then
|
|
if [ "$XBPS_TARGET_WORDSIZE" != 32 ]; then
|
|
depends+=" qt6-webengine-devel"
|
|
fi
|
|
fi
|
|
build_style=meta
|
|
}
|