xref: /OK3568_Linux_fs/buildroot/package/openbox/openbox.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# openbox
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunOPENBOX_VERSION = 3.6.1
8*4882a593SmuzhiyunOPENBOX_SOURCE = openbox-$(OPENBOX_VERSION).tar.xz
9*4882a593SmuzhiyunOPENBOX_SITE = http://openbox.org/dist/openbox
10*4882a593SmuzhiyunOPENBOX_LICENSE = GPL-2.0+
11*4882a593SmuzhiyunOPENBOX_LICENSE_FILES = COPYING
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOPENBOX_CONF_OPTS = \
14*4882a593Smuzhiyun	--x-includes=$(STAGING_DIR)/usr/include/X11 \
15*4882a593Smuzhiyun	--x-libraries=$(STAGING_DIR)/usr/lib
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunOPENBOX_DEPENDENCIES = xlib_libX11 libxml2 libglib2 pango host-pkgconf
18*4882a593Smuzhiyun
19*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_IMLIB2_X),y)
20*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --enable-imlib2
21*4882a593SmuzhiyunOPENBOX_DEPENDENCIES += imlib2
22*4882a593Smuzhiyunelse
23*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --disable-imlib2
24*4882a593Smuzhiyunendif
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_STARTUP_NOTIFICATION),y)
27*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --enable-startup-notification
28*4882a593SmuzhiyunOPENBOX_DEPENDENCIES += startup-notification
29*4882a593Smuzhiyunelse
30*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --disable-startup-notification
31*4882a593Smuzhiyunendif
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBSM),y)
34*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --enable-session-management
35*4882a593SmuzhiyunOPENBOX_DEPENDENCIES += xlib_libSM
36*4882a593Smuzhiyunelse
37*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --disable-session-management
38*4882a593Smuzhiyunendif
39*4882a593Smuzhiyun
40*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
41*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --enable-xinerama
42*4882a593SmuzhiyunOPENBOX_DEPENDENCIES += xlib_libXinerama
43*4882a593Smuzhiyunelse
44*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --disable-xinerama
45*4882a593Smuzhiyunendif
46*4882a593Smuzhiyun
47*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
48*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --enable-xrandr
49*4882a593SmuzhiyunOPENBOX_DEPENDENCIES += xlib_libXrandr
50*4882a593Smuzhiyunelse
51*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --disable-xrandr
52*4882a593Smuzhiyunendif
53*4882a593Smuzhiyun
54*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y)
55*4882a593SmuzhiyunOPENBOX_DEPENDENCIES += xlib_libXcursor
56*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --enable-xcursor
57*4882a593Smuzhiyunelse
58*4882a593SmuzhiyunOPENBOX_CONF_OPTS += --disable-xcursor
59*4882a593Smuzhiyunendif
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun$(eval $(autotools-package))
62