25 lines
913 B
Bash
25 lines
913 B
Bash
# Template file for 'nomacs'
|
|
pkgname=nomacs
|
|
version=3.10.2
|
|
revision=2
|
|
build_style=cmake
|
|
build_wrksrc=ImageLounge
|
|
configure_args="-DUSE_SYSTEM_QUAZIP=1"
|
|
hostmakedepends="pkg-config qt5-qmake qt5-host-tools quazip-qt5-devel"
|
|
makedepends="qt5-tools-devel qt5-svg-devel exiv2-devel libopencv-devel libraw-devel quazip-qt5-devel"
|
|
short_desc="Simple yet powerful Qt imageviewer"
|
|
maintainer="Kharlamov Alexey <der@2-47.ru>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://nomacs.org/"
|
|
distfiles="https://github.com/nomacs/nomacs/archive/${version}.tar.gz"
|
|
checksum=ced900a1548be6fecef5d18e6ed5bdbc9b3eb749edf623c523327798a74a4ec0
|
|
|
|
pre_configure() {
|
|
# fix build with quazip-qt5
|
|
sed -i 's/find_package(QuaZIP/find_package(QuaZip5/' cmake/Unix.cmake
|
|
sed -e 's/include <quazip/&5/' \
|
|
-i src/DkCore/DkImageLoader.cpp \
|
|
-i src/DkCore/DkImageContainer.cpp \
|
|
-i src/DkCore/DkBasicLoader.cpp \
|
|
-i src/DkGui/DkDialog.cpp
|
|
}
|