99fb4e3f7b14f2f43360cc1c56b8a9d3e0ef6227
[openwrt/svn-archive/feeds.git] / efl / embryo / 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:=embryo
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/$(PKG_NAME)
21 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
22
23 PKG_FIXUP = libtool
24
25 include $(INCLUDE_DIR)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/embryo
29 SECTION:=xorg-lib
30 CATEGORY:=Xorg
31 SUBMENU:=libraries
32 TITLE:=Embryo implements a C like scripting language used in various parts of the Enlightenment project (edje)
33 URL:=http://wiki.enlightenment.org/index.php/Embryo
34 endef
35
36 define Package/embryo/description
37 Embryo implements a C like scripting language used in various parts of the Enlightenment project, namely Edje. Embryo's scripting language is based on CompuPhase's Small language that was introduced in Dr Dobb's Journal in 1999. Embryo allows scripting capabilities in places that otherwise wouldn't support basic programming structures such as in Edje EDCs.
38 endef
39
40 define Build/Configure
41 ( cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
42 $(call Build/Configure/Default, \
43 --disable-doc \
44 )
45 endef
46
47 define Host/Configure
48 ( cd $(HOST_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
49 $(call Host/Configure/Default, \
50 --disable-doc \
51 )
52 endef
53
54 define Build/Compile
55 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
56 endef
57
58 define Build/InstallDev
59 mkdir -p $(1)/usr/include $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
62 endef
63
64 define Package/embryo/install
65 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libembryo.so* $(1)/usr/lib/
67 $(CP) $(PKG_INSTALL_DIR)/usr/bin/embryo_cc $(1)/usr/bin/
68 endef
69
70 $(eval $(call HostBuild))
71 $(eval $(call BuildPackage,embryo))