1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 06:43:45 +02:00

backgammon of bsd-games

This commit is contained in:
kyak 2010-08-01 12:24:27 +04:00
parent f7f5545022
commit d696302080

View File

@ -41,6 +41,17 @@ define Build/Compile
#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
#Building backgammon
cd $(PKG_BUILD_DIR)/backgammon; \
cd common_source; \
$(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -I$(STAGING_DIR)/usr/include -DEXEC_PATH=\"/usr/bin/backgammon\" -DTEACH_PATH=\"/usr/bin/teachgammon\" allow.c board.c check.c fancy.c init.c odds.c one.c save.c subs.c table.c; \
cd ../backgammon; \
$(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)/backgammon/common_source extra.c main.c move.c text.c version.c; \
$(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -o backgammon $(ECHO) ../common_source/*.o ../backgammon/*.o; \
cd ../teachgammon; \
$(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)/backgammon/common_source data.c teach.c ttext1.c ttext2.c tutor.c; \
$(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -o teachgammon $(ECHO) ../common_source/*.o ../teachgammon/*.o
endef
define Package/tetris
@ -88,6 +99,26 @@ define Package/worm/install
$(1)/usr/bin/worm
endef
define Package/backgammon
$(call Package/bsd-games)
TITLE:=the game of backgammon
DEPENDS:=+libncurses
endef
define Package/backgammon/install
$(INSTALL_DIR) \
$(1)/usr/bin
$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/backgammon/backgammon/backgammon \
$(1)/usr/bin/backgammon
$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/backgammon/teachgammon/teachgammon \
$(1)/usr/bin/teachgammon
endef
$(eval $(call BuildPackage,tetris))
$(eval $(call BuildPackage,primes))
$(eval $(call BuildPackage,worm))
$(eval $(call BuildPackage,backgammon))