1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-23 03:01:54 +02:00
openwrt-packages/gmenu2x/Makefile

78 lines
1.8 KiB
Makefile
Raw Normal View History

#
# 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
2011-08-23 07:14:56 +03:00
PKG_VERSION:=20110823
PKG_REV:=93c58bfc47afc9bc8c0569a7566cdb53edb12a7b
2010-08-09 15:10:05 +03:00
PKG_RELEASE:=1
PKG_INSTALL:=1
2011-07-11 19:53:28 +03:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).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)
PKG_BUILD_DEPENDS:=sparsehash
include $(INCLUDE_DIR)/package.mk
2011-02-06 20:57:57 +02:00
include $(INCLUDE_DIR)/nls.mk
TARGET_CFLAGS+= \
-I$(STAGING_DIR)/usr/include/SDL \
-I$(STAGING_DIR)/usr/include/google/sparsehash \
-I$(PKG_BUILD_DIR)/src/tinyxml \
-DTIXML_USE_STL -DTARGET_GP2X -O3 -msoft-float -fomit-frame-pointer \
-ffast-math -funroll-loops -Wall -Wno-unknown-pragmas -Wno-format \
TARGET_CPPFLAGS+= \
-I$(STAGING_DIR)/usr/include/SDL \
-I$(STAGING_DIR)/usr/include/google/sparsehash \
-I$(PKG_BUILD_DIR)/src/tinyxml \
-DLOG_LEVEL=0
TARGET_LDFLAGS+= \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
2011-02-06 20:57:57 +02:00
-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/
2011-07-11 19:53:28 +03:00
DEPENDS:=+libsdl +libpng +libsdl-ttf +libstdcpp +libsdl-gfx
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)
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
$(CP) \
2011-07-11 19:53:28 +03:00
$(PKG_INSTALL_DIR)/usr/share/gmenu2x/* \
$(1)/usr/share/gmenu2x/
mv \
$(1)/usr/share/gmenu2x/gmenu2x.sh \
$(1)/usr/bin/gmenu2x
endef
$(eval $(call BuildPackage,gmenu2x))