27 lines
1021 B
Plaintext
27 lines
1021 B
Plaintext
# Description: Plugins for additional image formats: TIFF, MNG, TGA, WBMP
|
|
# URL: https://www.qt.io/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: jasper libmng libwebp qt6-base
|
|
|
|
name=qt6-imageformats
|
|
version=6.7.0
|
|
release=1
|
|
source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtimageformats-everywhere-src-$version.tar.xz
|
|
qtimageformats-fix-build.patch)
|
|
|
|
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/:*$//')"
|
|
|
|
patch -Np1 -d qtimageformats-everywhere-src-$version -i $SRC/qtimageformats-fix-build.patch
|
|
|
|
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" \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|