Browse Source

openwrt: Use --with-curses=ncurses to avoid ncursesw dependency

Luke Dashjr 13 years ago
parent
commit
4a40b59263
1 changed files with 4 additions and 2 deletions
  1. 4 2
      openwrt/Makefile

+ 4 - 2
openwrt/Makefile

@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 
 
 PKG_NAME:=bfgminer
 PKG_NAME:=bfgminer
 PKG_TITLE:=BFGMiner
 PKG_TITLE:=BFGMiner
-PKG_VERSION:=2.10.5
+PKG_VERSION:=3.0.0
 PKG_RELEASE:=1
 PKG_RELEASE:=1
 
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tbz2
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tbz2
@@ -32,7 +32,7 @@ endef
 define Package/$(PKG_NAME)
 define Package/$(PKG_NAME)
 $(call Package/$(PKG_NAME)/Default)
 $(call Package/$(PKG_NAME)/Default)
 	TITLE:=$(PKG_TITLE) (Bitcoin miner)
 	TITLE:=$(PKG_TITLE) (Bitcoin miner)
-	DEPENDS:=+libc +libcurl +libpthread +jansson +PACKAGE_$(PKG_NAME)_curses:libncursesw +PACKAGE_$(PKG_NAME)_libusb:libusb-1.0
+	DEPENDS:=+libc +libcurl +libpthread +jansson +PACKAGE_$(PKG_NAME)_curses:libncurses +PACKAGE_$(PKG_NAME)_libusb:libusb-1.0
 endef
 endef
 
 
 define Package/$(PKG_NAME)/description
 define Package/$(PKG_NAME)/description
@@ -52,6 +52,8 @@ endef
 
 
 ifndef CONFIG_PACKAGE_$(PKG_NAME)_curses
 ifndef CONFIG_PACKAGE_$(PKG_NAME)_curses
 CONFIGURE_ARGS += --without-curses
 CONFIGURE_ARGS += --without-curses
+else
+CONFIGURE_ARGS += --with-curses=ncurses
 endif
 endif
 
 
 ifndef CONFIG_PACKAGE_$(PKG_NAME)_libusb
 ifndef CONFIG_PACKAGE_$(PKG_NAME)_libusb