2010-02-17 07:12:16 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gmenu2x
|
2012-04-03 20:03:26 +03:00
|
|
|
PKG_VERSION:=20111111
|
|
|
|
PKG_REV:=1f955e523358796189db503e624788d5337c15a3
|
2010-08-09 15:10:05 +03:00
|
|
|
PKG_RELEASE:=1
|
2010-11-15 04:33:00 +02:00
|
|
|
PKG_INSTALL:=1
|
2010-02-17 07:12:16 +02:00
|
|
|
|
2011-07-11 19:53:28 +03:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
|
2010-02-17 07:12:16 +02:00
|
|
|
PKG_SOURCE_URL:=git://projects.qi-hardware.com/gmenu2x.git
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
|
2010-04-27 18:23:21 +03:00
|
|
|
PKG_BUILD_DEPENDS:=sparsehash
|
|
|
|
|
2010-02-17 07:12:16 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-06 20:57:57 +02:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2010-02-17 07:12:16 +02:00
|
|
|
|
|
|
|
TARGET_CFLAGS+= \
|
|
|
|
-I$(STAGING_DIR)/usr/include/SDL \
|
|
|
|
-I$(STAGING_DIR)/usr/include/google/sparsehash \
|
|
|
|
-I$(PKG_BUILD_DIR)/src/tinyxml \
|
2011-01-28 10:17:04 +02:00
|
|
|
-DTIXML_USE_STL -DTARGET_GP2X -O3 -msoft-float -fomit-frame-pointer \
|
|
|
|
-ffast-math -funroll-loops -Wall -Wno-unknown-pragmas -Wno-format \
|
2010-02-17 07:12:16 +02:00
|
|
|
|
|
|
|
TARGET_CPPFLAGS+= \
|
|
|
|
-I$(STAGING_DIR)/usr/include/SDL \
|
|
|
|
-I$(STAGING_DIR)/usr/include/google/sparsehash \
|
|
|
|
-I$(PKG_BUILD_DIR)/src/tinyxml \
|
2010-11-21 15:58:23 +02:00
|
|
|
-DLOG_LEVEL=0
|
2010-02-17 07:12:16 +02:00
|
|
|
|
|
|
|
TARGET_LDFLAGS+= \
|
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
2011-02-06 20:57:57 +02:00
|
|
|
-L$(STAGING_DIR)/usr/lib/SDL
|
2010-02-17 07:12:16 +02:00
|
|
|
|
|
|
|
define Package/gmenu2x
|
|
|
|
SECTION:=xorg-apps
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=app
|
|
|
|
TITLE:=Gmenu2x
|
|
|
|
URL:=http://projects.qi-hardware.com/index.php/p/gmenu2x/
|
2011-07-11 19:53:28 +03:00
|
|
|
DEPENDS:=+libsdl +libpng +libsdl-ttf +libstdcpp +libsdl-gfx
|
2010-02-17 07:12:16 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
( cd $(PKG_BUILD_DIR); ./autogen.sh );
|
2011-07-11 19:53:28 +03:00
|
|
|
$(call Build/Configure/Default,\
|
|
|
|
--enable-platform=nanonote)
|
2010-02-17 07:12:16 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gmenu2x/install
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/bin/ \
|
|
|
|
$(1)/usr/share/gmenu2x/ \
|
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/gmenu2x \
|
2011-07-11 19:53:28 +03:00
|
|
|
$(1)/usr/bin/gmenu2x.bin
|
2010-07-22 10:50:41 +03:00
|
|
|
|
2010-02-17 07:12:16 +02:00
|
|
|
$(CP) \
|
2011-07-11 19:53:28 +03:00
|
|
|
$(PKG_INSTALL_DIR)/usr/share/gmenu2x/* \
|
2010-02-17 07:12:16 +02:00
|
|
|
$(1)/usr/share/gmenu2x/
|
2010-07-22 10:50:41 +03:00
|
|
|
|
2011-01-28 10:17:04 +02:00
|
|
|
mv \
|
|
|
|
$(1)/usr/share/gmenu2x/gmenu2x.sh \
|
|
|
|
$(1)/usr/bin/gmenu2x
|
2010-02-17 07:12:16 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gmenu2x))
|