mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 16:00:36 +02:00
worm - the growing worm game of bsd-games
This commit is contained in:
parent
54f53a6ca7
commit
f7f5545022
@ -37,6 +37,10 @@ define Build/Compile
|
|||||||
cd $(PKG_BUILD_DIR)/primes; \
|
cd $(PKG_BUILD_DIR)/primes; \
|
||||||
$(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings pattern.c pr_tbl.c primes.c; \
|
$(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings pattern.c pr_tbl.c primes.c; \
|
||||||
$(TARGET_CC) -lm -o primes pattern.o pr_tbl.o primes.o
|
$(TARGET_CC) -lm -o primes pattern.o pr_tbl.o primes.o
|
||||||
|
|
||||||
|
#Building worm
|
||||||
|
cd $(PKG_BUILD_DIR)/worm; \
|
||||||
|
$(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/usr/include -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -o worm worm.c
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/tetris
|
define Package/tetris
|
||||||
@ -69,5 +73,21 @@ define Package/primes/install
|
|||||||
$(1)/usr/bin/primes
|
$(1)/usr/bin/primes
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/worm
|
||||||
|
$(call Package/bsd-games)
|
||||||
|
TITLE:=The growing worm game
|
||||||
|
DEPENDS:=+libncurses
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/worm/install
|
||||||
|
$(INSTALL_DIR) \
|
||||||
|
$(1)/usr/bin
|
||||||
|
|
||||||
|
$(INSTALL_BIN) \
|
||||||
|
$(PKG_BUILD_DIR)/worm/worm \
|
||||||
|
$(1)/usr/bin/worm
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,tetris))
|
$(eval $(call BuildPackage,tetris))
|
||||||
$(eval $(call BuildPackage,primes))
|
$(eval $(call BuildPackage,primes))
|
||||||
|
$(eval $(call BuildPackage,worm))
|
||||||
|
26
bsd-games/patches/003-worm.patch
Normal file
26
bsd-games/patches/003-worm.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff -u bsd-games-2.17/worm/worm.c bsd-games-2.17-p/worm/worm.c
|
||||||
|
--- bsd-games-2.17/worm/worm.c 2004-01-27 23:52:07.000000000 +0300
|
||||||
|
+++ bsd-games-2.17-p/worm/worm.c 2010-07-31 21:36:08.313419076 +0400
|
||||||
|
@@ -30,18 +30,18 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
-#ifndef lint
|
||||||
|
+/*#ifndef lint
|
||||||
|
__COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||||
|
The Regents of the University of California. All rights reserved.\n");
|
||||||
|
-#endif /* not lint */
|
||||||
|
+#endif */ /* not lint */
|
||||||
|
|
||||||
|
-#ifndef lint
|
||||||
|
+/* #ifndef lint
|
||||||
|
#if 0
|
||||||
|
static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93";
|
||||||
|
#else
|
||||||
|
__RCSID("$NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $");
|
||||||
|
#endif
|
||||||
|
-#endif /* not lint */
|
||||||
|
+#endif */ /* not lint */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Worm. Written by Michael Toy
|
Loading…
Reference in New Issue
Block a user