9d7e8b5d56d44cf111973deca84530c265dc884b
[openwrt/svn-archive/feeds.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:=+libXext +libfreetype +libX11 +fontconfig +eet +libfreetype +libjpeg +libpng +libXrender +libpthread
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 --with-x \
44 --enable-fontconfig \
45 --disable-image-loader-edb \
46 --enable-image-loader-eet \
47 --enable-font-loader-eet \
48 --enable-image-loader-gif \
49 --enable-image-loader-jpeg \
50 --disable-image-loader-pmaps \
51 --enable-image-loader-png \
52 --disable-image-loader-svg \
53 --disable-image-loader-tiff \
54 --enable-image-loader-xpm \
55 --enable-evas-magic-debug \
56 --enable-convert-8-rgb-332 \
57 --enable-convert-8-rgb-666 \
58 --enable-convert-8-rgb-232 \
59 --enable-convert-8-rgb-222 \
60 --enable-convert-8-rgb-221 \
61 --enable-convert-8-rgb-121 \
62 --enable-convert-8-rgb-111 \
63 --enable-convert-16-rgb-565 \
64 --enable-convert-16-bgr-565 \
65 --enable-convert-16-rgb-555 \
66 --enable-convert-16-rgb-444 \
67 --enable-convert-16-rgb-ipq \
68 --enable-convert-16-rgb-rot-0 \
69 --enable-convert-16-rgb-rot-180 \
70 --enable-convert-16-rgb-rot-270 \
71 --enable-convert-16-rgb-rot-90 \
72 --enable-convert-24-rgb-888 \
73 --enable-convert-24-bgr-888 \
74 --enable-convert-32-rgb-8888 \
75 --enable-convert-32-rgbx-8888 \
76 --enable-convert-32-bgr-8888 \
77 --enable-convert-32-bgrx-8888 \
78 --enable-convert-32-rgb-rot-0 \
79 --enable-convert-32-rgb-rot-180 \
80 --enable-convert-32-rgb-rot-270 \
81 --enable-convert-32-rgb-rot-90 \
82 --disable-doc \
83 --disable-simple-x11 \
84 --enable-buffer \
85 --enable-software-x11 \
86 --enable-xrender-x11 \
87 --disable-gl-x11 \
88 --disable-glitz-x11 \
89 --disable-cairo-x11 \
90 --disable-software-xcb \
91 --disable-xrender-xcb \
92 --disable-software-ddraw \
93 --disable-direct3d \
94 --disable-quartz \
95 --disable-gl-glew \
96 --disable-software-sdl \
97 --disable-fb \
98 --disable-directfb \
99 --disable-software-qtopia \
100 --disable-software-16-x11 \
101 --disable-software-16-ddraw \
102 --disable-software-16-wince \
103 --disable-sdl-primitive \
104 --enable-pthreads \
105 --disable-async-events \
106 --disable-async-preload \
107 --disable-cpu-mmx \
108 --disable-cpu-sse \
109 --disable-cpu-altivec \
110 --enable-cpu-c \
111 --enable-scale-sample \
112 --enable-scale-smooth \
113 --disable-convert-yuv \
114 --disable-small-dither-mask \
115 --disable-line-dither-mask \
116 --disable-no-dither-mask \
117 --disable-valgrind \
118 )
119 endef
120
121 define Build/Compile
122 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
123 endef
124
125 define Build/InstallDev
126 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
127 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
128 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
129 endef
130
131 define Package/evas/install
132 $(INSTALL_DIR) $(1)/usr/lib
133 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevas.so* $(1)/usr/lib/
134 $(CP) $(PKG_INSTALL_DIR)/usr/lib/evas $(1)/usr/lib/
135 $(FIND) $(1)/ -name "*.la" | $(XARGS) rm
136 $(FIND) $(1)/ -name "*.a" | $(XARGS) rm
137 endef
138
139 $(eval $(call BuildPackage,evas))