OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de> |
| 3 | # |
| 4 | # License GPLv2 or later. NO WARRANTY. |
| 5 | # |
| 6 | # OpenWRT package for Brainless chess playing program |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=brainless |
| 11 | PKG_VERSION:=0.1.2 |
| 12 | PKG_RELEASE:=2 |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 14 | PKG_SOURCE_URL:=@SF/forth-brainless |
| 15 | PKG_MD5SUM:=ed4a4cbbe23628b17edc5aa01f32f7fb |
| 16 | PKG_INSTALL:=1 |
| 17 | |
| 18 | include $(INCLUDE_DIR)/package.mk |
| 19 | |
| 20 | define Package/brainless/Default |
| 21 | SECTION:=games |
| 22 | CATEGORY:=Games |
| 23 | TITLE:=Brainless (a chess playing program) |
| 24 | URL:=https://sourceforge.net/projects/forth-brainless/ |
| 25 | DEPENDS:=+gforth |
| 26 | endef |
| 27 | |
| 28 | define Package/brainless/Default/description |
| 29 | Brainless is a chess-playing program written in ANS Forth. It uses the |
| 30 | Forth terminal for interacting with the user, making use of ANSI color |
| 31 | terminals and Utf-8 chess-piece glyphs for quasi-graphical display. |
| 32 | endef |
| 33 | |
| 34 | define Package/brainless |
| 35 | $(call Package/brainless/Default) |
| 36 | endef |
| 37 | |
| 38 | define Package/brainless/description |
| 39 | $(call Package/brainless/Default/description) |
| 40 | endef |
| 41 | |
| 42 | |
| 43 | # searches for fusion* headers that are not present. different version? |
| 44 | CONFIGURE_ARGS += \ |
| 45 | --with-gforth=/usr/bin/gforth-fast |
| 46 | |
| 47 | define Build/Configure |
| 48 | $(call Build/Configure/Default) |
| 49 | endef |
| 50 | |
| 51 | define Build/Compile |
| 52 | endef |
| 53 | |
| 54 | define Package/brainless/install |
| 55 | $(INSTALL_DIR) $(1)/usr |
| 56 | $(CP) $(PKG_INSTALL_DIR)/usr/* $(1)/usr/ |
| 57 | $(INSTALL_BIN) ./files/brainless-jfbterm $(1)/usr/bin/ |
| 58 | endef |
| 59 | |
| 60 | $(eval $(call BuildPackage,brainless)) |
| 61 | |
| 62 | # The following comments configure the Emacs editor. Just ignore them. |
| 63 | # Local Variables: |
| 64 | # compile-command: "make -C ~/h/src/qi/openwrt-xburst package/brainless/compile -j2 V=99" |
| 65 | # End: |
| 66 |
