b072c1ed3c2329ace9e3f50c060f4c64777fafeb
[openwrt/svn-archive/archive.git] / libs / libdirectfb / Makefile
1 #
2 # Copyright (C) 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
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
17 PKG_INSTALL:=1
18
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/DirectFB
24 TITLE:=DirectFB
25 SECTION:=libs
26 CATEGORY:=Libraries
27 URL:=http://directfb.org
28 DEPENDS:=+libpng +libjpeg +libpthread +libfreetype
29 endef
30
31 define Package/DirectFB/description
32 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.
33 endef
34
35 TARGET_LDFLAGS+="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
36 CONFIGURE_CMD=./autogen.sh
37
38 define Feature/DirectFB
39 TARGET_NAME:=drawing-backend
40 TARGET_TITLE:=Drawing Backend
41 NAME:=DirectFB
42 endef
43
44 comma:=,
45 define Build/Configure
46 $(call Build/Configure/Default, \
47 --disable-osx \
48 --disable-x11 \
49 --enable-debug-support \
50 --disable-network \
51 --disable-mmx \
52 --disable-sse \
53 --enable-fbdev \
54 --disable-sdl \
55 --disable-vnc \
56 --enable-sysfs \
57 --with-inputdrivers=keyboard$(comma)linuxinput \
58 --with-gfxdrivers=none \
59 )
60 endef
61
62 define Build/InstallDev
63 $(INSTALL_DIR) \
64 $(1)/usr/include \
65 $(1)/usr/lib \
66 $(1)/usr/lib/pkgconfig
67 $(CP) \
68 $(PKG_INSTALL_DIR)/usr/lib/* \
69 $(1)/usr/lib/
70 $(CP) \
71 $(PKG_INSTALL_DIR)/usr/include/* \
72 $(1)/usr/include/
73 $(CP) \
74 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
75 $(1)/usr/lib/
76 endef
77
78 define Package/DirectFB/install
79 $(INSTALL_DIR) \
80 $(1)/usr/bin \
81 $(1)/usr/lib \
82 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont \
83 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider \
84 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider \
85 $(1)/usr/lib/directfb-1.4-0/wm \
86 $(1)/usr/lib/directfb-1.4-0/systems \
87 $(1)/usr/lib/directfb-1.4-0/inputdrivers
88 $(CP) \
89 $(PKG_INSTALL_DIR)/usr/bin/* \
90 $(1)/usr/bin/
91 $(CP) \
92 $(PKG_INSTALL_DIR)/usr/lib/lib{direct,fusion}*.so* \
93 $(1)/usr/lib/
94 $(CP) \
95 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont/*.so* \
96 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont/
97 $(CP) \
98 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider/*.so* \
99 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider/
100 $(CP) \
101 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider/*.so* \
102 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider/
103 $(CP) \
104 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/wm/*.so* \
105 $(1)/usr/lib/directfb-1.4-0/wm/
106 $(CP) \
107 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/systems/*.so* \
108 $(1)/usr/lib/directfb-1.4-0/systems/
109 $(CP) \
110 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/inputdrivers/*.so* \
111 $(1)/usr/lib/directfb-1.4-0/inputdrivers/
112 endef
113
114 $(eval $(call Feature,DirectFB))
115 $(eval $(call BuildPackage,DirectFB))