1 ################################################################################
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
17 --localstatedir
=/var \
18 --disable-explicit-deps \
26 --disable-video4linux \
27 --disable-video4linux2 \
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
38 ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG
),y
)
39 DIRECTFB_CONF_OPT
+= --enable-debug
42 ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE
),y
)
43 DIRECTFB_CONF_OPT
+= --enable-trace
46 ifeq ($(BR2_PACKAGE_XSERVER
),y
)
47 DIRECTFB_CONF_OPT
+= --enable-x11
49 DIRECTFB_CONF_OPT
+= --disable-x11
52 ifeq ($(BR2_PACKAGE_DIRECTFB_UNIQUE
),y
)
53 DIRECTFB_CONF_OPT
+= --enable-unique
55 DIRECTFB_CONF_OPT
+= --disable-unique
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
71 DIRECTFB_CONF_OPT
+= \
72 --with-gfxdrivers
=$(subst $(space
),$(comma
),$(strip $(DIRECTFB_GFX
)))
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
86 ifeq ($(strip $(DIRECTFB_INPUT
)),)
87 DIRECTFB_CONF_OPT
+= --with-inputdrivers
=none
89 DIRECTFB_CONF_OPT
+= \
90 --with-inputdrivers
=$(subst $(space
),$(comma
),$(strip $(DIRECTFB_INPUT
)))
93 ifeq ($(BR2_PACKAGE_DIRECTFB_GIF
),y
)
94 DIRECTFB_CONF_OPT
+= --enable-gif
96 DIRECTFB_CONF_OPT
+= --disable-gif
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
104 DIRECTFB_CONF_OPT
+= --disable-png
107 ifeq ($(BR2_PACKAGE_DIRECTFB_JPEG
),y
)
108 DIRECTFB_CONF_OPT
+= --enable-jpeg
109 DIRECTFB_DEPENDENCIES
+= jpeg
111 DIRECTFB_CONF_OPT
+= --disable-jpeg
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
119 DIRECTFB_CONF_OPT
+= --disable-imlib2
122 ifeq ($(BR2_PACKAGE_DIRECTFB_DITHER_RGB16
),y
)
123 DIRECTFB_CONF_OPT
+= --with-dither-rgb16
=advanced
125 DIRECTFB_CONF_OPT
+= --with-dither-rgb16
=none
128 ifeq ($(BR2_PACKAGE_DIRECTFB_TESTS
),y
)
129 DIRECTFB_CONF_OPT
+= --with-tests
132 HOST_DIRECTFB_DEPENDENCIES
= host-pkgconf host-libpng
133 HOST_DIRECTFB_CONF_OPT
= \
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