mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-12-22 17:19:53 +02:00
kbd: install dumpkeys; bsd-games: change tetris keymap, fix primes
This commit is contained in:
parent
e040576e2b
commit
3883523a18
@ -29,7 +29,7 @@ CFLAGS:=
|
||||
define Build/Compile
|
||||
#Building tetris
|
||||
cd $(PKG_BUILD_DIR)/tetris; \
|
||||
mv pathnames.h.in pathnames.h; \
|
||||
cp pathnames.h.in pathnames.h; \
|
||||
$(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -I$(STAGING_DIR)/usr/include input.c screen.c shapes.c scores.c tetris.c; \
|
||||
$(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -o tetris input.o screen.o shapes.o scores.o tetris.o
|
||||
|
||||
|
@ -62,7 +62,7 @@ diff -u bsd-games-2.17/tetris/shapes.c bsd-games-2.17-p/tetris/shapes.c
|
||||
board[pos + *o++] = onoff;
|
||||
diff -u bsd-games-2.17/tetris/tetris.c bsd-games-2.17-p/tetris/tetris.c
|
||||
--- bsd-games-2.17/tetris/tetris.c 2004-01-27 23:52:07.000000000 +0300
|
||||
+++ bsd-games-2.17-p/tetris/tetris.c 2010-07-26 22:04:34.430557133 +0400
|
||||
+++ bsd-games-2.17-p/tetris/tetris.c 2010-08-12 12:21:29.685301361 +0400
|
||||
@@ -35,10 +35,10 @@
|
||||
*/
|
||||
|
||||
@ -76,3 +76,12 @@ diff -u bsd-games-2.17/tetris/tetris.c bsd-games-2.17-p/tetris/tetris.c
|
||||
|
||||
/*
|
||||
* Tetris (or however it is spelled).
|
||||
@@ -145,7 +145,7 @@
|
||||
exit(1);
|
||||
close(fd);
|
||||
|
||||
- keys = "jkl pq";
|
||||
+ keys = "aks pq";
|
||||
|
||||
while ((ch = getopt(argc, argv, "k:l:ps")) != -1)
|
||||
switch(ch) {
|
||||
|
@ -43,15 +43,6 @@ diff -u bsd-games-2.17/primes/primes.c bsd-games-2.17-p/primes/primes.c
|
||||
|
||||
/*
|
||||
* primes - generate a table of primes between two values
|
||||
diff -u bsd-games-2.17/primes/primes.h bsd-games-2.17-p/primes/primes.h
|
||||
--- bsd-games-2.17/primes/primes.h 2003-12-17 05:47:37.000000000 +0300
|
||||
+++ bsd-games-2.17-p/primes/primes.h 2010-07-27 10:03:25.333608205 +0400
|
||||
@@ -48,3 +48,5 @@
|
||||
|
||||
/* bytes in sieve table (must be > 3*5*7*11) */
|
||||
#define TABSIZE 256*1024
|
||||
+
|
||||
+int isblank(int c);
|
||||
diff -u bsd-games-2.17/primes/pr_tbl.c bsd-games-2.17-p/primes/pr_tbl.c
|
||||
--- bsd-games-2.17/primes/pr_tbl.c 2003-12-17 05:47:37.000000000 +0300
|
||||
+++ bsd-games-2.17-p/primes/pr_tbl.c 2010-07-27 09:08:15.198301714 +0400
|
||||
|
@ -32,9 +32,9 @@ define Build/Configure
|
||||
endef
|
||||
|
||||
define Package/kbd/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
for f in setfont psfxtable setmetamode unicode_stop kbdrate loadkeys kbd_mode showconsolefont loadunimap unicode_start deallocvt openvt getkeycodes showkey setleds cad chvt mapscrn fgconsole setkeycodes; do \
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/sbin;\
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
for f in setfont psfxtable setmetamode unicode_stop kbdrate loadkeys kbd_mode showconsolefont loadunimap unicode_start deallocvt openvt getkeycodes showkey setleds cad chvt mapscrn fgconsole setkeycodes dumpkeys; do \
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/bin;\
|
||||
done
|
||||
endef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user