cyrus-sasl: moved to github
[packages.git] / libs / libdirectfb / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=DirectFB
11 PKG_VERSION:=1.4.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.directfb.org/downloads/Core/DirectFB-1.4
16 PKG_MD5SUM:=e4376c6c5b8e27d735edb7f62a7a8e86
17
18 PKG_LICENSE:=LGPLv2.1
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/directfb
27     TITLE:=DirectFB
28     SECTION:=libs
29     CATEGORY:=Libraries
30     URL:=http://directfb.org
31     DEPENDS:=+libpng +libjpeg +libpthread +libfreetype +libsysfs
32 endef
33
34 define Package/directfb/description
35     DirectFB is a thin library that provides hardware graphics acceleration, input device handling and abstraction, integrated windowing system with support for translucent windows and multiple display layers, not only on top of the Linux Framebuffer Device. It is a complete hardware abstraction layer with software fallbacks for every graphics operation that is not supported by the underlying hardware.
36 endef
37
38 TARGET_LDFLAGS+="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
39 CONFIGURE_CMD=./autogen.sh
40
41 define Feature/DirectFB
42   TARGET_NAME:=drawing-backend
43   TARGET_TITLE:=Drawing Backend
44   NAME:=DirectFB
45 endef
46
47 define Build/Configure
48         $(call Build/Configure/Default, \
49                 --disable-osx \
50                 --disable-x11 \
51                 --enable-debug-support \
52                 --disable-network \
53                 --disable-mmx \
54                 --disable-sse \
55                 --enable-fbdev \
56                 --disable-sdl \
57                 --disable-vnc \
58                 --enable-sysfs \
59                 --with-inputdrivers=linuxinput \
60                 --with-gfxdrivers=none \
61         )
62 endef
63
64 define Build/InstallDev
65         $(INSTALL_DIR) \
66                 $(1)/usr/include \
67                 $(1)/usr/lib \
68                 $(1)/usr/lib/pkgconfig
69         $(CP) \
70                 $(PKG_INSTALL_DIR)/usr/lib/* \
71                 $(1)/usr/lib/
72         $(CP) \
73                 $(PKG_INSTALL_DIR)/usr/include/* \
74                 $(1)/usr/include/
75         $(CP) \
76                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
77                 $(1)/usr/lib/
78 endef
79
80 define Package/directfb/install
81         $(INSTALL_DIR) \
82                 $(1)/usr/bin \
83                 $(1)/usr/lib \
84                 $(1)/usr/share/directfb-1.4.2 \
85                 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont \
86                 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider \
87                 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider \
88                 $(1)/usr/lib/directfb-1.4-0/wm \
89                 $(1)/usr/lib/directfb-1.4-0/systems \
90                 $(1)/usr/lib/directfb-1.4-0/inputdrivers
91         $(CP) \
92                 $(PKG_INSTALL_DIR)/usr/bin/* \
93                 $(1)/usr/bin/
94         $(CP) \
95                 $(PKG_INSTALL_DIR)/usr/share/directfb-1.4.2/* \
96                 $(1)/usr/share/directfb-1.4.2/
97         $(CP) \
98                 $(PKG_INSTALL_DIR)/usr/lib/lib{direct,fusion}*.so* \
99                 $(1)/usr/lib/
100         $(CP) \
101                 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont/*.so* \
102                 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont/
103         $(CP) \
104                 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider/*.so* \
105                 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider/
106         $(CP) \
107                 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider/*.so* \
108                 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider/
109         $(CP) \
110                 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/wm/*.so* \
111                 $(1)/usr/lib/directfb-1.4-0/wm/
112         $(CP) \
113                 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/systems/*.so* \
114                 $(1)/usr/lib/directfb-1.4-0/systems/
115         $(CP) \
116                 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/inputdrivers/*.so* \
117                 $(1)/usr/lib/directfb-1.4-0/inputdrivers/
118 endef
119
120 $(eval $(call Feature,DirectFB))
121 $(eval $(call BuildPackage,directfb))