# # Copyright (C) 2006 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # # $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $ include $(TOPDIR)/rules.mk PKG_NAME:=ecore PKG_VERSION:= PKG_RELEASE:=1 PKG_SOURCE:=e17.libs.$(PKG_NAME)_anoncvs.enlightenment.org__20080825.tar.gz PKG_SOURCE_URL:=http://downloads.openmoko.org/sources/ PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}/ PKG_FIXUP = libtool include $(INCLUDE_DIR)/package.mk define Package/ecore SECTION:=xorg-lib CATEGORY:=Xorg SUBMENU:=lib TITLE:=Ecore is the core event abstraction layer and X abstraction layer URL:=http://wiki.enlightenment.org/index.php/Ecore DEPENDS:=+eet +evas +libXcursor +libXrandr +libXtst +libiconv endef define Package/ecore/description Ecore is the core event abstraction layer and X abstraction layer that makes doing selections, Xdnd, general X stuff, and event loops, timeouts and idle handlers fast, optimized, and convenient. It's a separate library so anyone can make use of the work put into Ecore to make this job easy for applications. endef EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include EXTRA_LDFLAGS+=-liconv -L$(STAGING_DIR)/usr/lib/libiconv/lib define Build/Configure (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh ); $(call Build/Configure/Default, \ --with-iconv-link \ --enable-ecore-txt \ --disable-ecore-config \ --disable-ecore-x-xcb \ --enable-ecore-x \ --enable-ecore-job \ --disable-ecore-directfb \ --disable-ecore-sdl \ --enable-ecore-fb \ --enable-ecore-evas \ --enable-ecore-evas-fb \ --disable-ecore-evas-x11-gl \ --disable-ecore-evas-xrender \ --disable-ecore-evas-dfb \ --disable-ecore-evas-sdl \ --disable-openssl \ --enable-abstract-sockets \ --enable-ecore-con \ --enable-ecore-ipc \ --enable-ecore-file \ --enable-inotify \ --disable-poll \ --disable-curl \ --disable-ecore-desktop \ --disable-ecore-imf \ --disable-ecore-imf_evas \ ) endef define Build/Compile mkdir -p $(PKG_INSTALL_DIR)/host $(PKG_INSTALL_DIR)/target $(MAKE) -C $(PKG_BUILD_DIR) all DESTDIR="$(PKG_INSTALL_DIR)/target" $(MAKE) -C $(PKG_BUILD_DIR) all install $(MAKE) -C $(PKG_BUILD_DIR) clean $(MAKE) -C $(PKG_BUILD_DIR) all CC="$(HOSTCC)" CFLAGS="" LDFLAGS="-I$(STAGING_DIR_HOST)/usr/lib/" DESTDIR="$(PKG_INSTALL_DIR)/host" $(MAKE) -C $(PKG_BUILD_DIR) all install endef define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(STAGING_DIR_HOST)/usr/include $(STAGING_DIR_HOST)/usr/lib $(CP) $(PKG_INSTALL_DIR)/target/usr/include/* $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/target/usr/lib/* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/host/usr/include/* $(STAGING_DIR_HOST)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/host/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/ endef define Package/ecore/install $(INSTALL_DIR) $(1)/usr/lib $(STAGING_DIR_HOST)/usr/lib $(CP) $(PKG_INSTALL_DIR)/taget/usr/lib/* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/host/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/ endef $(eval $(call BuildPackage,ecore))