2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-04-26 08:26:14 +02:00
|
|
|
#
|
|
|
|
# directfb
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2015-09-02 00:01:02 +02:00
|
|
|
DIRECTFB_VERSION_MAJOR = 1.7
|
|
|
|
DIRECTFB_VERSION = $(DIRECTFB_VERSION_MAJOR).7
|
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
|
2013-08-28 15:09:51 +02:00
|
|
|
DIRECTFB_AUTORECONF = YES
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS = \
|
2010-10-06 17:10:26 +02:00
|
|
|
--enable-zlib \
|
|
|
|
--enable-freetype \
|
|
|
|
--enable-fbdev \
|
|
|
|
--disable-sdl \
|
|
|
|
--disable-vnc \
|
|
|
|
--disable-osx \
|
|
|
|
--disable-video4linux \
|
2010-11-07 10:39:26 +01:00
|
|
|
--disable-video4linux2 \
|
2015-09-02 00:01:06 +02:00
|
|
|
--without-tools \
|
|
|
|
--disable-x11
|
2014-05-14 21:11:56 +02:00
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --disable-dynload
|
2014-05-14 21:11:56 +02:00
|
|
|
endif
|
|
|
|
|
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)
|
2015-09-02 00:01:02 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --enable-multi --enable-multi-kernel
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_DEPENDENCIES += linux-fusion
|
2015-09-02 00:01:02 +02:00
|
|
|
else
|
|
|
|
DIRECTFB_CONF_OPTS += --disable-multi --disable-multi-kernel
|
2007-08-12 20:21:27 +02:00
|
|
|
endif
|
2009-08-06 12:28:15 +02:00
|
|
|
|
2015-06-15 22:02:45 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT),y)
|
|
|
|
DIRECTFB_CONF_OPTS += --enable-debug-support
|
2009-08-06 12:28:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --enable-debug
|
2009-08-06 12:28:15 +02:00
|
|
|
endif
|
2015-06-15 22:02:45 +02:00
|
|
|
else
|
|
|
|
DIRECTFB_CONF_OPTS += --disable-debug-support
|
|
|
|
endif
|
2009-08-06 12:28:15 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --enable-trace
|
2009-08-06 12:28:15 +02:00
|
|
|
endif
|
|
|
|
|
2015-09-02 00:01:08 +02:00
|
|
|
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
|
|
|
|
|
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_CYBER5K),cyber5k) \
|
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_MATROX),matrox) \
|
|
|
|
$(if $(BR2_PACKAGE_DIRECTFB_PXA3XX),pxa3xx) \
|
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)),)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --with-gfxdrivers=none
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += \
|
2013-01-21 08:48:08 +01:00
|
|
|
--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)),)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --with-inputdrivers=none
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += \
|
2013-01-21 08:48:08 +01:00
|
|
|
--with-inputdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT)))
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_GIF),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --enable-gif
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --disable-gif
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
2015-09-02 00:01:09 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_TIFF),y)
|
|
|
|
DIRECTFB_CONF_OPTS += --enable-tiff
|
|
|
|
DIRECTFB_DEPENDENCIES += tiff
|
|
|
|
else
|
|
|
|
DIRECTFB_CONF_OPTS += --disable-tiff
|
|
|
|
endif
|
|
|
|
|
2008-10-07 22:29:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_PNG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --enable-png
|
2010-10-06 17:10:26 +02:00
|
|
|
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
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --disable-png
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_JPEG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --enable-jpeg
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_DEPENDENCIES += jpeg
|
2008-10-07 22:29:27 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --disable-jpeg
|
2007-09-05 08:49:57 +02:00
|
|
|
endif
|
2007-08-12 20:21:27 +02:00
|
|
|
|
2014-09-12 17:50:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_SVG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --enable-svg
|
2014-09-12 17:50:10 +02:00
|
|
|
# needs some help to find cairo includes
|
|
|
|
DIRECTFB_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/cairo"
|
|
|
|
DIRECTFB_DEPENDENCIES += libsvg-cairo
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --disable-svg
|
2014-09-12 17:50:10 +02:00
|
|
|
endif
|
|
|
|
|
2013-05-21 01:29:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_IMLIB2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --enable-imlib2
|
2013-05-21 01:29:40 +02:00
|
|
|
DIRECTFB_DEPENDENCIES += imlib2
|
|
|
|
DIRECTFB_CONF_ENV += ac_cv_path_IMLIB2_CONFIG=$(STAGING_DIR)/usr/bin/imlib2-config
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --disable-imlib2
|
2013-05-21 01:29:40 +02:00
|
|
|
endif
|
|
|
|
|
2013-03-10 09:32:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_DITHER_RGB16),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --with-dither-rgb16=advanced
|
2009-06-23 13:47:14 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --with-dither-rgb16=none
|
2009-06-23 13:47:14 +02:00
|
|
|
endif
|
|
|
|
|
2013-03-10 09:32:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_TESTS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
DIRECTFB_CONF_OPTS += --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
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_DIRECTFB_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--disable-multi \
|
|
|
|
--enable-png \
|
|
|
|
--with-gfxdrivers=none \
|
|
|
|
--with-inputdrivers=none
|
2009-10-02 14:20:04 +02:00
|
|
|
|
2009-11-03 00:09:34 +01:00
|
|
|
HOST_DIRECTFB_BUILD_CMDS = \
|
2016-10-17 18:06:44 +02:00
|
|
|
$(HOST_MAKE_ENV) $(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
|