5f1476e8ee
When building on x86_64 hosts, the configure script will try to add /lib64 from the host to the linker command, which will usually result in failing the ncurses library test, fix this by checking whether we are cross-compiling or not. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 39802
38 lines
826 B
Makefile
38 lines
826 B
Makefile
#
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=dialog
|
|
PKG_VERSION:=1.1-20120706
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
|
PKG_SOURCE_URL:=ftp://invisible-island.net/dialog
|
|
PKG_MD5SUM:=2e538305977178eb085a9859511c299d
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/dialog
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=+libncurses
|
|
TITLE:=Dialog
|
|
URL:=http://invisible-island.net/dialog/
|
|
endef
|
|
|
|
define Package/dialog/description
|
|
A script-interpreter which provides a set of curses widgets.
|
|
endef
|
|
|
|
define Package/dialog/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dialog $(1)/usr/bin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,dialog))
|