aboutsummaryrefslogtreecommitdiff
path: root/recipes/frotz/frotz_2.42.bb
blob: c74b1323e0e754452f5a22018bf3adc772d7cdef (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
LICENSE = "GPL"
DESCRIPTION = "Frotz is an interpreter for Infocom games and other Z-machine games."
HOMEPAGE = "http://frotz.sourceforge.net/"
SECTION = "console/games"
PR = "r1"

DEPENDS = "ncurses"

SRC_URI = "http://downloads.sourceforge.net/project/frotz/frotz/2.42/frotz-${PV}.tar.gz \
	file://Makefile.patch "

do_configure() {
	patch -N ${s}/ux_init.c < remove_root_restriction.patch || :
	rm -f ${SourceTree}/frotz.conf
}

EXTRA_OEMAKE = "CC='${CC}' INCL='${CFLAGS}' LIB='${LDFLAGS}' PREFIX=${prefix} CONFIG_DIR=${sysconfdir}"

do_compile() {
	oe_runmake frotz
	sed 's/^[a-z]/#&/' frotz.conf-big > frotz.conf;
}

do_install() {
	oe_runmake PREFIX=${D}${prefix} MAN_PREFIX=${D}${mandir} install
}

SRC_URI[md5sum] = "a1cf81b39f749ea96e4585238ffc1b3f"
SRC_URI[sha256sum] = "cbdd2b2911aaf57a3efa6e12d4b45036b80efbb3ede30e88118fc528d90a4768"