summaryrefslogtreecommitdiff
path: root/qt6-imageformats/Pkgfile
blob: 60cfa9ae22842e5a8d9e29481004bde3960c7c1a (plain)
    1 # Description: Plugins for additional image formats: TIFF, MNG, TGA, WBMP
    2 # URL: https://www.qt.io/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: jasper libmng libwebp qt6-base
    5 
    6 name=qt6-imageformats
    7 version=6.4.2
    8 release=1
    9 source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtimageformats-everywhere-src-$version.tar.xz
   10   qtimageformats-fix-build.patch)
   11 
   12 build() {
   13 	prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
   14 	prt-get isinst ccache && PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
   15 
   16 	patch -Np1 -d qtimageformats-everywhere-src-$version -i $SRC/qtimageformats-fix-build.patch
   17 
   18 	cmake -S qtimageformats-everywhere-src-$version -B build $PKGMK_QT6 \
   19 		-D INSTALL_PUBLICBINDIR=usr/bin \
   20 		-D CMAKE_BUILD_TYPE=Release \
   21 		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   22 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   23 		-Wno-dev
   24 	cmake --build build
   25 	DESTDIR=$PKG cmake --install build
   26 }

Generated by cgit