Skip to contentSkip to conversation

fluxbox: fix build against xlib_libXpm

PATCH New James Knight 2 participants 2 messages Jun 18, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fluxbox: fix build against xlib_libXpm

Explicitly configure XPM support based on the library selection provided (BR2_PACKAGE_XLIB_LIBXPM). It has been observed on different hosts that XPM support may or may not be included based off the state of the host's system. One can validate XPM support is included in Fluxbox by using the command fluxbox -info.

---
 package/fluxbox/fluxbox.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/fluxbox/fluxbox.mk +7 -0
index c8e4289..d2e8c89 100644
@@ -22,6 +22,13 @@ else
 FLUXBOX_CONF_OPTS += --disable-imlib2
 endif
 
+ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
+FLUXBOX_CONF_OPTS += --enable-xpm --with-xpm-prefix=$(STAGING_DIR)/usr
+FLUXBOX_DEPENDENCIES += xlib_libXpm
+else
+FLUXBOX_CONF_OPTS += --disable-xpm
+endif
+
 define FLUXBOX_INSTALL_XSESSION_FILE
 	$(INSTALL) -m 0755 -D package/fluxbox/xsession \
 		$(TARGET_DIR)/root/.xsession
Signature · 1 line
1.9.5.msysgit.1
#1 lore raw

PATCH 1/1 fluxbox: fix build against xlib_libXpm

Dear James Knight,

Quoted 10 lines · James Knight

Explicitly configure XPM support based on the library selection provided (BR2_PACKAGE_XLIB_LIBXPM). It has been observed on different hosts that XPM support may or may not be included based off the state of the host's system. One can validate XPM support is included in Fluxbox by using the command fluxbox -info.

---
 package/fluxbox/fluxbox.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Applied, thanks. However, there are lots of optional dependencies in fluxbox that we don't handle correctly yet. At least:

  --disable-xft           disable xft support
  --disable-freetype2     disable freetype2 support
  --disable-xrender       disable xrender support
  --disable-xinerama      disable xinerama support
  --disable-xext          disable Misc X Extension Library support
  --disable-xrandr        disable xrandr support
  --disable-fribidi       disable fribidi support

If you want to send a patch also adding support for all those optional dependencies, or at least explicitly passing --disable-<foo> to avoid automatic detection, it would be useful.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com