diff options
| author | David Kühling <dvdkhlng@gmx.de> | 2010-09-18 20:47:21 +0200 |
|---|---|---|
| committer | David Kühling <dvdkhlng@gmx.de> | 2010-09-18 20:47:21 +0200 |
| commit | 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 (patch) | |
| tree | 58590463ada82a27eca0889312c32450358249a8 /gmenu2x/Makefile | |
| download | qipackages-fork-4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09.tar.gz | |
Major overhaul and cleanup. Support for .ubi image file installations.grafted
Only compile&install a minimum host Gforth for bootstrapping the target
Gforth, removing strange emacs-dependencies that cropped up earlier.
Image file can now be built on the nanonote using 'gforth-update-image'
command. Also, Gforth is now run through a wrapper that calls
'gforth-update-image' automatically, if necessary.
Also first attempts at supporting libcc C-interface libraries pre-compiled on
the host.
Tested to compile on amd64 and i386.
Diffstat (limited to 'gmenu2x/Makefile')
| -rw-r--r-- | gmenu2x/Makefile | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/gmenu2x/Makefile b/gmenu2x/Makefile new file mode 100644 index 0000000..cc63502 --- /dev/null +++ b/gmenu2x/Makefile @@ -0,0 +1,84 @@ +# +# 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:=20100905 +PKG_REV:=0775638dbcbc491d98df3c8932a933d1be2790d6 +PKG_RELEASE:=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_INSTALL:=1 + +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 \ + +# -I$(STAGING_DIR)/usr/lib/libintl/include \ +# -I$(STAGING_DIR)/usr/libiconv/include +# +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) \ + $(PKG_BUILD_DIR)/gmenu2x.sh \ + $(1)/usr/bin/gmenu2x + + $(CP) \ + $(PKG_BUILD_DIR)/pandora/* \ + $(1)/usr/share/gmenu2x/ + + $(CP) \ + ./files/input.conf \ + $(1)/usr/share/gmenu2x/ + + rm -rf \ + $(1)/usr/share/gmenu2x/sections/{emulators,games} +endef + +$(eval $(call BuildPackage,gmenu2x)) |
