d515989a39258df255476c6538883144f1b0d861
[openwrt/svn-archive/archive.git] / Xorg / lib / evas / Makefile
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:=evas
12 PKG_VERSION:=r37637
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=svn
16 PKG_SOURCE_VERSION:=$(PKG_VERSION)
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_SOURCE_URL:=https://svn.enlightenment.org/svn/e/trunk/$(PKG_NAME)
20 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
21
22 PKG_FIXUP = libtool
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/evas
27 SECTION:=xorg-lib
28 CATEGORY:=Xorg
29 SUBMENU:=lib
30 TITLE:=Evas is a hardware-accelerated canvas API for X-Windows
31 URL:=http://wiki.enlightenment.org/index.php/Evas
32 DEPENDS:=+eet +libfreetype +libjpeg +libpng +libX11 +libXext +libXrender +fontconfig
33 endef
34
35 define Package/evas/description
36 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.
37 endef
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
41 $(call Build/Configure/Default, \
42 --disable-pthreads \
43 --enable-fb \
44 --disable-directfb \
45 --disable-sdl \
46 --enable-buffer \
47 --disable-software-ddraw \
48 --disable-software-qtopia \
49 --enable-simple-x11 \
50 --enable-software-x11 \
51 --enable-software-16-x11 \
52 --disable-software-xcb \
53 --disable-gl-x11 \
54 --enable-xrender-x11 \
55 --disable-xrender-xcb \
56 --disable-glitz-x11 \
57 --enable-image-loader-eet \
58 --disable-image-loader-edb \
59 --disable-image-loader-gif \
60 --enable-image-loader-png \
61 --enable-image-loader-jpeg \
62 --enable-image-loader-tiff \
63 --enable-image-loader-xpm \
64 --enable-image-loader-svg \
65 --enable-cpu-c \
66 --enable-fontconfig \
67 --enable-font-loader-eet \
68 --enable-scale-sample \
69 --enable-scale-smooth \
70 --enable-convert-yuv \
71 --enable-small-dither-mask \
72 --enable-no-dither-mask \
73 --enable-convert-8-rgb-332 \
74 --enable-convert-8-rgb-666 \
75 --enable-convert-8-rgb-232 \
76 --enable-convert-8-rgb-222 \
77 --enable-convert-8-rgb-221 \
78 --enable-convert-8-rgb-121 \
79 --enable-convert-8-rgb-111 \
80 --enable-convert-16-rgb-565 \
81 --enable-convert-16-rgb-555 \
82 --enable-convert-16-rgb-444 \
83 --enable-convert-16-rgb-ipq \
84 --enable-convert-16-rgb-rot-0 \
85 --enable-convert-16-rgb-rot-90 \
86 --enable-convert-16-rgb-rot-180\
87 --enable-convert-16-rgb-rot-270 \
88 --enable-convert-24-rgb-888 \
89 --enable-convert-24-bgr-888 \
90 --enable-convert-32-rgb-8888 \
91 --enable-convert-32-rgbx-8888 \
92 --enable-convert-32-bgr-8888 \
93 --enable-convert-32-bgrx-8888 \
94 --enable-convert-32-rgb-rot-0 \
95 --enable-convert-32-rgb-rot-90 \
96 --enable-convert-32-rgb-rot-180 \
97 --enable-convert-32-rgb-rot-270 \
98 )
99 endef
100
101 define Build/Compile
102 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
103 endef
104
105 define Build/InstallDev
106 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
107 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
108 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
109 endef
110
111 define Package/evas/install
112 $(INSTALL_DIR) $(1)/usr/lib
113 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevas.so* $(1)/usr/lib/
114 $(CP) $(PKG_INSTALL_DIR)/usr/lib/evas $(1)/usr/lib/
115 find $(1)/usr/lib/evas -name *.la | xargs rm -rf
116 find $(1)/usr/lib/evas -name *.a | xargs rm -rf
117 endef
118
119 $(eval $(call BuildPackage,evas))