1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake flag-o-matic xdg
8 DESCRIPTION="Classic overhead run-and-gun game"
9 HOMEPAGE="https://cxong.github.io/cdogs-sdl/"
11 https://github.com/cxong/cdogs-sdl/archive/refs/tags/${PV}.tar.gz
17 BSD-2 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-3.0 CC0-1.0 WTFPL-2 XMAME public-domain
20 KEYWORDS="~amd64 ~x86"
23 media-libs/libsdl2[haptic,opengl]
24 media-libs/sdl2-image[png]
25 media-libs/sdl2-mixer[mp3,vorbis,wav]
31 "${FILESDIR}"/${PN}-1.1.1-cmake.patch
38 -DCDOGS_DATA_DIR="${EPREFIX}"/usr/share/${PN}/ # trailing / is needed
49 dodoc doc/{AUTHORS,original_readme.txt}
51 # CREDITS is used at runtime, rest is licenses or duplicates
52 find "${ED}"/usr/share/${PN}/doc -type f ! -name CREDITS -delete || die