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:=20110527 |
| 12 | PKG_REV:=e0831be4a3d9b22a79e63cb0b83147819603d86c |
| 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 | include $(INCLUDE_DIR)/nls.mk |
| 26 | |
| 27 | TARGET_CFLAGS+= \ |
| 28 | -I$(STAGING_DIR)/usr/include/SDL \ |
| 29 | -I$(STAGING_DIR)/usr/include/google/sparsehash \ |
| 30 | -I$(PKG_BUILD_DIR)/src/tinyxml \ |
| 31 | -DTIXML_USE_STL -DTARGET_GP2X -O3 -msoft-float -fomit-frame-pointer \ |
| 32 | -ffast-math -funroll-loops -Wall -Wno-unknown-pragmas -Wno-format \ |
| 33 | |
| 34 | TARGET_CPPFLAGS+= \ |
| 35 | -I$(STAGING_DIR)/usr/include/SDL \ |
| 36 | -I$(STAGING_DIR)/usr/include/google/sparsehash \ |
| 37 | -I$(PKG_BUILD_DIR)/src/tinyxml \ |
| 38 | -DLOG_LEVEL=0 |
| 39 | |
| 40 | TARGET_LDFLAGS+= \ |
| 41 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
| 42 | -L$(STAGING_DIR)/usr/lib/SDL |
| 43 | |
| 44 | define Package/gmenu2x |
| 45 | SECTION:=xorg-apps |
| 46 | CATEGORY:=Xorg |
| 47 | SUBMENU:=app |
| 48 | TITLE:=Gmenu2x |
| 49 | URL:=http://projects.qi-hardware.com/index.php/p/gmenu2x/ |
| 50 | DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libstdcpp +libsdl-gfx |
| 51 | endef |
| 52 | |
| 53 | define Build/Configure |
| 54 | ( cd $(PKG_BUILD_DIR); ./autogen.sh ); |
| 55 | $(call Build/Configure/Default) |
| 56 | endef |
| 57 | |
| 58 | define Package/gmenu2x/install |
| 59 | $(INSTALL_DIR) \ |
| 60 | $(1)/usr/bin/ \ |
| 61 | $(1)/usr/share/gmenu2x/ \ |
| 62 | |
| 63 | $(INSTALL_BIN) \ |
| 64 | $(PKG_INSTALL_DIR)/usr/bin/gmenu2x \ |
| 65 | $(1)/usr/share/gmenu2x/ |
| 66 | |
| 67 | $(CP) \ |
| 68 | $(PKG_BUILD_DIR)/nanonote/* \ |
| 69 | $(1)/usr/share/gmenu2x/ |
| 70 | |
| 71 | mv \ |
| 72 | $(1)/usr/share/gmenu2x/gmenu2x.sh \ |
| 73 | $(1)/usr/bin/gmenu2x |
| 74 | endef |
| 75 | |
| 76 | $(eval $(call BuildPackage,gmenu2x)) |
| 77 |
