2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://freeware.sgi.com
/source
/fortune-mod
17 PKG_MD5SUM
:=383b1de06b35450235732c7ae7b5f0e3
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/fortune-mod
27 TITLE
:=display fortune cookies on demand.
28 DESCRIPTION
:=Fortune mod displays fortune cookies on demand
29 URL
:=http
://freeware.sgi.com
/source
/fortune-mod
33 $(HOSTCC
) -Wall
-o
$(PKG_BUILD_DIR
)/util
/strfile-host
$(PKG_BUILD_DIR
)/util
/strfile.c
-DVERSION
=\"$(PKG_VERSION
)\"
34 $(PKG_BUILD_DIR
)/util
/strfile-host
$(PKG_BUILD_DIR
)/datfiles
/fortunes
$(PKG_BUILD_DIR
)/datfiles
/fortunes.dat
35 $(MAKE
) -C
$(PKG_BUILD_DIR
)/fortune
38 define Package
/fortune-mod
/install
39 $(INSTALL_DIR
) $(1)/usr
/bin
40 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fortune
/fortune
$(1)/usr
/bin
/
41 $(INSTALL_DIR
) $(1)/usr
/share
/games
/fortunes
42 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/datfiles
/fortunes
$(1)/usr
/share
/games
/fortunes
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/datfiles
/fortunes.dat
$(1)/usr
/share
/games
/fortunes
46 $(eval
$(call BuildPackage
,fortune-mod
))