2005-04-26 08:26:14 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# directfb
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-02-02 13:22:20 +01:00
|
|
|
DIRECTFB_VERSION_MAJOR = 1.4
|
2012-10-27 02:32:20 +02:00
|
|
|
DIRECTFB_VERSION = $(DIRECTFB_VERSION_MAJOR).17
|
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
|
2010-11-06 19:59:50 +01:00
|
|
|
DIRECTFB_AUTORECONF = YES
|
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
|
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
|
|
|
|
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_GFX := \
|
|
|
|
$(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)),)
|
2008-10-07 22:29:27 +02:00
|
|
|
DIRECTFB_GFX:=none
|
|
|
|
else
|
|
|
|
DIRECTFB_GFX:=$(subst $(space),$(comma),$(strip $(DIRECTFB_GFX)))
|
|
|
|
endif
|
|
|
|
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --with-gfxdrivers=$(DIRECTFB_GFX)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
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)),)
|
2008-10-07 22:29:27 +02:00
|
|
|
DIRECTFB_INPUT:=none
|
|
|
|
else
|
|
|
|
DIRECTFB_INPUT:=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT)))
|
|
|
|
endif
|
|
|
|
|
2010-10-06 17:10:26 +02:00
|
|
|
DIRECTFB_CONF_OPT += --with-inputdrivers=$(DIRECTFB_INPUT)
|
|
|
|
|
2008-10-07 22:29:27 +02:00
|
|
|
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
|
|
|
|
2011-02-09 19:22:39 +01:00
|
|
|
define DIRECTFB_STAGING_CONFIG_FIXUP
|
|
|
|
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
|
|
|
|
-e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
|
|
|
|
$(STAGING_DIR)/usr/bin/directfb-config
|
|
|
|
endef
|
|
|
|
|
|
|
|
DIRECTFB_POST_INSTALL_STAGING_HOOKS += DIRECTFB_STAGING_CONFIG_FIXUP
|
|
|
|
|
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
|
|
|
|
DIRECTFB_HOST_BINARY:=$(HOST_DIR)/usr/bin/directfb-csource
|