OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
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:=20121014 |
12 | PKG_REV:=c302218f008343448234761fd79cba19164fed79 |
13 | PKG_RELEASE:=1 |
14 | PKG_INSTALL:=1 |
15 | |
16 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz |
17 | PKG_SOURCE_URL:=git://projects.qi-hardware.com/gmenu2x.git |
18 | PKG_SOURCE_PROTO:=git |
19 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
20 | PKG_SOURCE_VERSION:=$(PKG_REV) |
21 | |
22 | PKG_BUILD_DEPENDS:=sparsehash |
23 | |
24 | include $(INCLUDE_DIR)/package.mk |
25 | include $(INCLUDE_DIR)/nls.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 \ |
32 | -ffast-math -funroll-loops -Wall -Wno-unknown-pragmas -Wno-format \ |
33 | |
34 | TARGET_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 | |
40 | TARGET_LDFLAGS+= \ |
41 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
42 | -L$(STAGING_DIR)/usr/lib/SDL |
43 | |
44 | define 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 |
51 | endef |
52 | |
53 | define Build/Configure |
54 | ( cd $(PKG_BUILD_DIR); ./autogen.sh ); |
55 | $(call Build/Configure/Default,\ |
56 | --enable-platform=nanonote) |
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/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 |
75 | endef |
76 | |
77 | $(eval $(call BuildPackage,gmenu2x)) |
78 |