2005-04-26 08:26:14 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# directfb
|
|
|
|
#
|
|
|
|
#############################################################
|
2013-03-10 09:32:42 +01:00
|
|
|
DIRECTFB_VERSION_MAJOR = 1.6
|
|
|
|
DIRECTFB_VERSION = $(DIRECTFB_VERSION_MAJOR).3
|
2011-02-02 13:22:20 +01:00
|
|
|
DIRECTFB_SITE = http://www.directfb.org/downloads/Core/DirectFB-$(DIRECTFB_VERSION_MAJOR)
|
|
|
|
DIRECTFB_SOURCE = DirectFB-$(DIRECTFB_VERSION).tar.gz
|
2012-05-17 19:33:14 +02:00
|
|
|
DIRECTFB_LICENSE = LGPLv2.1+
|
|
|
|
DIRECTFB_LICENSE_FILES = COPYING
|
2009-01-21 20:20:08 +01:00
|
|
|
DIRECTFB_INSTALL_STAGING = YES
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT = \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-explicit-deps \
|
|
|
|
--enable-zlib \
|
|
|
|
--enable-freetype \
|
|
|
|
--enable-fbdev \
|
|
|
|
--disable-sysfs \
|
|
|
|
--disable-sdl \
|
|
|
|
--disable-vnc \
|
|
|
|
--disable-osx \
|
|
|
|
--disable-video4linux \
|
2010-11-07 10:39:26 +01:00
|
|
|
--disable-video4linux2 \
|
|
|
|
--without-tools
|
2013-02-07 13:35:05 +01:00
|
|
|
DIRECTFB_CONFIG_SCRIPTS = directfb-config
|
2010-10-06 17:10:26 +02:00
|
|
|
|
|
|
|
DIRECTFB_DEPENDENCIES = freetype zlib
|
|
|
|
|
2007-08-12 20:21:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --enable-multi --enable-fusion
|
|
|
|
DIRECTFB_DEPENDENCIES += linux-fusion
|
2007-08-12 20:21:27 +02:00
|
|
|
endif
|
2009-08-06 12:28:15 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --enable-debug
|
2009-08-06 12:28:15 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --enable-trace
|
2009-08-06 12:28:15 +02:00
|
|
|
endif
|
|
|
|
|
2008-10-07 22:29:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --enable-x11
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += -disable-x11
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_UNIQUE),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --enable-unique
|
2007-09-05 08:49:57 +02:00
|
|
|
else
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --disable-unique
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
2013-01-20 10:45:47 +01:00
|
|
|
DIRECTFB_GFX = \
|
2010-10-06 17:10:26 +02:00
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_ATI128),ati128) \
|
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_CLE266),cle266) \
|
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_CYBER5K),cyber5k) \
|
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_MATROX),matrox) \
|
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_PXA3XX),pxa3xx) \
|
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_UNICHROME),unichrome) \
|
2011-02-08 08:46:28 +01:00
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_I830),i830) \
|
2012-05-15 21:56:14 +02:00
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_EP9X),ep9x)
|
2010-10-06 17:10:26 +02:00
|
|
|
|
|
|
|
ifeq ($(strip $(DIRECTFB_GFX)),)
|
2013-01-21 08:48:08 +01:00
|
|
|
DIRECTFB_CONF_OPT += --with-gfxdrivers=none
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2013-01-21 08:48:08 +01:00
|
|
|
DIRECTFB_CONF_OPT += \
|
|
|
|
--with-gfxdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_GFX)))
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
2013-01-20 10:45:47 +01:00
|
|
|
DIRECTFB_INPUT = \
|
2010-10-06 17:10:26 +02:00
|
|
|
$(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)
|
|
|
|
|
2008-10-07 22:29:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_TSLIB),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_DEPENDENCIES += tslib
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
2010-10-06 17:10:26 +02:00
|
|
|
|
|
|
|
ifeq ($(strip $(DIRECTFB_INPUT)),)
|
2013-01-21 08:48:08 +01:00
|
|
|
DIRECTFB_CONF_OPT += --with-inputdrivers=none
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2013-01-21 08:48:08 +01:00
|
|
|
DIRECTFB_CONF_OPT += \
|
|
|
|
--with-inputdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT)))
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_GIF),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --enable-gif
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --disable-gif
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_PNG),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --enable-png
|
|
|
|
DIRECTFB_DEPENDENCIES += libpng
|
2010-10-06 16:44:57 +02:00
|
|
|
DIRECTFB_CONF_ENV += ac_cv_path_LIBPNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --disable-png
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_JPEG),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --enable-jpeg
|
|
|
|
DIRECTFB_DEPENDENCIES += jpeg
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --disable-jpeg
|
2007-09-05 08:49:57 +02:00
|
|
|
endif
|
2007-08-12 20:21:27 +02:00
|
|
|
|
2009-06-23 13:47:14 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTB_DITHER_RGB16),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --with-dither-rgb16=advanced
|
2009-06-23 13:47:14 +02:00
|
|
|
else
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --with-dither-rgb16=none
|
2009-06-23 13:47:14 +02:00
|
|
|
endif
|
|
|
|
|
2010-04-30 02:58:47 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTB_TESTS),y)
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --with-tests
|
2010-04-30 02:58:47 +02:00
|
|
|
endif
|
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
HOST_DIRECTFB_DEPENDENCIES = host-pkgconf host-libpng
|
2009-11-03 00:09:34 +01:00
|
|
|
HOST_DIRECTFB_CONF_OPT = \
|
2009-10-03 09:21:45 +02:00
|
|
|
--disable-debug \
|
|
|
|
--disable-multi \
|
2010-11-07 10:42:45 +01:00
|
|
|
--enable-png \
|
2009-10-03 09:21:45 +02:00
|
|
|
--with-gfxdrivers=none \
|
2009-11-03 00:09:34 +01:00
|
|
|
--with-inputdrivers=none
|
2009-10-02 14:20:04 +02:00
|
|
|
|
2009-11-03 00:09:34 +01:00
|
|
|
HOST_DIRECTFB_BUILD_CMDS = \
|
|
|
|
$(MAKE) -C $(@D)/tools directfb-csource
|
2009-10-02 14:20:04 +02:00
|
|
|
|
2009-11-03 00:09:34 +01:00
|
|
|
HOST_DIRECTFB_INSTALL_CMDS = \
|
|
|
|
$(INSTALL) -m 0755 $(@D)/tools/directfb-csource $(HOST_DIR)/usr/bin
|
2009-10-02 14:20:04 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|
2009-10-02 14:20:04 +02:00
|
|
|
|
2009-11-03 00:09:34 +01:00
|
|
|
# directfb-csource for the host
|
2013-01-20 10:45:47 +01:00
|
|
|
DIRECTFB_HOST_BINARY = $(HOST_DIR)/usr/bin/directfb-csource
|