OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # |
2 | # Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de> |
3 | # |
4 | # OpenWRT package for Alex the Allegotor v4 -- a game using liballegro |
5 | # |
6 | # License GPLv2 or later. NO WARRANTY. |
7 | |
8 | include $(TOPDIR)/rules.mk |
9 | |
10 | PKG_NAME:=alex4 |
11 | PKG_VERSION:=4.0 |
12 | PKG_RELEASE:=1 |
13 | PKG_SOURCE:=alex4src_data.zip |
14 | PKG_SOURCE_URL:=@SF/allegator/Alex4/source%20and%20data/ |
15 | PKG_MD5SUM:=c81b8e3813300a0cfbe828bcdff60fda |
16 | PKG_BUILD_DIR:=$(BUILD_DIR)/alex4src |
17 | |
18 | |
19 | PKG_BUILD_DEPENDS := libdumb |
20 | |
21 | include $(INCLUDE_DIR)/package.mk |
22 | |
23 | define Package/alex4/Default |
24 | SECTION:=games |
25 | CATEGORY:=Games |
26 | URL:=http://allegator.sf.net |
27 | endef |
28 | |
29 | define Package/alex4/Default/description |
30 | Alex the Allegotor is a series of games. Alex v4 is a jump&n run game. |
31 | endef |
32 | |
33 | define Package/alex4 |
34 | $(call Package/alex4/Default) |
35 | TITLE += (the game) |
36 | DEPENDS:=+liballegro +alex4-data |
37 | endef |
38 | |
39 | define Package/alex4/description |
40 | $(call Package/alex4/Default/description) |
41 | This package contains the executable files |
42 | endef |
43 | |
44 | |
45 | define Package/alex4-data |
46 | $(call Package/alex4/Default) |
47 | TITLE += (data) |
48 | endef |
49 | |
50 | define Package/alex4-data/description |
51 | $(call Package/alex4/Default/description) |
52 | This package contains the data files for Alex v4. |
53 | endef |
54 | |
55 | #TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib |
56 | #TARGET_CPPFLAGS += |
57 | |
58 | TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib -laldmb -ldumb -lalleg -lm |
59 | |
60 | |
61 | |
62 | define Build/Configure |
63 | endef |
64 | |
65 | define Build/Compile |
66 | cd $(PKG_BUILD_DIR)/src && \ |
67 | $(TARGET_CC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) *.c $(TARGET_LDFLAGS) -o alex4 |
68 | endef |
69 | |
70 | define Package/alex4/install |
71 | $(INSTALL_DIR) $(1)/usr/bin |
72 | $(INSTALL_DIR) $(1)/etc |
73 | $(CP) $(PKG_BUILD_DIR)/src/alex4 $(1)/usr/bin/ |
74 | $(CP) ./files/alex4.ini $(1)/etc/ |
75 | endef |
76 | |
77 | |
78 | define Package/alex4-data/install |
79 | $(INSTALL_DIR) $(1)/usr/share/alex4 |
80 | $(CP) $(PKG_BUILD_DIR)/data/*.dat $(1)/usr/share/alex4 |
81 | endef |
82 | |
83 | $(eval $(call BuildPackage,alex4)) |
84 | $(eval $(call BuildPackage,alex4-data)) |
85 | |
86 | |
87 | # The following comments configure the Emacs editor. Just ignore them. |
88 | # Local Variables: |
89 | # compile-command: "cd ~/src/nanonote/alex4src && ~/bin/quilt-export target && make -C ~/h/src/qi/openwrt-xburst package/alex4/compile -j2 V=99" |
90 | # End: |
91 |