OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2009 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=gmenu2x |
| 11 | PKG_VERSION:=20101122 |
| 12 | PKG_REV:=6773ad7d3a82c349a9edc9881e7c7330b09a931c |
| 13 | PKG_RELEASE:=1 |
| 14 | PKG_INSTALL:=1 |
| 15 | |
| 16 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 17 | PKG_SOURCE_URL:=git://projects.qi-hardware.com/gmenu2x.git |
| 18 | PKG_SOURCE_PROTO:=git |
| 19 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 20 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 21 | |
| 22 | PKG_BUILD_DEPENDS:=sparsehash |
| 23 | |
| 24 | include $(INCLUDE_DIR)/package.mk |
| 25 | |
| 26 | TARGET_CFLAGS+= \ |
| 27 | -I$(STAGING_DIR)/usr/include/SDL \ |
| 28 | -I$(STAGING_DIR)/usr/include/google/sparsehash \ |
| 29 | -I$(PKG_BUILD_DIR)/src/tinyxml \ |
| 30 | -DTIXML_USE_STL -DTARGET_GP2X -O3 -msoft-float -fomit-frame-pointer -ffast-math -funroll-loops -Wall -Wno-unknown-pragmas -Wno-format \ |
| 31 | |
| 32 | TARGET_CPPFLAGS+= \ |
| 33 | -I$(STAGING_DIR)/usr/include/SDL \ |
| 34 | -I$(STAGING_DIR)/usr/include/google/sparsehash \ |
| 35 | -I$(PKG_BUILD_DIR)/src/tinyxml \ |
| 36 | -DLOG_LEVEL=0 |
| 37 | |
| 38 | TARGET_LDFLAGS+= \ |
| 39 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
| 40 | -L$(STAGING_DIR)/usr/lib/SDL \ |
| 41 | |
| 42 | define Package/gmenu2x |
| 43 | SECTION:=xorg-apps |
| 44 | CATEGORY:=Xorg |
| 45 | SUBMENU:=app |
| 46 | TITLE:=Gmenu2x |
| 47 | URL:=http://projects.qi-hardware.com/index.php/p/gmenu2x/ |
| 48 | DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libstdcpp +libsdl-gfx |
| 49 | endef |
| 50 | |
| 51 | define Build/Configure |
| 52 | ( cd $(PKG_BUILD_DIR); ./autogen.sh ); |
| 53 | $(call Build/Configure/Default) |
| 54 | endef |
| 55 | |
| 56 | define Package/gmenu2x/install |
| 57 | $(INSTALL_DIR) \ |
| 58 | $(1)/usr/bin/ \ |
| 59 | $(1)/usr/share/gmenu2x/ \ |
| 60 | |
| 61 | $(INSTALL_BIN) \ |
| 62 | $(PKG_INSTALL_DIR)/usr/bin/gmenu2x \ |
| 63 | $(1)/usr/share/gmenu2x/ |
| 64 | |
| 65 | $(INSTALL_BIN) \ |
| 66 | ./files/nanonote/bin/gmenu2x \ |
| 67 | $(1)/usr/bin/gmenu2x |
| 68 | |
| 69 | $(CP) \ |
| 70 | $(PKG_BUILD_DIR)/pandora/* \ |
| 71 | $(1)/usr/share/gmenu2x/ |
| 72 | |
| 73 | $(CP) \ |
| 74 | $(PKG_BUILD_DIR)/input.conf.nanonote \ |
| 75 | $(1)/usr/share/gmenu2x/input.conf |
| 76 | |
| 77 | rm -rf \ |
| 78 | $(1)/usr/share/gmenu2x/sections/{emulators,games} |
| 79 | |
| 80 | $(CP) \ |
| 81 | ./files/nanonote/gmenu2x/* \ |
| 82 | $(1)/usr/share/gmenu2x/ |
| 83 | endef |
| 84 | |
| 85 | $(eval $(call BuildPackage,gmenu2x)) |
| 86 |
