1 # Copyright 1999-2019 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 if [ "$PV" != "9999" ]; then
7 SRC_URI
="https://github.com/realnc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 inherit desktop qmake-utils xdg
16 if [ "$PV" == "9999" ]; then
17 EGIT_REPO_URI
="https://github.com/realnc/hugor.git"
21 DESCRIPTION
="Multimedia interpreter for Hugo text adventures"
22 HOMEPAGE
="http://ifwiki.org/index.php/Hugor"
33 gstreamer? ( media-libs/gst-plugins-base:1.0 )
36 media-libs/libsdl2[sound]
38 >=media-sound/fluidsynth-2:=
40 vlc? ( || ( media-video/vlc[ffmpeg] media-video/vlc[libav] ) )
41 x11-misc/shared-mime-info
45 media-libs/gst-plugins-good:1.0
46 media-plugins/gst-plugins-libav
53 # VLC is slightly better, so we prefer it.
56 elif use gstreamer
; then
57 conf
="gstreamer-video"
61 if use gstreamer
&& use vlc
; then
62 elog
"Both the gstreamer and the vlc USE flags are set. Hugor "
63 elog
"will be built with vlc, since it's slightly better."
65 eqmake5 PREFIX
="${EPREFIX}/usr" \
66 DOCDIR
="${EPREFIX}/usr/share/doc/${PF}" \
67 CONFIG
+="${conf} adlmidi modplug" \
72 emake INSTALL_ROOT
="${D}" install