2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.directfb.org/downloads/Core/DirectFB-1.4
21 include $(INCLUDE_DIR)/package.mk
23 define Package/DirectFB
27 URL:=http://directfb.org
28 DEPENDS:=+libpng +libjpeg +libpthread +libfreetype
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.
35 TARGET_LDFLAGS+="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
36 CONFIGURE_CMD=./autogen.sh
38 define Feature/DirectFB
39 TARGET_NAME:=drawing-backend
40 TARGET_TITLE:=Drawing Backend
44 define Build/Configure
45 $(call Build/Configure/Default, \
48 --enable-debug-support \
56 --with-inputdrivers=linuxinput \
57 --with-gfxdrivers=none \
61 define Build/InstallDev
65 $(1)/usr/lib/pkgconfig
67 $(PKG_INSTALL_DIR)/usr/lib/* \
70 $(PKG_INSTALL_DIR)/usr/include/* \
73 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
77 define Package/DirectFB/install
81 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont \
82 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider \
83 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider \
84 $(1)/usr/lib/directfb-1.4-0/wm \
85 $(1)/usr/lib/directfb-1.4-0/systems \
86 $(1)/usr/lib/directfb-1.4-0/inputdrivers
88 $(PKG_INSTALL_DIR)/usr/bin/* \
91 $(PKG_INSTALL_DIR)/usr/lib/lib{direct,fusion}*.so* \
94 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont/*.so* \
95 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBFont/
97 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider/*.so* \
98 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBImageProvider/
100 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider/*.so* \
101 $(1)/usr/lib/directfb-1.4-0/interfaces/IDirectFBVideoProvider/
103 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/wm/*.so* \
104 $(1)/usr/lib/directfb-1.4-0/wm/
106 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/systems/*.so* \
107 $(1)/usr/lib/directfb-1.4-0/systems/
109 $(PKG_INSTALL_DIR)/usr/lib/directfb-1.4-0/inputdrivers/*.so* \
110 $(1)/usr/lib/directfb-1.4-0/inputdrivers/
113 $(eval $(call Feature,DirectFB))
114 $(eval $(call BuildPackage,DirectFB))