move <packages/phone> into own feed <feeds/phone> and add entry to <feeds.conf.default>
[openwrt/svn-archive/archive.git] / Xorg / efl / eet / 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:=eet
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/eet
24 SECTION:=xorg-lib
25 CATEGORY:=Xorg
26 SUBMENU:=lib
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
30 endef
31
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.
34 endef
35
36 define Build/Configure
37 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
38 $(call Build/Configure/Default, \
39 )
40 endef
41
42 define Build/Compile
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; \
48 ./configure \
49 --prefix=/usr \
50 --exec-prefix=/usr \
51 --bindir=/usr/bin \
52 --datadir=/usr/share \
53 --includedir=/usr/include \
54 --infodir=/usr/share/info \
55 --libdir=/usr/lib \
56 --libexecdir=/usr/lib \
57 --localstatedir=/var \
58 --mandir=/usr/share/man \
59 --sbindir=/usr/sbin \
60 --sysconfdir=/etc \
61 );
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
64 endef
65
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/
73 endef
74
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/
81 endef
82
83 $(eval $(call BuildPackage,eet))