From 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sat, 18 Sep 2010 20:47:21 +0200 Subject: Major overhaul and cleanup. Support for .ubi image file installations. 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. --- dfbsee/Makefile | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 dfbsee/Makefile (limited to 'dfbsee/Makefile') diff --git a/dfbsee/Makefile b/dfbsee/Makefile new file mode 100644 index 0000000..93a4541 --- /dev/null +++ b/dfbsee/Makefile @@ -0,0 +1,76 @@ +# +# Copyright (c) 2010 wejp +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=dfbsee +PKG_VERSION:=0.7.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=DFBSee-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.directfb.org/download/DFBSee/ +PKG_MD5SUM:=3320a976457d3b3e9eaef530fdf56b37 +PKG_BUILD_DIR:=$(BUILD_DIR)/DFBSee-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/dfbsee + SECTION:=multimedia + CATEGORY:=Multimedia + TITLE:=directfb media player + URL:= + MENU:=1 + DEPENDS:=@BROKEN +endef + +define Package/dfbsee/description + A popular music player for various handheld devices. + It supports various file formats and comes with a + file browser and a playlist editor/viewer. +endef + +TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include + +define Build/Compile + -$(MAKE) -C $(PKG_BUILD_DIR) distclean + (cd $(PKG_BUILD_DIR); \ + ./configure \ + ); + $(MAKE) -C $(PKG_BUILD_DIR)/src \ + volume-tables-gen + + $(MAKE) -C $(PKG_BUILD_DIR)/src \ + volume-tables.header + + $(MAKE) -C $(PKG_BUILD_DIR) distclean + + $(call Build/Configure/Default, \ + ); + + $(MAKE) -C $(PKG_BUILD_DIR)/src/gfx \ + $(MAKE_OPTS) \ + gfx.h + + $(MAKE) -C $(PKG_BUILD_DIR)/src \ + dfbsee +endef + +define Package/dfbsee/install + $(INSTALL_DIR) \ + $(1)/usr/share/DFBSee \ + $(1)/usr/bin \ + + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/src/dfbsee \ + $(1)/usr/bin/ + + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/data/decker.ttf \ + $(1)/usr/share/DFBSee/ +endef + +$(eval $(call BuildPackage,dfbsee)) -- cgit v1.2.3