syslinux: install helper programs to the host
[buildroot-gz.git] / package / directfb / directfb.mk
blob1d83a0b6238c518fdcfaa30a8c0d9177dce7c8e2
1 ################################################################################
3 # directfb
5 ################################################################################
7 DIRECTFB_VERSION_MAJOR = 1.6
8 DIRECTFB_VERSION = $(DIRECTFB_VERSION_MAJOR).3
9 DIRECTFB_SITE = http://www.directfb.org/downloads/Core/DirectFB-$(DIRECTFB_VERSION_MAJOR)
10 DIRECTFB_SOURCE = DirectFB-$(DIRECTFB_VERSION).tar.gz
11 DIRECTFB_LICENSE = LGPLv2.1+
12 DIRECTFB_LICENSE_FILES = COPYING
13 DIRECTFB_INSTALL_STAGING = YES
14 DIRECTFB_AUTORECONF = YES
16 DIRECTFB_CONF_OPT = \
17 --localstatedir=/var \
18 --disable-explicit-deps \
19 --enable-zlib \
20 --enable-freetype \
21 --enable-fbdev \
22 --disable-sysfs \
23 --disable-sdl \
24 --disable-vnc \
25 --disable-osx \
26 --disable-video4linux \
27 --disable-video4linux2 \
28 --without-tools
29 DIRECTFB_CONFIG_SCRIPTS = directfb-config
31 DIRECTFB_DEPENDENCIES = freetype zlib
33 ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y)
34 DIRECTFB_CONF_OPT += --enable-multi --enable-fusion
35 DIRECTFB_DEPENDENCIES += linux-fusion
36 endif
38 ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y)
39 DIRECTFB_CONF_OPT += --enable-debug
40 endif
42 ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE),y)
43 DIRECTFB_CONF_OPT += --enable-trace
44 endif
46 ifeq ($(BR2_PACKAGE_XSERVER),y)
47 DIRECTFB_CONF_OPT += --enable-x11
48 else
49 DIRECTFB_CONF_OPT += --disable-x11
50 endif
52 ifeq ($(BR2_PACKAGE_DIRECTFB_UNIQUE),y)
53 DIRECTFB_CONF_OPT += --enable-unique
54 else
55 DIRECTFB_CONF_OPT += --disable-unique
56 endif
58 DIRECTFB_GFX = \
59 $(if $(BR2_PACKAGE_DIRECTFB_ATI128),ati128) \
60 $(if $(BR2_PACKAGE_DIRECTFB_CLE266),cle266) \
61 $(if $(BR2_PACKAGE_DIRECTFB_CYBER5K),cyber5k) \
62 $(if $(BR2_PACKAGE_DIRECTFB_MATROX),matrox) \
63 $(if $(BR2_PACKAGE_DIRECTFB_PXA3XX),pxa3xx) \
64 $(if $(BR2_PACKAGE_DIRECTFB_UNICHROME),unichrome) \
65 $(if $(BR2_PACKAGE_DIRECTFB_I830),i830) \
66 $(if $(BR2_PACKAGE_DIRECTFB_EP9X),ep9x)
68 ifeq ($(strip $(DIRECTFB_GFX)),)
69 DIRECTFB_CONF_OPT += --with-gfxdrivers=none
70 else
71 DIRECTFB_CONF_OPT += \
72 --with-gfxdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_GFX)))
73 endif
75 DIRECTFB_INPUT = \
76 $(if $(BR2_PACKAGE_DIRECTFB_LINUXINPUT),linuxinput) \
77 $(if $(BR2_PACKAGE_DIRECTFB_KEYBOARD),keyboard) \
78 $(if $(BR2_PACKAGE_DIRECTFB_PS2MOUSE),ps2mouse) \
79 $(if $(BR2_PACKAGE_DIRECTFB_SERIALMOUSE),serialmouse) \
80 $(if $(BR2_PACKAGE_DIRECTFB_TSLIB),tslib)
82 ifeq ($(BR2_PACKAGE_DIRECTFB_TSLIB),y)
83 DIRECTFB_DEPENDENCIES += tslib
84 endif
86 ifeq ($(strip $(DIRECTFB_INPUT)),)
87 DIRECTFB_CONF_OPT += --with-inputdrivers=none
88 else
89 DIRECTFB_CONF_OPT += \
90 --with-inputdrivers=$(subst $(space),$(comma),$(strip $(DIRECTFB_INPUT)))
91 endif
93 ifeq ($(BR2_PACKAGE_DIRECTFB_GIF),y)
94 DIRECTFB_CONF_OPT += --enable-gif
95 else
96 DIRECTFB_CONF_OPT += --disable-gif
97 endif
99 ifeq ($(BR2_PACKAGE_DIRECTFB_PNG),y)
100 DIRECTFB_CONF_OPT += --enable-png
101 DIRECTFB_DEPENDENCIES += libpng
102 DIRECTFB_CONF_ENV += ac_cv_path_LIBPNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config
103 else
104 DIRECTFB_CONF_OPT += --disable-png
105 endif
107 ifeq ($(BR2_PACKAGE_DIRECTFB_JPEG),y)
108 DIRECTFB_CONF_OPT += --enable-jpeg
109 DIRECTFB_DEPENDENCIES += jpeg
110 else
111 DIRECTFB_CONF_OPT += --disable-jpeg
112 endif
114 ifeq ($(BR2_PACKAGE_DIRECTFB_IMLIB2),y)
115 DIRECTFB_CONF_OPT += --enable-imlib2
116 DIRECTFB_DEPENDENCIES += imlib2
117 DIRECTFB_CONF_ENV += ac_cv_path_IMLIB2_CONFIG=$(STAGING_DIR)/usr/bin/imlib2-config
118 else
119 DIRECTFB_CONF_OPT += --disable-imlib2
120 endif
122 ifeq ($(BR2_PACKAGE_DIRECTFB_DITHER_RGB16),y)
123 DIRECTFB_CONF_OPT += --with-dither-rgb16=advanced
124 else
125 DIRECTFB_CONF_OPT += --with-dither-rgb16=none
126 endif
128 ifeq ($(BR2_PACKAGE_DIRECTFB_TESTS),y)
129 DIRECTFB_CONF_OPT += --with-tests
130 endif
132 HOST_DIRECTFB_DEPENDENCIES = host-pkgconf host-libpng
133 HOST_DIRECTFB_CONF_OPT = \
134 --disable-debug \
135 --disable-multi \
136 --enable-png \
137 --with-gfxdrivers=none \
138 --with-inputdrivers=none
140 HOST_DIRECTFB_BUILD_CMDS = \
141 $(MAKE) -C $(@D)/tools directfb-csource
143 HOST_DIRECTFB_INSTALL_CMDS = \
144 $(INSTALL) -m 0755 $(@D)/tools/directfb-csource $(HOST_DIR)/usr/bin
146 $(eval $(autotools-package))
147 $(eval $(host-autotools-package))
149 # directfb-csource for the host
150 DIRECTFB_HOST_BINARY = $(HOST_DIR)/usr/bin/directfb-csource