Root/gmenu2x/Makefile

Source at commit c609bba created 7 years 1 month ago.
By Xiangfu Liu, gmenu2x update
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:=20110821
12PKG_REV:=46d680990aba8616d0e50bddf0d9fca371432010
13PKG_RELEASE:=1
14PKG_INSTALL:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).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
25include $(INCLUDE_DIR)/nls.mk
26
27TARGET_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
34TARGET_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
40TARGET_LDFLAGS+= \
41    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
42    -L$(STAGING_DIR)/usr/lib/SDL
43
44define 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 +libpng +libsdl-ttf +libstdcpp +libsdl-gfx
51endef
52
53define Build/Configure
54    ( cd $(PKG_BUILD_DIR); ./autogen.sh );
55    $(call Build/Configure/Default,\
56        --enable-platform=nanonote)
57endef
58
59define 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/bin/gmenu2x.bin
67
68    $(CP) \
69        $(PKG_INSTALL_DIR)/usr/share/gmenu2x/* \
70        $(1)/usr/share/gmenu2x/
71
72    mv \
73        $(1)/usr/share/gmenu2x/gmenu2x.sh \
74        $(1)/usr/bin/gmenu2x
75endef
76
77$(eval $(call BuildPackage,gmenu2x))
78

Archive Download this file



interactive