source: packages/libs/libdirectfb/Makefile @ 18387

Last change on this file since 18387 was 18387, checked in by mirko, 7 years ago

add library <DirectFB> and make use of feature-flags

File size: 3.2 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=DirectFB
11PKG_VERSION:=1.4.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.directfb.org/downloads/Core/DirectFB-1.4
16
17PKG_INSTALL:=1
18
19PKG_FIXUP:=libtool
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/DirectFB
24    TITLE:=DirectFB
25    SECTION:=libs
26    CATEGORY:=Libraries
27    URL:=http://directfb.org
28    DEPENDS:=+libpng +libjpeg +libpthread +libfreetype
29endef
30
31define 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.
33endef
34
35TARGET_LDFLAGS+="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
36CONFIGURE_CMD=./autogen.sh
37
38define Feature/DirectFB
39  TARGET_NAME:=drawing-backend
40  TARGET_TITLE:=Drawing Backend
41  NAME:=DirectFB
42endef
43
44comma:=,
45define 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        )
60endef
61
62define 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/
76endef
77
78define 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/
112endef
113
114$(eval $(call Feature,DirectFB))
115$(eval $(call BuildPackage,DirectFB))
Note: See TracBrowser for help on using the repository browser.