upgraded enlightenment, efl libraries and its python bindings to svn rev. 38886
[openwrt/svn-archive/archive.git] / efl / enlightenment / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=enlightenment
12 PKG_REV:=38886
13 PKG_VERSION:=r$(PKG_REV)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE_PROTO:=svn
17 PKG_SOURCE_VERSION:=$(PKG_REV)
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_SOURCE_URL:=http://svn.enlightenment.org/svn/e/trunk/e
21 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
22
23 PKG_FIXUP = libtool
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/enlightenment
28 SECTION:=xorg-wm
29 CATEGORY:=Xorg
30 SUBMENU:=window manager
31 TITLE:=Enlightenment e17 window manager
32 URL:=http://enlightenment.org
33 DEPENDS:=+libintl +libpthread +eet +evas +ecore +edje +efreet +edbus +dbus-utils +dejavu-fonts-ttf +freedesktop-compliant
34 endef
35
36 define Package/enlightenment/config
37 menu "Configuration"
38 depends on PACKAGE_enlightenment
39 source "$(SOURCE)/Config.in"
40 endmenu
41 endef
42
43 define Package/enlightenment/description
44 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.
45 endef
46
47 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include
48 EXTRA_LDFLAGS+=-lintl -L$(STAGING_DIR)/usr/lib/libintl/lib -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
49
50 define Build/Configure
51 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
52 $(call Build/Configure/Default, --with-edje-cc=$(STAGING_DIR_HOST)/usr/bin/edje_cc --with-eet-eet=$(STAGING_DIR_HOST)/usr/bin/eet)
53 endef
54
55 define Build/Compile
56 mkdir -p $(STAGING_DIR_HOST)/usr/bin
57 # let's see who is workarounding the edje[_cc]/eet-issue most dirrty ^^
58 ln -sf `which edje_cc` $(STAGING_DIR_HOST)/usr/bin/
59 ln -sf `which eet` $(STAGING_DIR_HOST)/usr/bin/
60 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
61 rm -f $(STAGING_DIR_HOST)/usr/bin/{edje_cc,eet}
62 endef
63
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/bin $(1)/usr/share
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
68 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
69 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
70 endef
71
72 define Package/enlightenment/install
73 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/share $(1)/etc/uci-defaults
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
75 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
76 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
77 $(INSTALL_DATA) ./files/uci-defaults/x11 $(1)/etc/uci-defaults/
78 $(if $(CONFIG_E17_ILLUME),echo -n "illume" >> $(1)/etc/uci-defaults/x11)
79 $(if $(CONFIG_E17_MINIMALIST),echo -n "minimalist" >> $(1)/etc/uci-defaults/x11)
80 $(if $(CONFIG_E17_NETBOOK),echo -n "netbook" >> $(1)/etc/uci-defaults/x11)
81 $(if $(CONFIG_E17_SCALEABLE),echo -n "scaleable" >> $(1)/etc/uci-defaults/x11)
82 $(if $(CONFIG_E17_STANDARD),echo -n "standard" >> $(1)/etc/uci-defaults/x11)
83 echo "'" >> $(1)/etc/uci-defaults/x11
84 find $(1)/ -name *.la | xargs rm -f
85 find $(1)/ -name *.a | xargs rm -f
86 endef
87
88 define Package/enlightenment/postinst
89 #!/bin/sh
90 [ -n "$${IPKG_INSTROOT}" ] && exit
91 . /etc/functions.sh
92 uci_apply_defaults
93 endef
94
95 $(eval $(call BuildPackage,enlightenment))
96 $(eval $(call RequireCommand,edje_cc, \
97 Command <edje_cc> not found - please install edje with edje-cc enabled \
98 ))
99 $(eval $(call RequireCommand,eet, \
100 Command <eet> not found - please install eet \
101 ))