feh: xinemara is optional not mandatory
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 12 Sep 2018 17:33:42 +0000 (19:33 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 12 Sep 2018 18:55:15 +0000 (20:55 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/feh/Config.in
package/feh/feh.mk

index 277ec891b33179a27867e7b1c8ace8cc869dfbd7..7a348a150783d6250024ab9fdc3e6428fdf6d003 100644 (file)
@@ -2,7 +2,6 @@ config BR2_PACKAGE_FEH
        bool "feh"
        depends on BR2_PACKAGE_XORG7
        depends on BR2_USE_MMU # fork()
-       select BR2_PACKAGE_XLIB_LIBXINERAMA
        select BR2_PACKAGE_XLIB_LIBXT
        select BR2_PACKAGE_IMLIB2
        select BR2_PACKAGE_IMLIB2_PNG
index a192bfbdb0780733b100ae607718234b9b1038cc..6cfa73b24293ffe39ccbd8adee4b2b7872a9b416 100644 (file)
@@ -7,7 +7,7 @@
 FEH_VERSION = 2.27.1
 FEH_SOURCE = feh-$(FEH_VERSION).tar.bz2
 FEH_SITE = http://feh.finalrewind.org
-FEH_DEPENDENCIES = imlib2 libpng xlib_libXinerama xlib_libXt
+FEH_DEPENDENCIES = imlib2 libpng xlib_libXt
 FEH_LICENSE = MIT
 FEH_LICENSE_FILES = COPYING
 
@@ -18,6 +18,13 @@ else
 FEH_MAKE_OPTS += curl=0
 endif
 
+ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
+FEH_DEPENDENCIES += xlib_libXinemara
+FEH_MAKE_OPTS += xinerama=1
+else
+FEH_MAKE_OPTS += xinerama=0
+endif
+
 define FEH_BUILD_CMDS
        $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
                $(MAKE) $(FEH_MAKE_OPTS) -C $(@D) all