blob: 08d19d78526c8622426c95717c3a7ddbd189a559 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils
DESCRIPTION="Curses based interpreter for Z-code based text games"
HOMEPAGE="http://frotz.sourceforge.net/"
SRC_URI="http://www.ifarchive.org/if-archive/infocom/interpreters/frotz/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa oss"
DEPEND="sys-libs/ncurses:0
alsa? ( oss? ( media-libs/alsa-oss ) )"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-glibc2.10.patch
"${FILESDIR}"/${P}-ldflags.patch
)
src_prepare() {
default
sed -i \
-e '/^CC /d' \
Makefile \
|| die
}
src_compile() {
local OPTS="CONFIG_DIR=/etc"
use oss && OPTS="${OPTS} SOUND_DEFS=-DOSS_SOUND SOUND_DEV=/dev/dsp"
emake ${OPTS} all
}
src_install () {
dobin {d,}frotz
doman doc/*.6
dodoc AUTHORS BUGS ChangeLog HOW_TO_PLAY README TODO \
doc/{frotz.conf-big,frotz.conf-small}
}
pkg_postinst() {
echo
elog "Global config file can be installed in /etc/frotz.conf"
elog "Sample config files are in /usr/share/doc/${PF}"
echo
}
|