Root/gmenu2x/Makefile

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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=gmenu2x
11PKG_VERSION:=20101117
12PKG_REV:=6e5fa8cedfcf436575e2b81e303d58abd308584d
13PKG_RELEASE:=1
14PKG_INSTALL:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=git://projects.qi-hardware.com/gmenu2x.git
18PKG_SOURCE_PROTO:=git
19PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20PKG_SOURCE_VERSION:=$(PKG_REV)
21
22PKG_BUILD_DEPENDS:=sparsehash
23
24include $(INCLUDE_DIR)/package.mk
25
26TARGET_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
32TARGET_CPPFLAGS+= \
33  -I$(STAGING_DIR)/usr/include/SDL \
34  -I$(STAGING_DIR)/usr/include/google/sparsehash \
35  -I$(PKG_BUILD_DIR)/src/tinyxml \
36
37TARGET_LDFLAGS+= \
38    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
39    -L$(STAGING_DIR)/usr/lib/SDL \
40
41define Package/gmenu2x
42  SECTION:=xorg-apps
43  CATEGORY:=Xorg
44  SUBMENU:=app
45  TITLE:=Gmenu2x
46  URL:=http://projects.qi-hardware.com/index.php/p/gmenu2x/
47  DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libstdcpp +libsdl-gfx
48endef
49
50define Build/Configure
51    ( cd $(PKG_BUILD_DIR); ./autogen.sh );
52    $(call Build/Configure/Default)
53endef
54
55define Package/gmenu2x/install
56    $(INSTALL_DIR) \
57        $(1)/usr/bin/ \
58        $(1)/usr/share/gmenu2x/ \
59
60    $(INSTALL_BIN) \
61        $(PKG_INSTALL_DIR)/usr/bin/gmenu2x \
62        $(1)/usr/share/gmenu2x/
63
64    $(INSTALL_BIN) \
65        $(PKG_BUILD_DIR)/gmenu2x.sh \
66        $(1)/usr/bin/gmenu2x
67
68    $(CP) \
69        $(PKG_BUILD_DIR)/pandora/* \
70        $(1)/usr/share/gmenu2x/
71
72    $(CP) \
73        $(PKG_BUILD_DIR)/input.conf.nanonote \
74        $(1)/usr/share/gmenu2x/input.conf
75
76    rm -rf \
77        $(1)/usr/share/gmenu2x/sections/{emulators,games}
78endef
79
80$(eval $(call BuildPackage,gmenu2x))
81

Archive Download this file



interactive