1 # Copyright (C) 2008 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
6 include $(TOPDIR)/rules.mk
9 ## Package version we need (to match our download source)
11 ## Release version (don't really needed, just for completeness)
13 ## Name of the file we will download, with the previous package name definitions
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 ## Url with the PKG_SOURCE file
16 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gnugo/
17 ## Program to uncompress the sources
20 include $(INCLUDE_DIR)/package.mk
21 # Definition of the package, for adding to menuconfig and creating the ipkg.
23 TITLE:=Go GNU from FSF
27 URL:=http://www.gnu.org/software/gnugo
29 # Directory where the sources will be uncompiled and built BUILD_DIR
30 # is an env variable from the OpenWrt toolchain, you don't need to set
32 PKG_BUILD_DIR:=$(BUILD_DIR)/gnugo-$(PKG_VERSION)
33 # Long description of the package
34 define Package/gnugo/description
35 GNU Go is a free program that plays the game of Go. GNU Go has played thousands of games on the NNGS Go server. GNU Go is now also playing regularly on the Legend Go Server in Taiwan, on the WING server in Japan, and many volunteers run GNU Go clients on KGS. GNU Go has established itself as the leading non-commercial go program in the recent tournaments that it has taken part in.
37 # If ./configure does not need any options, leave it as follows
38 define Package/gnugo/Build/Configure
39 $(call Build/Configure/Default)
41 # Where will be copied the binaries and libraries after installation.
42 # Gnugo creates the binary executable in the interface directory.
43 define Package/gnugo/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/interface/gnugo $(1)/usr/sbin/
47 # Final step for bulding the package
48 $(eval $(call BuildPackage,gnugo))