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 | DEPENDS:=+alex4 |
| 49 | endef |
| 50 | |
| 51 | define Package/alex4-data/description |
| 52 | $(call Package/alex4/Default/description) |
| 53 | This package contains the data files for Alex v4. |
| 54 | endef |
| 55 | |
| 56 | #TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib |
| 57 | #TARGET_CPPFLAGS += |
| 58 | |
| 59 | TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib -laldmb -ldumb -lalleg |
| 60 | |
| 61 | |
| 62 | |
| 63 | define Build/Configure |
| 64 | endef |
| 65 | |
| 66 | define Build/Compile |
| 67 | cd $(PKG_BUILD_DIR)/src && \ |
| 68 | $(TARGET_CC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) *.c $(TARGET_LDFLAGS) -o alex4 |
| 69 | endef |
| 70 | |
| 71 | define Package/alex4/install |
| 72 | $(INSTALL_DIR) $(1)/usr/bin |
| 73 | $(INSTALL_DIR) $(1)/etc |
| 74 | $(CP) $(PKG_BUILD_DIR)/src/alex4 $(1)/usr/bin/ |
| 75 | $(CP) ./files/alex4.ini $(1)/etc/ |
| 76 | endef |
| 77 | |
| 78 | |
| 79 | define Package/alex4-data/install |
| 80 | $(INSTALL_DIR) $(1)/usr/share/alex4 |
| 81 | $(CP) $(PKG_BUILD_DIR)/data/*.dat $(1)/usr/share/alex4 |
| 82 | endef |
| 83 | |
| 84 | $(eval $(call BuildPackage,alex4)) |
| 85 | $(eval $(call BuildPackage,alex4-data)) |
| 86 | |
| 87 | |
| 88 | # The following comments configure the Emacs editor. Just ignore them. |
| 89 | # Local Variables: |
| 90 | # compile-command: "cd ~/src/nanonote/alex4src && ~/bin/quilt-export target && make -C ~/h/src/qi/openwrt-xburst package/alex4/compile -j2 V=99" |
| 91 | # End: |
| 92 |
