26 lines
914 B
Bash
26 lines
914 B
Bash
# Template file for 'nomacs'
|
|
pkgname=nomacs
|
|
version=3.8.1
|
|
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=1a6b0f5fb0cb61956fafce0d6d49e25abc4b34b77b1485654d9b03b786b8ea00
|
|
|
|
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
|
|
}
|