Date:2010-08-12 10:24:54 (1 year 5 months ago)
Author:kyak
Commit:3883523a1866972c357c1f11b57ae84b286398ef
Message:kbd: install dumpkeys; bsd-games: change tetris keymap, fix primes

Files: bsd-games/Makefile (1 diff)
bsd-games/patches/001-tetris.patch (2 diffs)
bsd-games/patches/002-primes.patch (1 diff)
kbd/Makefile (1 diff)

Change Details

bsd-games/Makefile
2929define Build/Compile
3030#Building tetris
3131    cd $(PKG_BUILD_DIR)/tetris; \
32    mv pathnames.h.in pathnames.h; \
32    cp pathnames.h.in pathnames.h; \
3333    $(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; \
3434    $(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -o tetris input.o screen.o shapes.o scores.o tetris.o
3535
bsd-games/patches/001-tetris.patch
6262     board[pos + *o++] = onoff;
6363diff -u bsd-games-2.17/tetris/tetris.c bsd-games-2.17-p/tetris/tetris.c
6464--- bsd-games-2.17/tetris/tetris.c 2004-01-27 23:52:07.000000000 +0300
65+++ bsd-games-2.17-p/tetris/tetris.c 2010-07-26 22:04:34.430557133 +0400
6665@@ -35,10 +35,10 @@
6766  */
6867
...... 
7676
7777 /*
7878  * Tetris (or however it is spelled).
79@@ -145,7 +145,7 @@
80         exit(1);
81     close(fd);
82
83- keys = "jkl pq";
84+ keys = "aks pq";
85
86     while ((ch = getopt(argc, argv, "k:l:ps")) != -1)
87         switch(ch) {
bsd-games/patches/002-primes.patch
4343
4444 /*
4545  * primes - generate a table of primes between two values
46diff -u bsd-games-2.17/primes/primes.h bsd-games-2.17-p/primes/primes.h
47+++ bsd-games-2.17-p/primes/primes.h 2010-07-27 10:03:25.333608205 +0400
48@@ -48,3 +48,5 @@
49
50 /* bytes in sieve table (must be > 3*5*7*11) */
51 #define TABSIZE 256*1024
52+
53+int isblank(int c);
5446diff -u bsd-games-2.17/primes/pr_tbl.c bsd-games-2.17-p/primes/pr_tbl.c
5547--- bsd-games-2.17/primes/pr_tbl.c 2003-12-17 05:47:37.000000000 +0300
5648+++ bsd-games-2.17-p/primes/pr_tbl.c 2010-07-27 09:08:15.198301714 +0400
kbd/Makefile
3232endef
3333
3434define Package/kbd/install
35    $(INSTALL_DIR) $(1)/usr/sbin
36    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 \
37            $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/sbin;\
35    $(INSTALL_DIR) $(1)/usr/bin
36    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 \
37            $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/bin;\
3838    done
3939endef
4040

Archive Download the corresponding diff file



interactive