move efl-libs to own directory
[openwrt/svn-archive/archive.git] / Xorg / efl / edje / Makefile.native
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:=edje
12 PKG_VERSION:=
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=e17.libs.$(PKG_NAME)_anoncvs.enlightenment.org__20080825.tar.gz
16 PKG_SOURCE_URL:=http://downloads.openmoko.org/sources/
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}/
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/edje
24 SECTION:=xorg-lib
25 CATEGORY:=Xorg
26 SUBMENU:=lib
27 TITLE:=Edje is a graphical design and layout library
28 URL:=http://wiki.enlightenment.org/index.php/Edje
29 DEPENDS:=+libjpeg +zlib +eet +evas +ecore +embryo
30 endef
31
32 define Package/edje/description
33 Edje is a graphical design and layout library based on Evas that provides an abstraction layer between the application code and the interface, while allowing extremely flexible dynamic layouts and animations.
34 endef
35
36 EXTRA_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
37
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
40 $(call Build/Configure/Default \
41 --disable-edje-cc \
42 )
43 endef
44
45 #edge provides an own compiler (edge_cc) which needs be compiled for the host-system
46 #define Build/Compile
47 # mkdir -p $(PKG_INSTALL_DIR)/host $(PKG_INSTALL_DIR)/target
48 # $(MAKE) -C $(PKG_BUILD_DIR) all
49 # DESTDIR="$(PKG_INSTALL_DIR)/target" $(MAKE) -C $(PKG_BUILD_DIR) all install
50 # $(MAKE) -C $(PKG_BUILD_DIR) clean
51 # (cd $(PKG_BUILD_DIR); rm -f config.cache; \
52 # ./configure \
53 # --prefix=/usr \
54 # --exec-prefix=/usr \
55 # --bindir=/usr/bin \
56 # --datadir=/usr/share \
57 # --includedir=/usr/include \
58 # --infodir=/usr/share/info \
59 # --libdir=/usr/lib \
60 # --libexecdir=/usr/lib \
61 # --localstatedir=/var \
62 # --mandir=/usr/share/man \
63 # --sbindir=/usr/sbin \
64 # --sysconfdir=/etc \
65 # LDFLAGS="-L$(STAGING_DIR_HOST)/usr/lib" \
66 # CFLAGS="-I$(STAGING_DIR_HOST)/usr/include" \
67 # EDGE_LDFLAGS=-L$(STAGING_DIR_HOST)/usr/lib \
68 EDGE_CFLAGS=-I$(STAGING_DIR_HOST)/usr/include \
69 # );
70 # $(MAKE) -C $(PKG_BUILD_DIR) all CC="$(HOSTCC)" LDFLAGS="-L$(STAGING_DIR_HOST)/usr/lib" "CFLAGS=-I$(STAGING_DIR_HOST)/usr/include"
71 # DESTDIR="$(PKG_INSTALL_DIR)/host" $(MAKE) -C $(PKG_BUILD_DIR) all install
72 #endef
73
74 #define Build/InstallDev
75 # $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/bin $(STAGING_DIR_HOST)/usr/include $(STAGING_DIR_HOST)/usr/lib $(STAGING_DIR_HOST)/usr/bin
76 # $(CP) $(PKG_INSTALL_DIR)/target/usr/include/* $(1)/usr/include/
77 # $(CP) $(PKG_INSTALL_DIR)/target/usr/lib/* $(1)/usr/lib/
78 # $(CP) $(PKG_INSTALL_DIR)/target/usr/bin/edje_cc $(1)/usr/bin/
79 # $(CP) $(PKG_INSTALL_DIR)/host/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/
80 # $(CP) $(PKG_INSTALL_DIR)/host/usr/bin/edje_cc $(STAGING_DIR_HOST)/usr/bin/
81 #endef
82
83 #define Package/edje/install
84 # $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(STAGING_DIR_HOST)/usr/lib $(STAGING_DIR_HOST)/usr/bin
85 # $(CP) $(PKG_INSTALL_DIR)/target/usr/lib/*.so* $(1)/usr/lib/
86 # $(CP) $(PKG_INSTALL_DIR)/target/usr/bin/edje_cc $(1)/usr/bin/
87 # $(CP) $(PKG_INSTALL_DIR)/host/usr/lib/*.so* $(STAGING_DIR_HOST)/usr/lib/
88 # $(CP) $(PKG_INSTALL_DIR)/host/usr/bin/edje_cc $(STAGING_DIR_HOST)/usr/bin/
89 #endef
90
91 $(eval $(call BuildPackage,edje))