source: feeds/efl/ecore/Makefile @ 25329

Last change on this file since 25329 was 25329, checked in by jow, 5 years ago

[efl] use nls.mk

File size: 4.2 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=ecore
12PKG_REV:=40853
13PKG_VERSION:=r$(PKG_REV)
14PKG_RELEASE:=1
15
16PKG_SOURCE_PROTO:=svn
17PKG_SOURCE_VERSION:=$(PKG_REV)
18PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20PKG_SOURCE_URL:=http://svn.enlightenment.org/svn/e/trunk/$(PKG_NAME)
21PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
22
23HOST_BUILD_DEPENDS:=eina/host evas/host fribidi/host
24
25PKG_FIXUP = libtool
26
27include $(INCLUDE_DIR)/host-build.mk
28include $(INCLUDE_DIR)/package.mk
29include $(INCLUDE_DIR)/nls.mk
30
31define Package/ecore
32  SECTION:=xorg-lib
33  CATEGORY:=Xorg
34  SUBMENU:=libraries
35  TITLE:=Ecore is the core event abstraction layer and X abstraction layer
36  URL:=http://wiki.enlightenment.org/index.php/Ecore
37  DEPENDS:=+fribidi +eina +evas +libXtst +libXrandr +libX11 \
38        +libXcursor +libXdpms @!LINUX_2_4 $(ICONV_DEPENDS) $(INTL_DEPENDS)
39endef
40
41define Package/ecore/description
42  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.
43endef
44
45# iconv needed for ecore-txt
46TARGET_LDFLAGS+= \
47        -liconv \
48        -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
49        -Wl,-rpath=/usr/lib \
50
51define Build/Configure
52        ( cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
53        $(call Build/Configure/Default, \
54                --disable-simple-x11 \
55                --disable-doc \
56                --disable-ecore-x-xcb \
57                --disable-atfile-source \
58                --enable-ecore-job \
59                --disable-curl \
60                --disable-gnutls \
61                --disable-openssl \
62                --disable-poll \
63                --enable-inotify \
64                --enable-ecore-evas-software-buffer \
65                --enable-ecore-evas-software-x11 \
66                --enable-ecore-evas-xrender-x11 \
67                --disable-ecore-evas-opengl-x11 \
68                --disable-ecore-evas-software-16-x11 \
69                --disable-ecore-evas-software-xcb \
70                --disable-ecore-evas-xrender-xcb \
71                --disable-ecore-evas-software-gdi \
72                --disable-ecore-evas-software-ddraw \
73                --disable-ecore-evas-direct3d \
74                --disable-ecore-evas-opengl-glew \
75                --disable-ecore-evas-software-16-ddraw \
76                --disable-ecore-evas-quartz \
77                --disable-ecore-evas-software-sdl \
78                --disable-ecore-evas-directfb \
79                --disable-ecore-evas-fb \
80                --disable-ecore-evas-software-16-wince \
81                --enable-ecore-x \
82                --with-iconv-link=-liconv \
83                --with-x \
84                , \
85                ac_cv_header_X11_extensions_Print_h=no \
86                ac_cv_header_X11_extensions_Xinerama_h=no \
87                ac_cv_header_X11_extensions_Xfixes_h=no \
88                ac_cv_header_X11_extensions_Xdamage_h=no \
89                ac_cv_header_X11_extensions_Xcomposite_h=no \
90        )
91endef
92
93define Host/Configure
94        ( cd $(HOST_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
95        $(call Host/Configure/Default, \
96                --disable-simple-x11 \
97                --disable-doc \
98                --disable-ecore-x-xcb \
99                --disable-atfile-source \
100                --enable-ecore-job \
101                --disable-curl \
102                --disable-gnutls \
103                --disable-openssl \
104                --disable-poll \
105                --disable-inotify \
106                --enable-ecore-evas-software-buffer \
107                --disable-ecore-evas-software-x11 \
108                --disable-ecore-evas-xrdisder-x11 \
109                --disable-ecore-evas-opengl-x11 \
110                --disable-ecore-evas-software-16-x11 \
111                --disable-ecore-evas-software-xcb \
112                --disable-ecore-evas-xrender-xcb \
113                --disable-ecore-evas-software-gdi \
114                --disable-ecore-evas-software-ddraw \
115                --disable-ecore-evas-direct3d \
116                --disable-ecore-evas-opengl-glew \
117                --disable-ecore-evas-software-16-ddraw \
118                --disable-ecore-evas-quartz \
119                --disable-ecore-evas-software-sdl \
120                --disable-ecore-evas-directfb \
121                --disable-ecore-evas-fb \
122                --disable-ecore-evas-software-16-wince \
123                --disable-ecore-x \
124                --without-x \
125        )
126endef
127
128define Build/Compile
129        DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
130endef
131
132define Build/InstallDev
133        mkdir -p $(1)/usr/include $(1)/usr/lib
134        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
135        $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
136endef
137
138define Package/ecore/install
139        $(INSTALL_DIR) $(1)/usr/lib
140        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libecore*.so* $(1)/usr/lib/
141endef
142
143$(eval $(call HostBuild))
144$(eval $(call BuildPackage,ecore))
Note: See TracBrowser for help on using the repository browser.