less: build after busybox
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 26 Jul 2012 19:18:37 +0000 (16:18 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 30 Jul 2012 17:22:43 +0000 (19:22 +0200)
Build less after busybox if it's enabled, since we prefer the full-blown
version over the light one if it's enabled (and busybox would overwrite
the link when built afterwards).

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/less/less.mk

index b758e468ead225e33c63fd1ebc9ca82484bd7ec3..c0ecf207d41fff27ceb2bfb3008f1d6219a47193 100644 (file)
@@ -6,7 +6,8 @@
 
 LESS_VERSION = 444
 LESS_SITE = http://www.greenwoodsoftware.com/less
-LESS_DEPENDENCIES = ncurses
+# Build after busybox, full-blown is better
+LESS_DEPENDENCIES = ncurses $(if $(BR2_PACKAGE_BUSYBOX),busybox)
 
 define LESS_INSTALL_TARGET_CMDS
        $(INSTALL) -m 0755 $(@D)/less $(TARGET_DIR)/usr/bin/less