xref: /OK3568_Linux_fs/buildroot/package/fluxbox/fluxbox.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# fluxbox
4#
5################################################################################
6
7FLUXBOX_VERSION = 1.3.7
8FLUXBOX_SOURCE = fluxbox-$(FLUXBOX_VERSION).tar.xz
9FLUXBOX_SITE = http://downloads.sourceforge.net/project/fluxbox/fluxbox/$(FLUXBOX_VERSION)
10FLUXBOX_LICENSE = MIT
11FLUXBOX_LICENSE_FILES = COPYING
12
13FLUXBOX_CONF_OPTS = \
14	--x-includes=$(STAGING_DIR)/usr/include/X11 \
15	--x-libraries=$(STAGING_DIR)/usr/lib
16FLUXBOX_DEPENDENCIES = xlib_libX11 $(if $(BR2_PACKAGE_LIBICONV),libiconv)
17
18ifeq ($(BR2_PACKAGE_FREETYPE),y)
19FLUXBOX_CONF_OPTS += --enable-freetype2
20FLUXBOX_DEPENDENCIES += freetype
21else
22FLUXBOX_CONF_OPTS += --disable-freetype2
23endif
24
25ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
26FLUXBOX_CONF_OPTS += --enable-imlib2
27FLUXBOX_DEPENDENCIES += imlib2
28else
29FLUXBOX_CONF_OPTS += --disable-imlib2
30endif
31
32ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y)
33FLUXBOX_CONF_OPTS += --enable-fribidi
34FLUXBOX_DEPENDENCIES += libfribidi
35else
36FLUXBOX_CONF_OPTS += --disable-fribidi
37endif
38
39ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
40FLUXBOX_CONF_OPTS += --enable-xft
41FLUXBOX_DEPENDENCIES += xlib_libXft
42else
43FLUXBOX_CONF_OPTS += --disable-xft
44endif
45
46ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y)
47FLUXBOX_CONF_OPTS += --enable-xrender
48FLUXBOX_DEPENDENCIES += xlib_libXrender
49else
50FLUXBOX_CONF_OPTS += --disable-xrender
51endif
52
53ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
54FLUXBOX_CONF_OPTS += --enable-xpm
55FLUXBOX_DEPENDENCIES += xlib_libXpm
56else
57FLUXBOX_CONF_OPTS += --disable-xpm
58endif
59
60ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
61FLUXBOX_CONF_OPTS += --enable-xinerama
62FLUXBOX_DEPENDENCIES += xlib_libXinerama
63else
64FLUXBOX_CONF_OPTS += --disable-xinerama
65endif
66
67ifeq ($(BR2_PACKAGE_XLIB_LIBXEXT),y)
68FLUXBOX_CONF_OPTS += --enable-xext
69FLUXBOX_DEPENDENCIES += xlib_libXext
70else
71FLUXBOX_CONF_OPTS += --disable-xext
72endif
73
74ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
75FLUXBOX_CONF_OPTS += --enable-xrandr
76FLUXBOX_DEPENDENCIES += xlib_libXrandr
77else
78FLUXBOX_CONF_OPTS += --disable-xrandr
79endif
80
81define FLUXBOX_INSTALL_XSESSION_FILE
82	$(INSTALL) -m 0755 -D package/fluxbox/xsession \
83		$(TARGET_DIR)/root/.xsession
84endef
85
86FLUXBOX_POST_INSTALL_TARGET_HOOKS += FLUXBOX_INSTALL_XSESSION_FILE
87
88$(eval $(autotools-package))
89