0b1d22d41de5e2eab9d938c8b3007c9d16f1d15e
[openwrt/svn-archive/feeds.git] / efl / eet / 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:=eet
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 HOST_BUILD_DEPENDS:=libjpeg/host eina/host
26
27 include $(INCLUDE_DIR)/host-build.mk
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/eet
31 SECTION:=xorg-lib
32 CATEGORY:=Xorg
33 SUBMENU:=libraries
34 TITLE:=EET is a tiny library designed to write an arbitary set of chunks of data to a file
35 URL:=http://wiki.enlightenment.org/index.php/Eet
36 DEPENDS:=+libjpeg +zlib +eina
37 endef
38
39 define Package/eet/description
40 EET is a tiny library designed to write an arbitary set of chunks of data to a file and optionally compress each chunk (very much like a zip file) and allow fast random-access reading of the file later on. EET files are perfect for storing data that is written once (or rarely) and read many times, especially when the program does not want to have to read all the data in at once.
41 endef
42
43 define Build/Configure
44 ( cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
45 $(call Build/Configure/Default, \
46 --disable-old-eet-file-format \
47 --disable-gnutls \
48 --disable-openssl \
49 --disable-cipher \
50 --disable-signature \
51 --disable-doc \
52 --disable-assert \
53 --disable-tests \
54 --disable-coverage \
55 )
56 endef
57
58 define Host/Configure
59 ( cd $(HOST_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
60 $(call Host/Configure/Default, \
61 --disable-old-eet-file-format \
62 --disable-gnutls \
63 --disable-openssl \
64 --disable-cipher \
65 --disable-signature \
66 --disable-doc \
67 --disable-assert \
68 --disable-tests \
69 --disable-coverage \
70 )
71 endef
72
73 define Build/Compile
74 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
75 endef
76
77 define Build/InstallDev
78 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/bin
79 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
81 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
82 endef
83
84 define Package/eet/install
85 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin
86 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
87 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
88 endef
89
90 $(eval $(call HostBuild))
91 $(eval $(call BuildPackage,eet))