OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| Source at commit 6ce3263fba88100f2c5b1ac13e612cef3719b1b8 created 1 year 8 months ago. By bartbes, Updated gmenu2x makefile to use newest version | |
|---|---|
| 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:=20100901 |
| 12 | PKG_REV:=5c05348ba99b6551d22bbaea17bfcabff31befbd |
| 13 | PKG_RELEASE:=1 |
| 14 | |
| 15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 16 | PKG_SOURCE_URL:=git://projects.qi-hardware.com/gmenu2x.git |
| 17 | PKG_SOURCE_PROTO:=git |
| 18 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 19 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 20 | |
| 21 | PKG_INSTALL:=1 |
| 22 | |
| 23 | PKG_BUILD_DEPENDS:=sparsehash |
| 24 | |
| 25 | include $(INCLUDE_DIR)/package.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 -ffast-math -funroll-loops -Wall -Wno-unknown-pragmas -Wno-format \ |
| 32 | |
| 33 | TARGET_CPPFLAGS+= \ |
| 34 | -I$(STAGING_DIR)/usr/include/SDL \ |
| 35 | -I$(STAGING_DIR)/usr/include/google/sparsehash \ |
| 36 | -I$(PKG_BUILD_DIR)/src/tinyxml \ |
| 37 | |
| 38 | # -I$(STAGING_DIR)/usr/lib/libintl/include \ |
| 39 | # -I$(STAGING_DIR)/usr/libiconv/include |
| 40 | # |
| 41 | TARGET_LDFLAGS+= \ |
| 42 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
| 43 | -L$(STAGING_DIR)/usr/lib/SDL \ |
| 44 | |
| 45 | define Package/gmenu2x |
| 46 | SECTION:=xorg-apps |
| 47 | CATEGORY:=Xorg |
| 48 | SUBMENU:=app |
| 49 | TITLE:=Gmenu2x |
| 50 | URL:=http://projects.qi-hardware.com/index.php/p/gmenu2x/ |
| 51 | DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libstdcpp +libsdl-gfx |
| 52 | endef |
| 53 | |
| 54 | define Build/Configure |
| 55 | ( cd $(PKG_BUILD_DIR); ./autogen.sh ); |
| 56 | $(call Build/Configure/Default) |
| 57 | endef |
| 58 | |
| 59 | define Package/gmenu2x/install |
| 60 | $(INSTALL_DIR) \ |
| 61 | $(1)/usr/bin/ \ |
| 62 | $(1)/usr/share/gmenu2x/ \ |
| 63 | |
| 64 | $(INSTALL_BIN) \ |
| 65 | $(PKG_INSTALL_DIR)/usr/bin/gmenu2x \ |
| 66 | $(1)/usr/share/gmenu2x/ |
| 67 | |
| 68 | $(INSTALL_BIN) \ |
| 69 | $(PKG_BUILD_DIR)/gmenu2x.sh \ |
| 70 | $(1)/usr/bin/gmenu2x |
| 71 | |
| 72 | $(CP) \ |
| 73 | $(PKG_BUILD_DIR)/pandora/* \ |
| 74 | $(1)/usr/share/gmenu2x/ |
| 75 | |
| 76 | $(CP) \ |
| 77 | ./files/input.conf \ |
| 78 | $(1)/usr/share/gmenu2x/ |
| 79 | |
| 80 | rm -rf \ |
| 81 | $(1)/usr/share/gmenu2x/sections/{emulators,games} |
| 82 | endef |
| 83 | |
| 84 | $(eval $(call BuildPackage,gmenu2x)) |
| 85 | |
