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:=20101122
12PKG_REV:=6773ad7d3a82c349a9edc9881e7c7330b09a931c
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  -DLOG_LEVEL=0
37
38TARGET_LDFLAGS+= \
39    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
40    -L$(STAGING_DIR)/usr/lib/SDL \
41
42define 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
49endef
50
51define Build/Configure
52    ( cd $(PKG_BUILD_DIR); ./autogen.sh );
53    $(call Build/Configure/Default)
54endef
55
56define 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/
83endef
84
85$(eval $(call BuildPackage,gmenu2x))
86

Archive Download this file



interactive