AA: mjpg-streamer: merge r37929
[12.09/packages.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fortune-mod
11 PKG_VERSION:=1.2.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://freeware.sgi.com/source/fortune-mod
16 PKG_MD5SUM:=383b1de06b35450235732c7ae7b5f0e3
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/fortune-mod
21   SECTION:=utils
22   CATEGORY:=Utilities
23   TITLE:=display fortune cookies on demand.
24   URL:=http://packages.debian.org/fortune-mod
25 endef
26
27 define Package/fortune-mod/description
28 Fortune mod displays fortune cookies on demand
29 endef
30
31 define Build/Compile
32         $(HOSTCC) -Wall -o $(PKG_BUILD_DIR)/util/strfile-host $(PKG_BUILD_DIR)/util/strfile.c -DVERSION=\"$(PKG_VERSION)\"
33         $(PKG_BUILD_DIR)/util/strfile-host $(PKG_BUILD_DIR)/datfiles/fortunes $(PKG_BUILD_DIR)/datfiles/fortunes.dat
34         $(MAKE) -C $(PKG_BUILD_DIR)/fortune
35 endef
36
37 define Package/fortune-mod/install
38         $(INSTALL_DIR) $(1)/usr/bin
39         $(INSTALL_BIN) $(PKG_BUILD_DIR)/fortune/fortune $(1)/usr/bin/
40         $(INSTALL_DIR) $(1)/usr/share/games/fortunes
41         $(INSTALL_BIN) $(PKG_BUILD_DIR)/datfiles/fortunes $(1)/usr/share/games/fortunes
42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/datfiles/fortunes.dat $(1)/usr/share/games/fortunes
43 endef
44
45 $(eval $(call BuildPackage,fortune-mod))