2005-04-26 08:26:14 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# directfb
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-06-23 13:47:14 +02:00
|
|
|
DIRECTFB_VERSION_MAJOR:=1.4
|
2010-04-30 02:58:44 +02:00
|
|
|
DIRECTFB_VERSION:=1.4.3
|
2009-06-23 13:47:14 +02:00
|
|
|
DIRECTFB_SITE:=http://www.directfb.org/downloads/Core/DirectFB-$(DIRECTFB_VERSION_MAJOR)
|
2005-04-26 08:26:14 +02:00
|
|
|
DIRECTFB_SOURCE:=DirectFB-$(DIRECTFB_VERSION).tar.gz
|
2009-01-21 20:20:08 +01:00
|
|
|
DIRECTFB_AUTORECONF = NO
|
|
|
|
DIRECTFB_LIBTOOL_PATCH = NO
|
|
|
|
DIRECTFB_INSTALL_STAGING = YES
|
|
|
|
DIRECTFB_INSTALL_TARGET = YES
|
2005-04-26 08:26:14 +02:00
|
|
|
|
2007-08-12 20:21:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y)
|
2008-10-07 22:29:27 +02:00
|
|
|
DIRECTFB_MULTI:=--enable-multi --enable-fusion
|
2007-08-13 08:14:15 +02:00
|
|
|
DIRECTFB_FUSION:=linux-fusion
|
2007-08-12 20:21:27 +02:00
|
|
|
else
|
|
|
|
DIRECTFB_MULTI:=
|
2007-08-13 08:14:15 +02:00
|
|
|
DIRECTFB_FUSION:=
|
2007-08-12 20:21:27 +02:00
|
|
|
endif
|
2009-08-06 12:28:15 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y)
|
|
|
|
DIRECTFB_DEBUG:=--enable-debug
|
|
|
|
else
|
|
|
|
DIRECTFB_DEBUG:=
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE),y)
|
|
|
|
DIRECTFB_TRACE:=--enable-trace
|
|
|
|
else
|
|
|
|
DIRECTFB_TRACE:=
|
|
|
|
endif
|
|
|
|
|
2008-10-07 22:29:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER),y)
|
|
|
|
DIRECTFB_X:=--enable-x11
|
|
|
|
else
|
2007-09-12 07:20:26 +02:00
|
|
|
DIRECTFB_X:=--disable-x11
|
2008-10-07 22:29:27 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_UNIQUE),y)
|
|
|
|
DIRECTFB_UNIQUE:=--enable-unique
|
2007-09-05 08:49:57 +02:00
|
|
|
else
|
2008-10-07 22:29:27 +02:00
|
|
|
DIRECTFB_UNIQUE:=--disable-unique
|
|
|
|
endif
|
|
|
|
|
|
|
|
DIRECTFB_GFX:=
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_ATI128),y)
|
|
|
|
DIRECTFB_GFX+= ati128
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_CLE266),y)
|
|
|
|
DIRECTFB_GFX+= cle266
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_CYBER5K),y)
|
|
|
|
DIRECTFB_GFX+= cyber5k
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_MATROX),y)
|
|
|
|
DIRECTFB_GFX+= matrox
|
|
|
|
endif
|
2009-09-03 21:11:04 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_PXA3XX),y)
|
|
|
|
DIRECTFB_GFX+= pxa3xx
|
|
|
|
endif
|
2008-10-07 22:29:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_UNICHROME),y)
|
|
|
|
DIRECTFB_GFX+= unichrome
|
|
|
|
endif
|
2009-09-24 03:13:52 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_I830),y)
|
|
|
|
DIRECTFB_GFX+= i830
|
|
|
|
endif
|
2008-10-07 22:29:27 +02:00
|
|
|
ifeq ($(DIRECTFB_GFX),)
|
|
|
|
DIRECTFB_GFX:=none
|
|
|
|
else
|
|
|
|
DIRECTFB_GFX:=$(subst $(space),$(comma),$(strip $(DIRECTFB_GFX)))
|
|
|
|
endif
|
|
|
|
|
|
|
|
DIRECTFB_INPUT:=
|
2009-03-11 16:01:56 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_LINUXINPUT),y)
|
|
|
|
DIRECTFB_INPUT+= linuxinput
|
|
|
|
endif
|
2008-10-07 22:29:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_KEYBOARD),y)
|
|
|
|
DIRECTFB_INPUT+= keyboard
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_PS2MOUSE),y)
|
|
|
|
DIRECTFB_INPUT+= ps2mouse
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_SERIALMOUSE),y)
|
|
|
|
DIRECTFB_INPUT+= serialmouse
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_TSLIB),y)
|
|
|
|
DIRECTFB_INPUT+= tslib
|
|
|
|
DIRECTFB_DEP+= tslib
|
|
|
|
endif
|
|
|
|
ifeq ($(DIRECTFB_INPUT),)
|
|
|
|
DIRECTFB_INPUT:=none
|
|
|
|
else
|
|
|
|
DIRECTFB_INPUT:=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT)))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_GIF),y)
|
|
|
|
DIRECTFB_GIF:=--enable-gif
|
|
|
|
else
|
|
|
|
DIRECTFB_GIF:=--disable-gif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_PNG),y)
|
|
|
|
DIRECTFB_PNG:=--enable-png
|
|
|
|
DIRECTFB_DEP+= libpng
|
|
|
|
else
|
|
|
|
DIRECTFB_PNG:=--disable-png
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_JPEG),y)
|
|
|
|
DIRECTFB_JPEG:=--enable-jpeg
|
|
|
|
DIRECTFB_DEP+= jpeg
|
|
|
|
else
|
|
|
|
DIRECTFB_JPEG:=--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)
|
|
|
|
DIRECTFB_DITHER_RGB16:=--with-dither-rgb16=advanced
|
|
|
|
else
|
|
|
|
DIRECTFB_DITHER_RGB16:=--with-dither-rgb16=none
|
|
|
|
endif
|
|
|
|
|
2010-04-30 02:58:47 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTB_TESTS),y)
|
|
|
|
DIRECTFB_TESTS:=--with-tests
|
|
|
|
else
|
|
|
|
DIRECTFB_TESTS:=
|
|
|
|
endif
|
|
|
|
|
2009-01-21 20:20:08 +01:00
|
|
|
DIRECTFB_CONF_OPT = \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-gfxdrivers=$(DIRECTFB_GFX) \
|
|
|
|
--with-inputdrivers=$(DIRECTFB_INPUT) \
|
|
|
|
--enable-static \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-explicit-deps \
|
2009-11-22 23:24:14 +01:00
|
|
|
--program-prefix='' \
|
2009-01-21 20:20:08 +01:00
|
|
|
$(DIRECTFB_MULTI) \
|
2009-08-06 12:28:15 +02:00
|
|
|
$(DIRECTFB_DEBUG) \
|
|
|
|
$(DIRECTFB_TRACE) \
|
2009-01-21 20:20:08 +01:00
|
|
|
$(DIRECTFB_X) \
|
|
|
|
$(DIRECTFB_JPEG) \
|
|
|
|
$(DIRECTFB_PNG) \
|
|
|
|
$(DIRECTFB_GIF) \
|
|
|
|
$(DIRECTFB_UNIQUE) \
|
2009-06-23 13:47:14 +02:00
|
|
|
$(DIRECTFB_DITHER_RGB16) \
|
2009-01-21 20:20:08 +01:00
|
|
|
--enable-linux-input \
|
|
|
|
--enable-zlib \
|
|
|
|
--enable-freetype \
|
|
|
|
--enable-fbdev \
|
|
|
|
--disable-sysfs \
|
|
|
|
--disable-sdl \
|
|
|
|
--disable-vnc \
|
|
|
|
--disable-video4linux \
|
2010-04-30 02:58:47 +02:00
|
|
|
--disable-video4linux2 \
|
|
|
|
$(DIRECTFB_TESTS)
|
2009-01-21 20:20:08 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
DIRECTFB_DEPENDENCIES = $(DIRECTFB_DEP) freetype $(DIRECTFB_FUSION)
|
2009-01-21 20:20:08 +01:00
|
|
|
|
2009-11-03 00:09:34 +01:00
|
|
|
HOST_DIRECTFB_DEPENDENCIES = host-pkg-config
|
|
|
|
HOST_DIRECTFB_CONF_OPT = \
|
2009-10-03 09:21:45 +02:00
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-multi \
|
|
|
|
--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
|
|
|
|
2009-11-03 00:09:34 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,directfb))
|
|
|
|
$(eval $(call AUTOTARGETS,package,directfb,host))
|
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
|