source: packages/Xorg/app/enlightenment/Makefile @ 13437

Last change on this file since 13437 was 13437, checked in by mirko, 8 years ago

e17 update (svn r37637 -> svn r37860)

File size: 3.3 KB
Line 
1#
2# Copyright (C) 2006-2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=enlightenment
12PKG_REV:=37860
13PKG_VERSION:=r$(PKG_REV)
14PKG_RELEASE:=1
15
16PKG_SOURCE_PROTO:=svn
17PKG_SOURCE_VERSION:=$(PKG_REV)
18PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20PKG_SOURCE_URL:=http://svn.enlightenment.org/svn/e/trunk/e
21PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
22
23PKG_FIXUP = libtool
24
25include $(INCLUDE_DIR)/package.mk
26
27define Package/enlightenment
28  SECTION:=xorg-wm
29  CATEGORY:=Xorg
30  TITLE:=Enlightenment e17 window manager
31  URL:=http://enlightenment.org
32  DEPENDS:=+libintl +libpthread +eet +evas +ecore +edje +efreet +edbus +dbus-utils +dejavu-fonts-ttf
33endef
34
35define Package/enlightenment/config
36        menu "Configuration"
37        depends on PACKAGE_enlightenment
38        source "$(SOURCE)/Config.in"
39        endmenu
40endef
41
42define Package/enlightenment/description
43   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.
44endef
45
46EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include
47EXTRA_LDFLAGS+=-lintl -L$(STAGING_DIR)/usr/lib/libintl/lib -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
48
49define Build/Configure
50        (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
51        $(call Build/Configure/Default, --with-edje-cc=$(STAGING_DIR_HOST)/usr/bin/edje_cc  --with-eet-eet=$(STAGING_DIR_HOST)/usr/bin/eet)
52endef
53
54define Build/Compile
55        mkdir -p $(STAGING_DIR_HOST)/usr/bin
56        # let's see who is workarounding the edje[_cc]/eet-issue most dirrty ^^
57        ln -sf `which edje_cc` $(STAGING_DIR_HOST)/usr/bin/
58        ln -sf `which eet` $(STAGING_DIR_HOST)/usr/bin/
59        DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
60        rm -f $(STAGING_DIR_HOST)/usr/bin/{edje_cc,eet}
61endef
62
63define Build/InstallDev
64        mkdir -p $(1)/usr/include $(1)/usr/lib $(1)/usr/bin $(1)/usr/share
65        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
66        $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
67        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
68        $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
69endef
70
71define Package/enlightenment/install
72        $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/share
73        $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
74        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
75        $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
76        echo "#!/bin/sh" > $(1)/usr/bin/WM
77        echo -n "test -d ~/.e || /usr/bin/enlightenment_start -profile " >> $(1)/usr/bin/WM
78        $(if $(CONFIG_E17_ILLUME),echo "illume" >> $(1)/usr/bin/WM)
79        $(if $(CONFIG_E17_MINIMALIST),echo "minimalist" >> $(1)/usr/bin/WM)
80        $(if $(CONFIG_E17_NETBOOK),echo "netbook" >> $(1)/usr/bin/WM)
81        $(if $(CONFIG_E17_SCALEABLE),echo "scaleable" >> $(1)/usr/bin/WM)
82        $(if $(CONFIG_E17_STANDARD),echo "standard" >> $(1)/usr/bin/WM)
83        chmod +x $(1)/usr/bin/WM
84        find $(1)/ -name *.la | xargs rm -f
85        find $(1)/ -name *.a | xargs rm -f
86endef
87
88$(eval $(call BuildPackage,enlightenment))
89$(eval $(call RequireCommand,edje_cc, \
90        Command <edje_cc> not found - please install edje with edje-cc enabled \
91))
92$(eval $(call RequireCommand,eet, \
93        Command <eet> not found - please install eet \
94))
Note: See TracBrowser for help on using the repository browser.