Browse Source

Merge branch 'stratumsrv' into bfgminer

Luke Dashjr 12 years ago
parent
commit
81311cf3a6
1 changed files with 12 additions and 2 deletions
  1. 12 2
      openwrt/bfgminer/Makefile

+ 12 - 2
openwrt/bfgminer/Makefile

@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bfgminer
 PKG_TITLE:=BFGMiner
-PKG_VERSION:=3.2.1
+PKG_VERSION:=9999
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tbz2
@@ -38,7 +38,7 @@ endef
 define Package/$(PKG_NAME)
 $(call Package/$(PKG_NAME)/Default)
 	TITLE:=$(PKG_TITLE) (Bitcoin miner)
-	DEPENDS:=+libc +libcurl +libpthread +jansson +PACKAGE_$(PKG_NAME)_curses:libncurses +PACKAGE_$(PKG_NAME)_libmicrohttpd:libmicrohttpd +PACKAGE_$(PKG_NAME)_libusb:libusb-1.0
+	DEPENDS:=+libc +libcurl +libpthread +jansson +PACKAGE_$(PKG_NAME)_libevent:libevent2 +PACKAGE_$(PKG_NAME)_curses:libncurses +PACKAGE_$(PKG_NAME)_libmicrohttpd:libmicrohttpd +PACKAGE_$(PKG_NAME)_libusb:libusb-1.0
 endef
 
 define Package/$(PKG_NAME)/description
@@ -50,6 +50,10 @@ config PACKAGE_$(PKG_NAME)_curses
 	bool "Build with curses TUI support"
 	depends on PACKAGE_$(PKG_NAME)
 	default y
+config PACKAGE_$(PKG_NAME)_libevent
+	bool "Build with stratum server support"
+	depends on PACKAGE_$(PKG_NAME)
+	default y
 config PACKAGE_$(PKG_NAME)_libmicrohttpd
 	bool "Build with getwork server support (Block Erupter blades)"
 	depends on PACKAGE_$(PKG_NAME)
@@ -66,6 +70,12 @@ else
 CONFIGURE_ARGS += --with-curses=ncurses
 endif
 
+ifndef CONFIG_PACKAGE_$(PKG_NAME)_libevent
+CONFIGURE_ARGS += --without-libevent
+else
+CONFIGURE_ARGS += --with-libevent
+endif
+
 ifndef CONFIG_PACKAGE_$(PKG_NAME)_libmicrohttpd
 CONFIGURE_ARGS += --without-libmicrohttpd
 else