upgraded enlightenment, efl libraries and its python bindings to svn rev. 38886
[openwrt/svn-archive/archive.git] / efl / evas / 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:=evas
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 include $(INCLUDE_DIR)/package.mk
26
27 define Package/evas
28 SECTION:=xorg-lib
29 CATEGORY:=Xorg
30 SUBMENU:=libraries
31 TITLE:=Evas is a hardware-accelerated canvas API for X-Windows
32 URL:=http://wiki.enlightenment.org/index.php/Evas
33 DEPENDS:=+eet +libfreetype +libjpeg +libpng +libX11 +libXext +libXrender +fontconfig
34 endef
35
36 define Package/evas/description
37 Evas is a hardware-accelerated canvas API for X-Windows that can draw anti-aliased text, smooth super and sub-sampled images, alpha-blend, as well as drop down to using normal X11 primitives such as pixmaps, lines and rectangles for speed if your CPU or graphics hardware are too slow.
38 endef
39
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
42 $(call Build/Configure/Default, \
43 --disable-pthreads \
44 --enable-fb \
45 --disable-directfb \
46 --disable-sdl \
47 --enable-buffer \
48 --disable-software-ddraw \
49 --disable-software-qtopia \
50 --enable-simple-x11 \
51 --enable-software-x11 \
52 --enable-software-16-x11 \
53 --disable-software-xcb \
54 --disable-gl-x11 \
55 --enable-xrender-x11 \
56 --disable-xrender-xcb \
57 --disable-glitz-x11 \
58 --enable-image-loader-eet \
59 --disable-image-loader-edb \
60 --disable-image-loader-gif \
61 --enable-image-loader-png \
62 --enable-image-loader-jpeg \
63 --enable-image-loader-tiff \
64 --enable-image-loader-xpm \
65 --enable-image-loader-svg \
66 --enable-cpu-c \
67 --enable-fontconfig \
68 --enable-font-loader-eet \
69 --enable-scale-sample \
70 --enable-scale-smooth \
71 --enable-convert-yuv \
72 --enable-small-dither-mask \
73 --enable-no-dither-mask \
74 --enable-convert-8-rgb-332 \
75 --enable-convert-8-rgb-666 \
76 --enable-convert-8-rgb-232 \
77 --enable-convert-8-rgb-222 \
78 --enable-convert-8-rgb-221 \
79 --enable-convert-8-rgb-121 \
80 --enable-convert-8-rgb-111 \
81 --enable-convert-16-rgb-565 \
82 --enable-convert-16-rgb-555 \
83 --enable-convert-16-rgb-444 \
84 --enable-convert-16-rgb-ipq \
85 --enable-convert-16-rgb-rot-0 \
86 --enable-convert-16-rgb-rot-90 \
87 --enable-convert-16-rgb-rot-180\
88 --enable-convert-16-rgb-rot-270 \
89 --enable-convert-24-rgb-888 \
90 --enable-convert-24-bgr-888 \
91 --enable-convert-32-rgb-8888 \
92 --enable-convert-32-rgbx-8888 \
93 --enable-convert-32-bgr-8888 \
94 --enable-convert-32-bgrx-8888 \
95 --enable-convert-32-rgb-rot-0 \
96 --enable-convert-32-rgb-rot-90 \
97 --enable-convert-32-rgb-rot-180 \
98 --enable-convert-32-rgb-rot-270 \
99 )
100 endef
101
102 define Build/Compile
103 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
104 endef
105
106 define Build/InstallDev
107 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
108 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
109 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
110 endef
111
112 define Package/evas/install
113 $(INSTALL_DIR) $(1)/usr/lib
114 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevas.so* $(1)/usr/lib/
115 $(CP) $(PKG_INSTALL_DIR)/usr/lib/evas $(1)/usr/lib/
116 find $(1)/usr/lib/evas -name *.la | xargs rm -rf
117 find $(1)/usr/lib/evas -name *.a | xargs rm -rf
118 endef
119
120 $(eval $(call BuildPackage,evas))