Browse Source

openwrt: Download uthash dependency

Luke Dashjr 12 years ago
parent
commit
3c214d74dd
1 changed files with 13 additions and 1 deletions
  1. 13 1
      openwrt/bfgminer/Makefile

+ 13 - 1
openwrt/bfgminer/Makefile

@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bfgminer
 PKG_TITLE:=BFGMiner
-PKG_VERSION:=3.0.2
+PKG_VERSION:=9999
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tbz2
@@ -21,6 +21,12 @@ PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
+define Download/uthash
+	FILE:=v1.9.8
+	URL:=https://codeload.github.com/troydhanson/uthash/tar.gz/
+endef
+$(eval $(call Download,uthash))
+
 define Package/$(PKG_NAME)/Default
 	MAINTAINER:="Luke Dashjr" <luke_openwrt@dashjr.org>
 	SECTION:=utils
@@ -61,9 +67,15 @@ CONFIGURE_ARGS += --disable-x6500 --disable-ztex
 endif
 
 TARGET_CFLAGS += -std=gnu99
+TARGET_CFLAGS += -Iuthash-1.9.8/src
 
 CONFIGURE_ARGS += --without-libudev
 
+define Build/Prepare
+	$(call Build/Prepare/Default)
+	gzip -dc $(DL_DIR)/v1.9.8 | $(HOST_TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
+endef
+
 define Build/Configure
 	# Need to remake configure etc to pick up on cross-compiler libtool
 	( cd $(PKG_BUILD_DIR); NOSUBMODULES=1 ./autogen.sh; )