From 9aaeb4623d3ff5746e665bc17914eefd292b7dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sun, 2 Jan 2011 15:19:00 +0100 Subject: New OpenWrt package for GNU Octave. Experimental/probably still broken. Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days. --- gmenu2x/Makefile | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 gmenu2x/Makefile (limited to 'gmenu2x/Makefile') diff --git a/gmenu2x/Makefile b/gmenu2x/Makefile new file mode 100644 index 0000000..cebbf48 --- /dev/null +++ b/gmenu2x/Makefile @@ -0,0 +1,85 @@ +# +# 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 +PKG_VERSION:=20101122 +PKG_REV:=6773ad7d3a82c349a9edc9881e7c7330b09a931c +PKG_RELEASE:=1 +PKG_INSTALL:=1 + +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) + +PKG_BUILD_DEPENDS:=sparsehash + +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 \ + -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 \ + -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/ + DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libstdcpp +libsdl-gfx +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/ + + $(INSTALL_BIN) \ + ./files/nanonote/bin/gmenu2x \ + $(1)/usr/bin/gmenu2x + + $(CP) \ + $(PKG_BUILD_DIR)/pandora/* \ + $(1)/usr/share/gmenu2x/ + + $(CP) \ + $(PKG_BUILD_DIR)/input.conf.nanonote \ + $(1)/usr/share/gmenu2x/input.conf + + rm -rf \ + $(1)/usr/share/gmenu2x/sections/{emulators,games} + + $(CP) \ + ./files/nanonote/gmenu2x/* \ + $(1)/usr/share/gmenu2x/ +endef + +$(eval $(call BuildPackage,gmenu2x)) -- cgit v1.2.3