Root/gnugo/Makefile

1# Copyright (C) 2008 OpenWrt.org
2#
3# This is free software, licensed under the GNU General Public License v2.
4#
5
6include $(TOPDIR)/rules.mk
7## Package name
8PKG_NAME:=gnugo
9## Package version we need (to match our download source)
10PKG_VERSION:=3.8
11## Release version (don't really needed, just for completeness)
12PKG_RELEASE:=3
13## Name of the file we will download, with the previous package name definitions
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15## Url with the PKG_SOURCE file
16PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gnugo/
17## Program to uncompress the sources
18PKG_CAT:=zcat
19
20include $(INCLUDE_DIR)/package.mk
21# Definition of the package, for adding to menuconfig and creating the ipkg.
22define Package/gnugo
23    TITLE:=Go GNU from FSF
24    SECTION:=games
25    CATEGORY:=Games
26    DEPENDS:=@BROKEN
27    URL:=http://www.gnu.org/software/gnugo
28endef
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
31# it.
32PKG_BUILD_DIR:=$(BUILD_DIR)/gnugo-$(PKG_VERSION)
33# Long description of the package
34define 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.
36endef
37# If ./configure does not need any options, leave it as follows
38define Package/gnugo/Build/Configure
39    $(call Build/Configure/Default)
40endef
41# Where will be copied the binaries and libraries after installation.
42# Gnugo creates the binary executable in the interface directory.
43define Package/gnugo/install
44    $(INSTALL_DIR) $(1)/usr/sbin
45    $(INSTALL_BIN) $(PKG_BUILD_DIR)/interface/gnugo $(1)/usr/sbin/
46endef
47# Final step for bulding the package
48$(eval $(call BuildPackage,gnugo))
49

Archive Download this file



interactive