Root/frotz/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=frotz
4PKG_VERSION:=2.43
5PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
6PKG_SOURCE_URL:=@SF/$(PKG_NAME)
7PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
8PKG_INSTALL:=1
9
10include $(INCLUDE_DIR)/package.mk
11
12define Package/frotz/Default
13    SECTION:=games
14    CATEGORY:=Games
15endef
16
17define Package/frotz
18    TITLE:=frotz
19    DEPENDS:=+libncurses
20    URL:=http://frotz.sourceforge.net/
21endef
22
23define Package/frotz-games
24    TITLE:=frotz-games
25    SECTION:=games
26    CATEGORY:=Games
27    DEPENDS:=+frotz
28    URL:=http://ifarchive.org/if-archive/games/zcode/
29endef
30
31MAKE_VARS +=CONFIG_DIR=/etc \
32    INCL=-I$(STAGING_DIR)/usr/include \
33    LIB=-L$(STAGING_DIR)/usr/lib \
34    SOUND_DEV=/dev/dsp \
35    SOUND_DEFS=-DOSS_SOUND \
36    CURSES=-lncurses \
37    CURSES_DEF=-DUSE_NCURSES_H
38
39define Package/frotz/description
40    A Portable Z-Machine Interpreter
41endef
42
43define Package/frotz/install
44    $(INSTALL_DIR) $(1)/usr/bin
45    $(INSTALL_BIN) $(PKG_BUILD_DIR)/frotz $(1)/usr/bin/
46endef
47
48define Package/frotz-games/install
49    $(INSTALL_DIR) $(1)/usr/games/zcode/
50    $(CP) $(FILES_DIR)/* $(1)/usr/games/zcode/
51endef
52
53$(eval $(call BuildPackage,frotz))
54$(eval $(call BuildPackage,frotz-games))
55

Archive Download this file



interactive