# Template file for 'fotoxx'
pkgname=fotoxx
version=23.74
revision=1
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="pkg-config"
makedepends="libchamplain-devel"
depends="desktop-file-utils exiftool xdg-utils dcraw"
short_desc="Free open source program for image editing and collection management"
maintainer="Benjamín Albiñana <benalb@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://www.kornelix.net/fotoxx/fotoxx.html"
changelog="https://www.kornelix.net/downloads/recent_changes.txt"
distfiles="https://www.kornelix.net/downloads/downloads/fotoxx-${version}-source.tar.gz"
checksum=f0dc0879d448f743d7df38ef8d7ef865abe5feb730809267d83fb278f8e92476

CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/champlain-0.12"

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" libchamplain-devel"
fi

case "$XBPS_TARGET_LIBC" in
	musl) makedepends+=" libexecinfo-devel"
esac
