[Packages] admin/gkrellmd: Update to 2.3.1 (http://lists.openwrt.org/pipermail/openwr...
[openwrt/svn-archive/archive.git] / utils / fortune-mod / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=fortune-mod
12 PKG_VERSION:=1.2.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://freeware.sgi.com/source/fortune-mod
17 PKG_MD5SUM:=383b1de06b35450235732c7ae7b5f0e3
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fortune-mod
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=display fortune cookies on demand.
27 URL:=http://freeware.sgi.com/source/fortune-mod
28 endef
29
30 define Package/fortune-mod/description
31 Fortune mod displays fortune cookies on demand
32 endef
33
34 define Build/Compile
35 $(HOSTCC) -Wall -o $(PKG_BUILD_DIR)/util/strfile-host $(PKG_BUILD_DIR)/util/strfile.c -DVERSION=\"$(PKG_VERSION)\"
36 $(PKG_BUILD_DIR)/util/strfile-host $(PKG_BUILD_DIR)/datfiles/fortunes $(PKG_BUILD_DIR)/datfiles/fortunes.dat
37 $(MAKE) -C $(PKG_BUILD_DIR)/fortune
38 endef
39
40 define Package/fortune-mod/install
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fortune/fortune $(1)/usr/bin/
43 $(INSTALL_DIR) $(1)/usr/share/games/fortunes
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/datfiles/fortunes $(1)/usr/share/games/fortunes
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/datfiles/fortunes.dat $(1)/usr/share/games/fortunes
46 endef
47
48 $(eval $(call BuildPackage,fortune-mod))