summaryrefslogtreecommitdiff
path: root/qt6-imageformats/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <contact@romster.me>2021-10-19 14:30:20 +1100
committerDanny Rawlins <contact@romster.me>2021-10-19 14:30:20 +1100
commit9a1c799538979a3cd9bc8518a594e60df01bc2e7 (patch)
treed575ecc2f18fbf548461e28c1f5546bcc44d7433 /qt6-imageformats/Pkgfile
parentc333cdfc2e48d411ff716cf406fec23cd053bc56 (diff)
downloadopt-9a1c799538979a3cd9bc8518a594e60df01bc2e7.tar.gz
opt-9a1c799538979a3cd9bc8518a594e60df01bc2e7.tar.xz
[notify] qt6 monolithic port dropped in favor of modular qt6-*. Please update your dependencies, currently only contrib/cutemaze depends on qt6
Diffstat (limited to 'qt6-imageformats/Pkgfile')
-rw-r--r--qt6-imageformats/Pkgfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/qt6-imageformats/Pkgfile b/qt6-imageformats/Pkgfile
new file mode 100644
index 000000000..e4f76378d
--- /dev/null
+++ b/qt6-imageformats/Pkgfile
@@ -0,0 +1,22 @@
+# Description: Plugins for additional image formats: TIFF, MNG, TGA, WBMP
+# URL: https://www.qt.io/
+# Maintainer: Danny Rawlins, crux at romster dot me
+# Depends on: jasper libmng libwebp qt6-base
+
+name=qt6-imageformats
+version=6.2.0
+release=1
+source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtimageformats-everywhere-src-$version.tar.xz)
+
+build() {
+ prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
+ prt-get isinst ccache && PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
+
+ cmake -S qtimageformats-everywhere-src-$version -B build $PKGMK_QT6 \
+ -D INSTALL_PUBLICBINDIR=usr/bin \
+ -D CMAKE_BUILD_TYPE=Release \
+ -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
+ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
+ cmake --build build
+ DESTDIR=$PKG cmake --install build
+}

Generated by cgit