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
|
2010-11-13 23:36:02 +02:00
|
|
|
PKG_VERSION:=20101113
|
2010-11-15 04:33:00 +02:00
|
|
|
PKG_REV:=2c27de385006db2c89b8b5ba46a7d5e59e0cee48
|
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
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
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
|
|
|
|
|
|
|
|
TARGET_CFLAGS+= \
|
|
|
|
-I$(STAGING_DIR)/usr/include/SDL \
|
|
|
|
-I$(STAGING_DIR)/usr/include/google/sparsehash \
|
|
|
|
-I$(PKG_BUILD_DIR)/src/tinyxml \
|
2010-02-22 11:17:19 +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 \
|
|
|
|
|
|
|
|
TARGET_LDFLAGS+= \
|
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/SDL \
|
|
|
|
|
|
|
|
define Package/gmenu2x
|
|
|
|
SECTION:=xorg-apps
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=app
|
|
|
|
TITLE:=Gmenu2x
|
|
|
|
URL:=http://projects.qi-hardware.com/index.php/p/gmenu2x/
|
2010-04-25 14:37:35 +03:00
|
|
|
DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libstdcpp +libsdl-gfx
|
2010-02-17 07:12:16 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
( cd $(PKG_BUILD_DIR); ./autogen.sh );
|
|
|
|
$(call Build/Configure/Default)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gmenu2x/install
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/bin/ \
|
|
|
|
$(1)/usr/share/gmenu2x/ \
|
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/gmenu2x \
|
|
|
|
$(1)/usr/share/gmenu2x/
|
2010-07-22 10:50:41 +03:00
|
|
|
|
2010-03-01 12:36:39 +02:00
|
|
|
$(INSTALL_BIN) \
|
2010-02-17 07:12:16 +02:00
|
|
|
$(PKG_BUILD_DIR)/gmenu2x.sh \
|
|
|
|
$(1)/usr/bin/gmenu2x
|
|
|
|
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_BUILD_DIR)/pandora/* \
|
|
|
|
$(1)/usr/share/gmenu2x/
|
2010-07-22 10:50:41 +03:00
|
|
|
|
|
|
|
$(CP) \
|
|
|
|
./files/input.conf \
|
|
|
|
$(1)/usr/share/gmenu2x/
|
|
|
|
|
2010-05-07 18:32:51 +03:00
|
|
|
rm -rf \
|
|
|
|
$(1)/usr/share/gmenu2x/sections/{emulators,games}
|
2010-02-17 07:12:16 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gmenu2x))
|