template 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Template file for 'qtcreator'
  2. pkgname=qtcreator
  3. version=4.13.2
  4. revision=1
  5. wrksrc="qt-creator-opensource-src-${version}"
  6. build_style=qmake
  7. make_install_args="INSTALL_ROOT=\${DESTDIR}/usr"
  8. hostmakedepends="clang llvm perl pkg-config python3 which"
  9. makedepends="qt5-declarative-devel qt5-script-devel qt5-tools-devel
  10. qt5-quickcontrols"
  11. depends="qt5-declarative-devel qt5-quickcontrols qt5-plugin-sqlite"
  12. short_desc="Cross-platform IDE for Qt developers"
  13. maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
  14. license="LGPL-3.0-or-later, custom:QtCompany-GPL-Exception-1.0"
  15. homepage="https://wiki.qt.io/Category:Tools::QtCreator"
  16. distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/${wrksrc}.tar.xz"
  17. checksum=b00a5c13ba67d2e3436e6d9bf32fba38d780a1de0bc85b813daac672021e9428
  18. python_version=3
  19. replaces="qtcreator-data>=0"
  20. if [ "$CROSS_BUILD" ]; then
  21. hostmakedepends+=" qt5-declarative-devel qt5-host-tools qt5-script-devel qt5-tools-devel"
  22. makedepends+=" clang llvm"
  23. fi
  24. if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
  25. makedepends+=" libexecinfo-devel"
  26. fi
  27. pre_configure() {
  28. if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
  29. vsed -i src/plugins/qmldesigner/qmldesignerplugin.pro \
  30. src/plugins/clangformat/clangformat.pro \
  31. -e "/LIBS += /aLIBS += -L${XBPS_CROSS_BASE}/usr/lib -lexecinfo"
  32. vsed -i src/plugins/debugger/debugger.pro \
  33. -e "/RESOURCES += /aLIBS += -L${XBPS_CROSS_BASE}/usr/lib -lexecinfo"
  34. fi
  35. }
  36. post_install() {
  37. # Install the license with the annotation for
  38. # the Qt Company GPL Exception 1.0
  39. vlicense LICENSE.GPL3-EXCEPT
  40. }
  41. qtcreator-full_package() {
  42. short_desc+=" - full Qt5 dependencies"
  43. depends="${sourcepkg}>=${version}_${revision}
  44. qt5-3d-devel qt5-charts-devel qt5-connectivity-devel qt5-datavis3d-devel
  45. qt5-declarative-devel qt5-datavis3d-devel qt5-gamepad-devel qt5-location-devel
  46. qt5-multimedia-devel qt5-networkauth-devel qt5-purchasing-devel qt5-quickcontrols
  47. qt5-quickcontrols2-devel qt5-remoteobjects-devel qt5-script-devel qt5-scxml-devel
  48. qt5-sensors-devel qt5-serialbus-devel qt5-serialport-devel qt5-speech-devel qt5-svg-devel
  49. qt5-tools-devel qt5-virtualkeyboard-devel qt5-wayland-devel qt5-webchannel-devel
  50. qt5-webglplugin-devel qt5-webkit-devel qt5-websockets-devel qt5-webview-devel
  51. qt5-x11extras-devel qt5-xmlpatterns-devel qt5-tools-devel qt5-host-tools
  52. qt5-examples qt5-imageformats qt5-graphicaleffects qt5-translations
  53. qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds"
  54. # Liberation: Removed webengine related code.
  55. build_style=meta
  56. pkg_install() {
  57. echo "Just the dependencies"
  58. }
  59. }