diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -1,12 +1,14 @@ -# Maintainer: ant32 <antreimer@gmail.com> +# Maintainer: Martchus <martchus@gmx.net> +# Contributor: ant32 <antreimer@gmail.com> # Contributor: Filip Brcic <brcha@gna.org> # Contributor: jellysheep <max.mail@dameweb.de> + pkgname=mingw-w64-qt5-base-static pkgver=5.5.1 -pkgrel=1 +pkgrel=2 pkgdesc="A cross-platform application and UI framework (mingw-w64)" arch=(i686 x86_64) -url="http://qt-project.org" +url="https://www.qt.io/" license=("custom, FDL, GPL3, LGPL") depends=( mingw-w64-crt @@ -33,7 +35,7 @@ makedepends=(mingw-w64-gcc mingw-w64-pkg-config) options=(!strip !buildflags staticlibs) _pkgfqn="qtbase-opensource-src-${pkgver}" -source=("http://download.qt-project.org/official_releases/qt/5.5/${pkgver}/submodules/${_pkgfqn}.tar.xz" +source=("https://download.qt.io/official_releases/qt/${pkgver:0:3}/${pkgver}/submodules/${_pkgfqn}.tar.xz" "qt5-merge-static-and-shared-library-trees.patch" "add-angle-support.patch" "use-external-angle-library.patch" @@ -250,8 +252,15 @@ build() { # fix include directory of dbus qt_configure_args+=" $(${_arch}-pkg-config --cflags-only-I dbus-1 --cflags)" - isOpenGL && qt_configure_args+=' -opengl desktop' - isStatic && qt_configure_args+=' -opengl no' + if isStatic; then + qt_configure_args+=' -opengl no' + elif isOpenGL; then + qt_configure_args+=' -opengl desktop' + else + # GL_GLEXT_PROTOTYPES must be defined to enable declarations GLES functions + qt_configure_args+=' -DGL_GLEXT_PROTOTYPES' + fi + # TODO: allow dynamic OpenGL configuration unset PKG_CONFIG_PATH |