upgrade efl-stuff, cleanup Makefiles, add elementary and its python-bindings, fix...
[openwrt/svn-archive/feeds.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:=40853
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_BUILD_DEPENDS:=edje/host eet/host
24
25 PKG_FIXUP = libtool
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/enlightenment
30 SECTION:=xorg-wm
31 CATEGORY:=Xorg
32 SUBMENU:=window manager
33 TITLE:=Enlightenment e17 window manager
34 URL:=http://enlightenment.org
35 DEPENDS:=+libintl +eet +evas +ecore +edje +efreet +dbus +edbus +dejavu-fonts-ttf +freedesktop-compliant
36 endef
37
38 define Package/enlightenment/config
39 menu "Configuration"
40 depends on PACKAGE_enlightenment
41 source "$(SOURCE)/Config.in"
42 endmenu
43 endef
44
45 define Package/enlightenment/description
46 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.
47 endef
48
49 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include
50 TARGET_LDFLAGS+=-lintl -L$(STAGING_DIR)/usr/lib/libintl/lib
51
52 define Build/Configure
53 ( cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
54 $(call Build/Configure/Default, \
55 --disable-pam \
56 --disable-simple-x11 \
57 --disable-nls \
58 --disable-rpath \
59 --enable-files \
60 --enable-ibar \
61 --disable-dropshadow \
62 --enable-clock \
63 --enable-pager \
64 --enable-battery \
65 --enable-temperature \
66 --disable-cpufreq \
67 --enable-ibox \
68 --enable-start \
69 --enable-exebuf \
70 --enable-winlist \
71 --enable-fileman \
72 --enable-fileman-opinfo \
73 --disable-wizard \
74 --disable-msgbus-lang \
75 --enable-gadman \
76 --enable-mixer \
77 --disable-connman \
78 --enable-illume \
79 --enable-syscon \
80 --with-x \
81 --with-edje-cc=$(STAGING_DIR_HOST)/bin/edje_cc \
82 --with-eet-eet=$(STAGING_DIR_HOST)/bin/eet \
83 )
84 endef
85
86 PROFILES:=\
87 illume \
88 minimalist \
89 netbook \
90 scalable \
91 standard \
92
93 define Build/Compile
94 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
95 $(foreach c, $(PROFILES), \
96 ! [ -f ./files/config/$(c).cfg.src ] || $(STAGING_DIR_HOST)/bin/eet -e $(PKG_INSTALL_DIR)/usr/share/enlightenment/data/config/$(c)/e.cfg config ./files/config/$(c).cfg.src 1
97 )
98 endef
99
100 define Build/InstallDev
101 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/share
102 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
103 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
104 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
105 endef
106
107 define Package/enlightenment/install
108 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/share $(1)/etc/uci-defaults
109 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
110 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
111 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
112 $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
113 $(foreach c, $(PROFILES), \
114 $(if $(CONFIG_E17_$(c)), \
115 $(INSTALL_DATA) ./files/uci-defaults/x11_$(c) $(1)/etc/uci-defaults/
116 )
117 )
118 $(FIND) $(1)/ -name "*.la" | $(XARGS) rm
119 $(FIND) $(1)/ -name "*.a" | $(XARGS) rm
120 endef
121
122 define Package/enlightenment/postinst
123 #!/bin/sh
124 [ -n "$${IPKG_INSTROOT}" ] && exit
125 . /etc/functions.sh
126 uci_apply_defaults
127 endef
128
129 $(eval $(call BuildPackage,enlightenment))