# Template file for 'gargoyle'
pkgname=gargoyle
version=2026.1.1
revision=1
build_style=cmake
configure_args="-DWITH_TTS=DYNAMIC $(vopt_if qt5 -DQT_VERSION=5)"
hostmakedepends="pkg-config
 $(vopt_if qt5 'qt5-devel qt5-qmake' 'qt6-base qt6-tools')"
makedepends="SDL2-devel SDL2_mixer-devel fmt-devel fontconfig-devel
 freetype-devel libjpeg-turbo-devel libpng-devel speech-dispatcher-devel
 zlib-devel
 $(vopt_if qt5 qt5-devel qt6-base-devel)"
short_desc="Interactive fiction player that supports all the major IF formats"
maintainer="Aicaya Maro <aicaya@posteo.net>"
license="Artistic-2.0, BSD-2-Clause, BSD-3-Clause, GPL-2.0-only, MIT, OFL-1.1"
homepage="https://ccxvii.net/gargoyle/"
changelog="https://raw.githubusercontent.com/garglk/garglk/master/NEWS"
distfiles="https://github.com/garglk/garglk/archive/refs/tags/${version}.tar.gz"
checksum=14e904d70d2968be3f6be298ffd14fd124a060d5176f5b0158749acbb90149f4

build_options="qt5"
desc_option_qt5="Compile with Qt5 (defaults to Qt6 otherwise)"

post_install() {
	vconf garglk/garglk.ini
	vlicense licenses/BSD-2-Clause.txt
	vlicense 'licenses/Go Mono.txt' Go-Mono-BSD-3-Clause.txt
	vlicense 'licenses/MIT License.txt' MIT.txt
}
