diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/frotz | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/frotz')
-rw-r--r-- | packages/frotz/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/frotz/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/frotz/files/Makefile-2.43.patch | 29 | ||||
-rw-r--r-- | packages/frotz/files/Makefile.patch | 12 | ||||
-rw-r--r-- | packages/frotz/files/remove_root_restriction.patch | 18 | ||||
-rw-r--r-- | packages/frotz/frotz_2.42.bb | 24 | ||||
-rw-r--r-- | packages/frotz/frotz_2.43.bb | 23 |
7 files changed, 106 insertions, 0 deletions
diff --git a/packages/frotz/.mtn2git_empty b/packages/frotz/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/frotz/.mtn2git_empty diff --git a/packages/frotz/files/.mtn2git_empty b/packages/frotz/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/frotz/files/.mtn2git_empty diff --git a/packages/frotz/files/Makefile-2.43.patch b/packages/frotz/files/Makefile-2.43.patch index e69de29bb2..7df2576ef1 100644 --- a/packages/frotz/files/Makefile-2.43.patch +++ b/packages/frotz/files/Makefile-2.43.patch @@ -0,0 +1,29 @@ +--- ./Makefile 2002-10-27 18:21:52.000000000 -0700 ++++ ./Makefile-2.43.patch 2004-09-11 09:33:35.000000000 -0700 +@@ -73,15 +73,15 @@ + # curses library won't work, comment out the first option and uncomment + # the second. + # +-CURSES = -lcurses +-#CURSES = -lncurses ++# CURSES = -lcurses ++CURSES = -lncurses + + # Uncomment this if your need to use ncurses instead of the + # vendor-supplied curses library. This just tells the compile process + # which header to include, so don't worry if ncurses is all you have + # (like on Linux). You'll be fine. + # +-#CURSES_DEF = -DUSE_NCURSES_H ++CURSES_DEF = -DUSE_NCURSES_H + + # Uncomment this if you're compiling Unix Frotz on a machine that lacks + # the memmove(3) system call. If you don't know what this means, leave it +@@ -213,7 +213,6 @@ + fi + + install: $(NAME) +- strip $(BINNAME)$(EXTENSION) + install -d $(PREFIX)/bin + install -d $(MAN_PREFIX)/man/man6 + install -c -m 755 $(BINNAME)$(EXTENSION) $(PREFIX)/bin diff --git a/packages/frotz/files/Makefile.patch b/packages/frotz/files/Makefile.patch index e69de29bb2..4486c127bd 100644 --- a/packages/frotz/files/Makefile.patch +++ b/packages/frotz/files/Makefile.patch @@ -0,0 +1,12 @@ +*** ./Makefile Sat Mar 9 17:24:16 2002 +--- ./Makefile.patch Tue Aug 3 10:30:33 2004 +*************** +*** 123,129 **** + install: $(BINNAME) + install -d $(PREFIX)/bin + install -d $(MAN_PREFIX)/man/man6 +- strip $(BINNAME)$(EXTENSION) + install -c -m 755 $(BINNAME)$(EXTENSION) $(PREFIX)/bin + install -c -m 644 $(BINNAME).6 $(MAN_PREFIX)/man/man6 + +--- 123,128 ---- diff --git a/packages/frotz/files/remove_root_restriction.patch b/packages/frotz/files/remove_root_restriction.patch index e69de29bb2..f2be13dec2 100644 --- a/packages/frotz/files/remove_root_restriction.patch +++ b/packages/frotz/files/remove_root_restriction.patch @@ -0,0 +1,18 @@ +--- ./src/curses/ux_init.c 2004-09-11 10:15:07.000000000 -0700 ++++ ux_init.c.patch 2004-09-11 10:15:40.000000000 -0700 +@@ -139,15 +139,6 @@ + char *home; + char configfile[FILENAME_MAX + 1]; + +- if ((getuid() == 0) || (geteuid() == 0)) { +- printf("I won't run as root!\n"); +- exit(1); +- } +- +- if ((home = getenv("HOME")) == NULL) { +- printf("Hard drive on fire!\n"); +- exit(1); +- } + + /* + * It doesn't look like Frotz can reliably be resized given its current diff --git a/packages/frotz/frotz_2.42.bb b/packages/frotz/frotz_2.42.bb index e69de29bb2..5a16f68ce1 100644 --- a/packages/frotz/frotz_2.42.bb +++ b/packages/frotz/frotz_2.42.bb @@ -0,0 +1,24 @@ +LICENSE = GPL +DESCRIPTION = "Frotz is an interpreter for Infocom games and other Z-machine games." +HOMEPAGE = "http://www.cs.csubak.edu/~dgriffi/proj/frotz/" +SECTION = "console/games" +DEPENDS = "ncurses" + +SRC_URI = "http://www.cs.csubak.edu/~dgriffi/proj/frotz/files/frotz-${PV}.tar.gz \ + file://Makefile.patch;patch=1 " + +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 +} diff --git a/packages/frotz/frotz_2.43.bb b/packages/frotz/frotz_2.43.bb index e69de29bb2..defe0d4cf6 100644 --- a/packages/frotz/frotz_2.43.bb +++ b/packages/frotz/frotz_2.43.bb @@ -0,0 +1,23 @@ +LICENSE = GPL +DESCRIPTION = "Frotz is an interpreter for Infocom games and other Z-machine games." +HOMEPAGE = "http://www.cs.csubak.edu/~dgriffi/proj/frotz/" +SECTION = "console/games" +DEPENDS = "ncurses" + +SRC_URI = "http://www.cs.csubak.edu/~dgriffi/proj/frotz/files/frotz-${PV}.tar.gz \ + file://Makefile-${PV}.patch;patch=1 \ + file://remove_root_restriction.patch;patch=1 " + +do_configure() { + rm -f ${SourceTree}/frotz.conf +} + +EXTRA_OEMAKE = "CC='${CC}' INCL='${CFLAGS}' LIB='${LDFLAGS}' PREFIX=${prefix} CONFIG_DIR=${sysconfdir}" + +do_compile() { + oe_runmake frotz +} + +do_install() { + oe_runmake PREFIX=${D}${prefix} MAN_PREFIX=${D}${mandir} install +} |