package/mc: add optional dependency to gmp
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 12 Apr 2020 08:29:59 +0000 (10:29 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 12 Apr 2020 08:41:27 +0000 (10:41 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/mc/mc.mk

index 24f6ac36ac1c9efcadf175d5f611e4a5ba7b363f..52b3a4b48fae17fe68683cd89d30feb7713779d2 100644 (file)
@@ -11,6 +11,13 @@ MC_LICENSE = GPL-3.0+
 MC_LICENSE_FILES = COPYING
 MC_DEPENDENCIES = libglib2 host-pkgconf
 
+ifeq ($(BR2_PACKAGE_GMP),y)
+MC_CONF_OPTS += --with-gpm-mouse
+MC_DEPENDENCIES += gpm
+else
+MC_CONF_OPTS += --without-gpm-mouse
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSSH2),y)
 MC_CONF_OPTS += --enable-vfs-sftp
 MC_DEPENDENCIES += libssh2