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