Move all to deprecated folder.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,36 @@
|
||||
From 8352c434e515f19dd1ba36256bfcc3ec9480838d Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Thu, 5 Mar 2015 22:38:52 +0100
|
||||
Subject: [PATCH] imlib2 config
|
||||
|
||||
Call the imlib2-conf variable that are set by ac_cv_path_IMLIB2_CONFIG
|
||||
with the absolute path because the imlib2-config file is not covered
|
||||
by the PATH variable.
|
||||
This is important for cross compiler that need to get the staging settings
|
||||
instead of the host settings.
|
||||
|
||||
Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com>
|
||||
[ patch configure.in instead of configure to survive autoreconf ]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
configure.in | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 38d7e78..fa5e87f 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -1094,8 +1094,8 @@ if test "x$enable_imlib2" = "xyes"; then
|
||||
AC_MSG_WARN([*** Imlib2 library not found, building without Imlib2 support ***])
|
||||
imlib2="no"
|
||||
else
|
||||
- IMLIB2_CFLAGS=`imlib2-config --cflags`
|
||||
- IMLIB2_LIBS=`imlib2-config --libs`
|
||||
+ IMLIB2_CFLAGS=`$IMLIB2_CONFIG --cflags`
|
||||
+ IMLIB2_LIBS=`$IMLIB2_CONFIG --libs`
|
||||
imlib2="yes"
|
||||
fi
|
||||
fi
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
This patch fixes builderrors while using '--with-gfxdrivers' and
|
||||
'--with-inputdrivers' with the current DirectFB version 1.6.3.
|
||||
|
||||
Patch is taken from
|
||||
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/DirectFB/files/DirectFB-1.6.3-setregion.patch
|
||||
|
||||
Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com>
|
||||
|
||||
Index: b/gfxdrivers/cyber5k/cyber5k.c
|
||||
===================================================================
|
||||
--- a/gfxdrivers/cyber5k/cyber5k.c
|
||||
+++ b/gfxdrivers/cyber5k/cyber5k.c
|
||||
@@ -640,7 +640,8 @@
|
||||
CoreLayerRegionConfigFlags updated,
|
||||
CoreSurface *surface,
|
||||
CorePalette *palette,
|
||||
- CoreSurfaceBufferLock *lock )
|
||||
+ CoreSurfaceBufferLock *left_lock,
|
||||
+ CoreSurfaceBufferLock *right_lock )
|
||||
{
|
||||
DFBResult ret;
|
||||
|
||||
@@ -648,7 +649,7 @@
|
||||
ret = oldPrimaryFuncs.SetRegion( layer, oldPrimaryDriverData,
|
||||
layer_data, region_data,
|
||||
config, updated, surface,
|
||||
- palette, lock );
|
||||
+ palette, left_lock, right_lock );
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
Index: b/gfxdrivers/radeon/radeon_crtc1.c
|
||||
===================================================================
|
||||
--- a/gfxdrivers/radeon/radeon_crtc1.c
|
||||
+++ b/gfxdrivers/radeon/radeon_crtc1.c
|
||||
@@ -147,14 +147,15 @@
|
||||
CoreLayerRegionConfigFlags updated,
|
||||
CoreSurface *surface,
|
||||
CorePalette *palette,
|
||||
- CoreSurfaceBufferLock *lock )
|
||||
+ CoreSurfaceBufferLock *left_lock,
|
||||
+ CoreSurfaceBufferLock *right_lock )
|
||||
{
|
||||
|
||||
if (updated & ~CLRCF_OPTIONS) {
|
||||
return OldPrimaryLayerFuncs.SetRegion( layer,
|
||||
OldPrimaryLayerDriverData,
|
||||
layer_data, region_data,
|
||||
- config, updated, surface, palette, lock );
|
||||
+ config, updated, surface, palette, left_lock, right_lock );
|
||||
}
|
||||
|
||||
return DFB_OK;
|
||||
Index: b/gfxdrivers/cle266/uc_primary.c
|
||||
===================================================================
|
||||
--- a/gfxdrivers/cle266/uc_primary.c
|
||||
+++ b/gfxdrivers/cle266/uc_primary.c
|
||||
@@ -142,7 +142,8 @@
|
||||
CoreLayerRegionConfigFlags updated,
|
||||
CoreSurface *surface,
|
||||
CorePalette *palette,
|
||||
- CoreSurfaceBufferLock *lock )
|
||||
+ CoreSurfaceBufferLock *left_lock,
|
||||
+ CoreSurfaceBufferLock *right_lock )
|
||||
{
|
||||
DFBResult ret;
|
||||
UcDriverData *ucdrv = (UcDriverData*) driver_data;
|
||||
@@ -151,7 +152,7 @@
|
||||
ret = ucOldPrimaryFuncs.SetRegion( layer, ucOldPrimaryDriverData,
|
||||
layer_data, region_data,
|
||||
config, updated, surface,
|
||||
- palette, lock );
|
||||
+ palette, left_lock, right_lock );
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
Index: b/gfxdrivers/unichrome/uc_primary.c
|
||||
===================================================================
|
||||
--- a/gfxdrivers/unichrome/uc_primary.c
|
||||
+++ b/gfxdrivers/unichrome/uc_primary.c
|
||||
@@ -139,7 +139,8 @@
|
||||
CoreLayerRegionConfigFlags updated,
|
||||
CoreSurface *surface,
|
||||
CorePalette *palette,
|
||||
- CoreSurfaceBufferLock *lock )
|
||||
+ CoreSurfaceBufferLock *left_lock,
|
||||
+ CoreSurfaceBufferLock *right_lock )
|
||||
{
|
||||
DFBResult ret;
|
||||
UcDriverData *ucdrv = (UcDriverData*) driver_data;
|
||||
@@ -148,7 +149,7 @@
|
||||
ret = ucOldPrimaryFuncs.SetRegion( layer, ucOldPrimaryDriverData,
|
||||
layer_data, region_data,
|
||||
config, updated, surface,
|
||||
- palette, lock );
|
||||
+ palette, left_lock, right_lock );
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
Add patch to use 'gcc' instead of 'ld' for linking
|
||||
|
||||
The patch has been sent upstream but it has not been merged yet
|
||||
|
||||
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
|
||||
|
||||
From 176ce06b40897a357fe76a558af517197325f188 Mon Sep 17 00:00:00 2001
|
||||
From: Markos Chandras <markos.chandras@imgtec.com>
|
||||
Date: Wed, 28 Aug 2013 10:56:32 +0100
|
||||
Subject: [PATCH] rules/libobject.make: Use gcc for linking
|
||||
|
||||
Invoking 'ld' directly may miss some necessary linker flags which
|
||||
are usually passed by gcc. Therefore, use gcc for linking.
|
||||
|
||||
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
|
||||
---
|
||||
rules/libobject.make | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/rules/libobject.make b/rules/libobject.make
|
||||
index bc670da..2cba658 100644
|
||||
--- a/rules/libobject.make
|
||||
+++ b/rules/libobject.make
|
||||
@@ -3,7 +3,7 @@
|
||||
if test -d $<.tmp; then rmdir $<.tmp; fi
|
||||
mkdir $<.tmp
|
||||
(cd $<.tmp && $(AR) x ../../$<)
|
||||
- $(LD) -o $@ -r $<.tmp/*.o
|
||||
+ $(CC) -nostdlib -o $@ -r $<.tmp/*.o
|
||||
rm -f $<.tmp/*.o && rmdir $<.tmp
|
||||
|
||||
.PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
|
||||
--
|
||||
1.8.3.2
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
Add idivine.h, which is missing from DirectFB tarballs
|
||||
|
||||
The idivine.h file was taken from the DirectFB Git repository.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/lib/divine/idivine.h
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/lib/divine/idivine.h
|
||||
@@ -0,0 +1,54 @@
|
||||
+/*
|
||||
+ (c) Copyright 2012-2013 DirectFB integrated media GmbH
|
||||
+ (c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
|
||||
+ (c) Copyright 2000-2004 Convergence (integrated media) GmbH
|
||||
+
|
||||
+ All rights reserved.
|
||||
+
|
||||
+ Written by Denis Oliver Kropp <dok@directfb.org>,
|
||||
+ Andreas Shimokawa <andi@directfb.org>,
|
||||
+ Marek Pikarski <mass@directfb.org>,
|
||||
+ Sven Neumann <neo@directfb.org>,
|
||||
+ Ville Syrjälä <syrjala@sci.fi> and
|
||||
+ Claudio Ciccani <klan@users.sf.net>.
|
||||
+
|
||||
+ This library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ This library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with this library; if not, write to the
|
||||
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
+ Boston, MA 02111-1307, USA.
|
||||
+*/
|
||||
+
|
||||
+
|
||||
+
|
||||
+#ifndef __IDIVINE_H__
|
||||
+#define __IDIVINE_H__
|
||||
+
|
||||
+#include <divine.h>
|
||||
+
|
||||
+/*
|
||||
+ * private data struct of IDiVine
|
||||
+ */
|
||||
+typedef struct {
|
||||
+ int ref; /* reference counter */
|
||||
+
|
||||
+ DiVine *divine;
|
||||
+} IDiVine_data;
|
||||
+
|
||||
+/*
|
||||
+ * IDiVine constructor/destructor
|
||||
+ */
|
||||
+DFBResult IDiVine_Construct( IDiVine *thiz );
|
||||
+
|
||||
+void IDiVine_Destruct ( IDiVine *thiz );
|
||||
+
|
||||
+#endif
|
||||
167
deprecated/firmware/buildroot/package/directfb/Config.in
Normal file
167
deprecated/firmware/buildroot/package/directfb/Config.in
Normal file
@@ -0,0 +1,167 @@
|
||||
config BR2_PACKAGE_DIRECTFB
|
||||
bool "directfb"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
|
||||
depends on !BR2_TOOLCHAIN_USES_MUSL # sigval_t issue
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
select BR2_PACKAGE_FREETYPE
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
DirectFB (Direct Frame Buffer) is a set of graphics APIs implemented
|
||||
on top of the Linux Frame Buffer (fbdev) abstraction layer. It is an
|
||||
alternative to X11 with a smaller memory footprint that still has an
|
||||
integrated windowing system. As of 4 October 2015, DirectFB's website
|
||||
http://www.directfb.org/ is down. See alternative site listed below.
|
||||
|
||||
http://elinux.org/DirectFB
|
||||
|
||||
if BR2_PACKAGE_DIRECTFB
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_MULTI
|
||||
bool "directfb multi application"
|
||||
select BR2_PACKAGE_LINUX_FUSION
|
||||
depends on BR2_USE_MMU # madvise()
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
Enable use of multiple concurrent DirectFB applications
|
||||
|
||||
comment "directfb multi application needs a Linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT
|
||||
bool "directfb debugging support"
|
||||
default y
|
||||
help
|
||||
Compile DirectFB with debugging support. It provides
|
||||
functions to print debug information, for DirectFB as well as
|
||||
external DirectFB drivers.
|
||||
|
||||
When disabled, DirectFB does not print any debug information.
|
||||
The drivers will be installed to and loaded from
|
||||
/usr/lib/directfb-<version>-pure instead of
|
||||
/usr/lib/directfb-<version>.
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_DEBUG
|
||||
bool "directfb debugging"
|
||||
depends on BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT
|
||||
help
|
||||
Compile DirectFB with lots of debug output
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_TRACE
|
||||
bool "directfb call trace support"
|
||||
help
|
||||
Enable call tracing for DirectFB applications
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_DIVINE
|
||||
bool "divine"
|
||||
help
|
||||
Enable the DiVine feature (virtual input)
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_SAWMAN
|
||||
bool "sawman"
|
||||
help
|
||||
Enable the SawMan feature (window manager)
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_ATI128
|
||||
bool "compile ati128 graphics driver"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_MATROX
|
||||
bool "compile matrox graphics driver"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_PXA3XX
|
||||
bool "compile pxa3xx graphics driver"
|
||||
depends on BR2_arm
|
||||
help
|
||||
The Marvell PXA3xx Processor Family is a system-on-chip based
|
||||
on XScale® microarchitecture. This option enables the graphic
|
||||
driver support for the PXA3xx processor family.
|
||||
|
||||
http://www.marvell.com/application-processors/pxa-family/
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_EP9X
|
||||
bool "compile ep9x graphics driver"
|
||||
depends on BR2_arm
|
||||
help
|
||||
Enable the graphic driver support for the EP93xx ARMv9 based
|
||||
processors from Cirrus Logic.
|
||||
|
||||
http://cirrus.com/en/products/arm9.html
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_I830
|
||||
bool "compile i830 graphics driver"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_LINUXINPUT
|
||||
bool "compile /dev/input/eventX input driver"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_KEYBOARD
|
||||
bool "compile keyboard input driver"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_PS2MOUSE
|
||||
bool "compile PS2 mouse input driver"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_SERIALMOUSE
|
||||
bool "compile serial mouse input driver"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_TSLIB
|
||||
bool "enable touchscreen support"
|
||||
depends on !BR2_STATIC_LIBS # tslib
|
||||
default y
|
||||
select BR2_PACKAGE_TSLIB
|
||||
|
||||
comment "touchscreen support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_GIF
|
||||
bool "enable GIF support"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_TIFF
|
||||
bool "enable TIFF support"
|
||||
select BR2_PACKAGE_TIFF
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_IMLIB2
|
||||
bool "enable IMLIB2 support"
|
||||
select BR2_PACKAGE_IMLIB2
|
||||
depends on !BR2_STATIC_LIBS
|
||||
|
||||
comment "imlib2 support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_JPEG
|
||||
bool "enable JPEG support"
|
||||
default y
|
||||
select BR2_PACKAGE_JPEG
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_PNG
|
||||
bool "enable PNG support"
|
||||
default y
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_SVG
|
||||
bool "enable SVG support"
|
||||
default y
|
||||
select BR2_PACKAGE_LIBSVG_CAIRO
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_DITHER_RGB16
|
||||
bool "enable advanced dithering of RGB16 surfaces"
|
||||
help
|
||||
Enable dithering when loading images to RGB16 surfaces.
|
||||
This increases the data section by 64 KBytes.
|
||||
|
||||
config BR2_PACKAGE_DIRECTFB_TESTS
|
||||
bool "build directfb tests"
|
||||
|
||||
endif # BR2_PACKAGE_DIRECTFB
|
||||
|
||||
comment "directfb needs a (e)glibc or uClibc toolchain w/ C++, threads, gcc >= 4.5"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 || BR2_TOOLCHAIN_USES_MUSL
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 b785c638dc31b8fe3a7c81be1475c89b2255ab3d67b777c747d3fbc52f8027a3 DirectFB-1.7.7.tar.gz
|
||||
173
deprecated/firmware/buildroot/package/directfb/directfb.mk
Normal file
173
deprecated/firmware/buildroot/package/directfb/directfb.mk
Normal file
@@ -0,0 +1,173 @@
|
||||
################################################################################
|
||||
#
|
||||
# directfb
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DIRECTFB_VERSION_MAJOR = 1.7
|
||||
DIRECTFB_VERSION = $(DIRECTFB_VERSION_MAJOR).7
|
||||
DIRECTFB_SITE = http://www.directfb.org/downloads/Core/DirectFB-$(DIRECTFB_VERSION_MAJOR)
|
||||
DIRECTFB_SOURCE = DirectFB-$(DIRECTFB_VERSION).tar.gz
|
||||
DIRECTFB_LICENSE = LGPLv2.1+
|
||||
DIRECTFB_LICENSE_FILES = COPYING
|
||||
DIRECTFB_INSTALL_STAGING = YES
|
||||
DIRECTFB_AUTORECONF = YES
|
||||
|
||||
DIRECTFB_CONF_OPTS = \
|
||||
--enable-zlib \
|
||||
--enable-freetype \
|
||||
--enable-fbdev \
|
||||
--disable-sdl \
|
||||
--disable-vnc \
|
||||
--disable-osx \
|
||||
--disable-video4linux \
|
||||
--disable-video4linux2 \
|
||||
--without-tools \
|
||||
--disable-x11
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
DIRECTFB_CONF_OPTS += --disable-dynload
|
||||
endif
|
||||
|
||||
DIRECTFB_CONFIG_SCRIPTS = directfb-config
|
||||
|
||||
DIRECTFB_DEPENDENCIES = freetype zlib
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-multi --enable-multi-kernel
|
||||
DIRECTFB_DEPENDENCIES += linux-fusion
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-multi --disable-multi-kernel
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-debug-support
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-debug
|
||||
endif
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-debug-support
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-trace
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_DIVINE),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-divine
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-divine
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_SAWMAN),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-sawman
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-sawman
|
||||
endif
|
||||
|
||||
DIRECTFB_GFX = \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_ATI128),ati128) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_CYBER5K),cyber5k) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_MATROX),matrox) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_PXA3XX),pxa3xx) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_I830),i830) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_EP9X),ep9x)
|
||||
|
||||
ifeq ($(strip $(DIRECTFB_GFX)),)
|
||||
DIRECTFB_CONF_OPTS += --with-gfxdrivers=none
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += \
|
||||
--with-gfxdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_GFX)))
|
||||
endif
|
||||
|
||||
DIRECTFB_INPUT = \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_LINUXINPUT),linuxinput) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_KEYBOARD),keyboard) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_PS2MOUSE),ps2mouse) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_SERIALMOUSE),serialmouse) \
|
||||
$(if $(BR2_PACKAGE_DIRECTFB_TSLIB),tslib)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_TSLIB),y)
|
||||
DIRECTFB_DEPENDENCIES += tslib
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(DIRECTFB_INPUT)),)
|
||||
DIRECTFB_CONF_OPTS += --with-inputdrivers=none
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += \
|
||||
--with-inputdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT)))
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_GIF),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-gif
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-gif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_TIFF),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-tiff
|
||||
DIRECTFB_DEPENDENCIES += tiff
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-tiff
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_PNG),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-png
|
||||
DIRECTFB_DEPENDENCIES += libpng
|
||||
DIRECTFB_CONF_ENV += ac_cv_path_LIBPNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-png
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_JPEG),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-jpeg
|
||||
DIRECTFB_DEPENDENCIES += jpeg
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-jpeg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_SVG),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-svg
|
||||
# needs some help to find cairo includes
|
||||
DIRECTFB_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/cairo"
|
||||
DIRECTFB_DEPENDENCIES += libsvg-cairo
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-svg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_IMLIB2),y)
|
||||
DIRECTFB_CONF_OPTS += --enable-imlib2
|
||||
DIRECTFB_DEPENDENCIES += imlib2
|
||||
DIRECTFB_CONF_ENV += ac_cv_path_IMLIB2_CONFIG=$(STAGING_DIR)/usr/bin/imlib2-config
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --disable-imlib2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_DITHER_RGB16),y)
|
||||
DIRECTFB_CONF_OPTS += --with-dither-rgb16=advanced
|
||||
else
|
||||
DIRECTFB_CONF_OPTS += --with-dither-rgb16=none
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DIRECTFB_TESTS),y)
|
||||
DIRECTFB_CONF_OPTS += --with-tests
|
||||
endif
|
||||
|
||||
HOST_DIRECTFB_DEPENDENCIES = host-pkgconf host-libpng
|
||||
HOST_DIRECTFB_CONF_OPTS = \
|
||||
--disable-multi \
|
||||
--enable-png \
|
||||
--with-gfxdrivers=none \
|
||||
--with-inputdrivers=none
|
||||
|
||||
HOST_DIRECTFB_BUILD_CMDS = \
|
||||
$(MAKE) -C $(@D)/tools directfb-csource
|
||||
|
||||
HOST_DIRECTFB_INSTALL_CMDS = \
|
||||
$(INSTALL) -m 0755 $(@D)/tools/directfb-csource $(HOST_DIR)/usr/bin
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
# directfb-csource for the host
|
||||
DIRECTFB_HOST_BINARY = $(HOST_DIR)/usr/bin/directfb-csource
|
||||
Reference in New Issue
Block a user