2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $
9 include $(TOPDIR)/rules.mk
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}/
21 include $(INCLUDE_DIR)/package.mk
27 TITLE:=EET is a tiny library designed to write an arbitary set of chunks of data to a file
28 URL:=http://wiki.enlightenment.org/index.php/Eet
29 DEPENDS:=+libjpeg +zlib
32 define Package/eet/description
33 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.
36 define Build/Configure
37 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
38 $(call Build/Configure/Default, \
43 mkdir -p $(PKG_INSTALL_DIR)/host $(PKG_INSTALL_DIR)/target
44 $(MAKE) -C $(PKG_BUILD_DIR) all
45 DESTDIR="$(PKG_INSTALL_DIR)/target" $(MAKE) -C $(PKG_BUILD_DIR) all install
46 $(MAKE) -C $(PKG_BUILD_DIR) clean
47 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
52 --datadir=/usr/share \
53 --includedir=/usr/include \
54 --infodir=/usr/share/info \
56 --libexecdir=/usr/lib \
57 --localstatedir=/var \
58 --mandir=/usr/share/man \
62 $(MAKE) -C $(PKG_BUILD_DIR) all CC="$(HOSTCC)" CFLAGS="" LDFLAGS="-I$(STAGING_DIR_HOST)/usr/lib/"
63 DESTDIR="$(PKG_INSTALL_DIR)/host" $(MAKE) -C $(PKG_BUILD_DIR) all install
66 define Build/InstallDev
67 $(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
68 $(CP) $(PKG_INSTALL_DIR)/target/usr/include/* $(1)/usr/include/
69 $(CP) $(PKG_INSTALL_DIR)/target/usr/lib/* $(1)/usr/lib/
70 $(CP) $(PKG_INSTALL_DIR)/target/usr/bin/* $(1)/usr/bin/
71 $(CP) $(PKG_INSTALL_DIR)/host/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/
72 $(CP) $(PKG_INSTALL_DIR)/host/usr/bin/* $(STAGING_DIR_HOST)/usr/bin/
75 define Package/eet/install
76 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(STAGING_DIR_HOST)/usr/lib $(STAGING_DIR_HOST)/usr/bin
77 $(CP) $(PKG_INSTALL_DIR)/target/usr/lib/*.so* $(1)/usr/lib/
78 $(CP) $(PKG_INSTALL_DIR)/target/usr/bin/* $(1)/usr/bin/
79 $(CP) $(PKG_INSTALL_DIR)/host/usr/lib/*.so* $(STAGING_DIR_HOST)/usr/lib/
80 $(CP) $(PKG_INSTALL_DIR)/host/usr/bin/* $(STAGING_DIR_HOST)/usr/bin/
83 $(eval $(call BuildPackage,eet))