2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
12 PKG_REV:=e9941dc4fd55e11be0269c6d6a88e767b3746518
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=git://projects.qi-hardware.com/gmenu2x.git
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
23 PKG_BUILD_DEPENDS:=sparsehash
25 include $(INCLUDE_DIR)/package.mk
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 \
34 -I$(STAGING_DIR)/usr/include/SDL \
35 -I$(STAGING_DIR)/usr/include/google/sparsehash \
36 -I$(PKG_BUILD_DIR)/src/tinyxml \
38 # -I$(STAGING_DIR)/usr/lib/libintl/include \
39 # -I$(STAGING_DIR)/usr/libiconv/include
42 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
43 -L$(STAGING_DIR)/usr/lib/SDL \
45 define Package/gmenu2x
50 URL:=http://projects.qi-hardware.com/index.php/p/gmenu2x/
51 DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libstdcpp +libsdl-gfx
54 define Build/Configure
55 ( cd $(PKG_BUILD_DIR); ./autogen.sh );
56 $(call Build/Configure/Default)
59 define Package/gmenu2x/install
62 $(1)/usr/share/gmenu2x/ \
65 $(PKG_INSTALL_DIR)/usr/bin/gmenu2x \
66 $(1)/usr/share/gmenu2x/
69 $(PKG_BUILD_DIR)/gmenu2x.sh \
73 $(PKG_BUILD_DIR)/pandora/* \
74 $(1)/usr/share/gmenu2x/
78 $(1)/usr/share/gmenu2x/
81 $(1)/usr/share/gmenu2x/sections/{emulators,games}
84 $(eval $(call BuildPackage,gmenu2x))