iprutils: use correct include path for ncurses
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 14 Dec 2014 19:42:39 +0000 (20:42 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 14 Dec 2014 19:47:20 +0000 (20:47 +0100)
The Makefile is hardcoded for /usr/include/ncurses, so override it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Reported-by: Romain Naour <romain.naour@openwide.fr>
package/iprutils/iprutils.mk

index 53516b6b68b1fd64ec96fafaa781d36cd9d0ee0e..35bffa3c3552b49f08b747c4de44ee65a0654a90 100644 (file)
@@ -12,7 +12,8 @@ IPRUTILS_LICENSE = Common Public License Version 1.0
 IPRUTILS_LICENSE_FILES = LICENSE
 
 define IPRUTILS_BUILD_CMDS
-       $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
+       $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+               INCLUDEDIR="-I. $(shell $(STAGING_DIR)/usr/bin/ncurses5-config --cflags)" all
 endef
 
 define IPRUTILS_INSTALL_TARGET_CMDS