1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
10 DESCRIPTION="Interpreter for Z-code based text games"
11 HOMEPAGE="https://661.org/proj/if/frotz/"
12 SRC_URI="https://gitlab.com/DavidGriffith/${PN}/-/archive/${MY_PV}/${MY_P}.tar.bz2"
16 KEYWORDS="~amd64 ~arm ~x86"
17 IUSE="ncurses sdl sound unicode"
18 REQUIRED_USE="sound? ( || ( ncurses sdl ) )"
22 sys-libs/ncurses:0=[unicode?]
26 media-libs/libsamplerate[sndfile]
27 media-libs/libsndfile[-minimal]
34 media-libs/libsdl2[sound,threads,video]
35 media-libs/sdl2-mixer[mod,vorbis,wav]
42 BDEPEND="virtual/pkgconfig"
44 S="${WORKDIR}/${MY_P}"
47 "${FILESDIR}"/dumb-ldflags.patch
53 $(use ncurses && echo ncurses) \
54 $(use sdl && echo sdl) \
57 PKG_CONFIG="$(tc-getPKG_CONFIG)" \
58 RANLIB="$(tc-getRANLIB)" \
59 CURSES=$(usex unicode ncursesw ncurses) \
60 USE_UTF8=$(usex unicode yes "") \
61 SOUND=$(usex sound ao none) \
62 PREFIX="${EPREFIX}/usr" \
63 SYSCONFDIR="${EPREFIX}/etc"
69 $(use ncurses && echo install) \
70 $(use sdl && echo install_sdl) \
71 PREFIX="${EPREFIX}/usr" \
75 AUTHORS ChangeLog CONTRIBUTORS DUMB HOW_TO_PLAY README TODO \
76 doc/frotz.conf-{big,small}
81 elog "Global config file can be installed in ${EPREFIX}/etc/frotz.conf"
82 elog "Sample config files are in ${EPREFIX}/usr/share/doc/${PF}"