From c48a3f23c8d85dc764ccd1b7e628269b9ea59b6a Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Sat, 17 Jan 2009 00:45:40 +0000 Subject: [PATCH] also move - based on efl - to SVN-Revision: 14066 --- efl/enlightenment/Config.in | 25 ++++++++++ efl/enlightenment/Makefile | 95 +++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 efl/enlightenment/Config.in create mode 100644 efl/enlightenment/Makefile diff --git a/efl/enlightenment/Config.in b/efl/enlightenment/Config.in new file mode 100644 index 0000000..989b572 --- /dev/null +++ b/efl/enlightenment/Config.in @@ -0,0 +1,25 @@ +choice + prompt "default enlightenment profile" + default E17_STANDARD + +config E17_ILLUME + bool + prompt "illume" + +config E17_MINIMALIST + bool + prompt "minimalist" + +config E17_NETBOOK + bool + prompt "netbook" + +config E17_SCALEABLE + bool + prompt "scalable" + +config E17_STANDARD + bool + prompt "standard" + +endchoice diff --git a/efl/enlightenment/Makefile b/efl/enlightenment/Makefile new file mode 100644 index 0000000..78dac20 --- /dev/null +++ b/efl/enlightenment/Makefile @@ -0,0 +1,95 @@ +# +# Copyright (C) 2006-2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=enlightenment +PKG_REV:=38564 +PKG_VERSION:=r$(PKG_REV) +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=svn +PKG_SOURCE_VERSION:=$(PKG_REV) +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://svn.enlightenment.org/svn/e/trunk/e +PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/ + +PKG_FIXUP = libtool + +include $(INCLUDE_DIR)/package.mk + +define Package/enlightenment + SECTION:=xorg-wm + CATEGORY:=Xorg + SUBMENU:=window manager + TITLE:=Enlightenment e17 window manager + URL:=http://enlightenment.org + DEPENDS:=+libintl +libpthread +eet +evas +ecore +edje +efreet +edbus +dbus-utils +dejavu-fonts-ttf +endef + +define Package/enlightenment/config + menu "Configuration" + depends on PACKAGE_enlightenment + source "$(SOURCE)/Config.in" + endmenu +endef + +define Package/enlightenment/description + Enlightenment is a window manager. Enlightenment is a desktop shell. Enlightenment is the building blocks to create beautiful applications. Enlightenment, or simply e, is a group of people trying to make a new generation of software. +endef + +EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include +EXTRA_LDFLAGS+=-lintl -L$(STAGING_DIR)/usr/lib/libintl/lib -Wl,-rpath-link=$(STAGING_DIR)/usr/lib + +define Build/Configure + (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh ); + $(call Build/Configure/Default, --with-edje-cc=$(STAGING_DIR_HOST)/usr/bin/edje_cc --with-eet-eet=$(STAGING_DIR_HOST)/usr/bin/eet) +endef + +define Build/Compile + mkdir -p $(STAGING_DIR_HOST)/usr/bin + # let's see who is workarounding the edje[_cc]/eet-issue most dirrty ^^ + ln -sf `which edje_cc` $(STAGING_DIR_HOST)/usr/bin/ + ln -sf `which eet` $(STAGING_DIR_HOST)/usr/bin/ + DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install + rm -f $(STAGING_DIR_HOST)/usr/bin/{edje_cc,eet} +endef + +define Build/InstallDev + mkdir -p $(1)/usr/include $(1)/usr/lib $(1)/usr/bin $(1)/usr/share + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/ +endef + +define Package/enlightenment/install + $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/share + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/ + echo "#!/bin/sh" > $(1)/usr/bin/WM + echo -n "/usr/bin/enlightenment_start -profile " >> $(1)/usr/bin/WM + $(if $(CONFIG_E17_ILLUME),echo "illume" >> $(1)/usr/bin/WM) + $(if $(CONFIG_E17_MINIMALIST),echo "minimalist" >> $(1)/usr/bin/WM) + $(if $(CONFIG_E17_NETBOOK),echo "netbook" >> $(1)/usr/bin/WM) + $(if $(CONFIG_E17_SCALEABLE),echo "scaleable" >> $(1)/usr/bin/WM) + $(if $(CONFIG_E17_STANDARD),echo "standard" >> $(1)/usr/bin/WM) + chmod +x $(1)/usr/bin/WM + find $(1)/ -name *.la | xargs rm -f + find $(1)/ -name *.a | xargs rm -f +endef + +$(eval $(call BuildPackage,enlightenment)) +$(eval $(call RequireCommand,edje_cc, \ + Command not found - please install edje with edje-cc enabled \ +)) +$(eval $(call RequireCommand,eet, \ + Command not found - please install eet \ +)) -- 2.30.2