1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 15:35:33 +02:00

worm - the growing worm game of bsd-games

This commit is contained in:
kyak 2010-07-31 21:43:12 +04:00
parent 54f53a6ca7
commit f7f5545022
2 changed files with 46 additions and 0 deletions

View File

@ -37,6 +37,10 @@ define Build/Compile
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) -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
define Package/tetris
@ -69,5 +73,21 @@ define Package/primes/install
$(1)/usr/bin/primes
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,primes))
$(eval $(call BuildPackage,worm))

View 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