OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | include $(TOPDIR)/rules.mk |
2 | |
3 | PKG_NAME:=frotz |
4 | PKG_VERSION:=2.43 |
5 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
6 | PKG_SOURCE_URL:=@SF/$(PKG_NAME) |
7 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
8 | PKG_INSTALL:=1 |
9 | |
10 | include $(INCLUDE_DIR)/package.mk |
11 | |
12 | define Package/frotz/Default |
13 | SECTION:=games |
14 | CATEGORY:=Games |
15 | endef |
16 | |
17 | define Package/frotz |
18 | TITLE:=frotz |
19 | DEPENDS:=+libncurses |
20 | URL:=http://frotz.sourceforge.net/ |
21 | endef |
22 | |
23 | define 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/ |
29 | endef |
30 | |
31 | MAKE_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 | |
39 | define Package/frotz/description |
40 | A Portable Z-Machine Interpreter |
41 | endef |
42 | |
43 | define Package/frotz/install |
44 | $(INSTALL_DIR) $(1)/usr/bin |
45 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/frotz $(1)/usr/bin/ |
46 | endef |
47 | |
48 | define Package/frotz-games/install |
49 | $(INSTALL_DIR) $(1)/usr/games/zcode/ |
50 | $(CP) $(FILES_DIR)/* $(1)/usr/games/zcode/ |
51 | endef |
52 | |
53 | $(eval $(call BuildPackage,frotz)) |
54 | $(eval $(call BuildPackage,frotz-games)) |
55 |