[Pkg-bitcoin-commits] [cgminer] 01/04: Only build for klondikes on linux architectures

Scott Sheridan Howard showard at moszumanska.debian.org
Sun Nov 24 23:23:57 UTC 2013


This is an automated email from the git hooks/post-receive script.

showard pushed a commit to branch master
in repository cgminer.

commit f28369a0e43c5c5c83087c3be60d74e38a53f2d5
Author: Scott Howard <showard314 at gmail.com>
Date:   Sun Nov 24 18:15:28 2013 -0500

    Only build for klondikes on linux architectures
---
 debian/changelog |  6 ++++++
 debian/rules     | 31 +++++++++++++++++--------------
 2 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index cf4bbd1..acfc144 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cgminer (3.8.1-2) UNRELEASED; urgency=low
+
+  * Only build for klondikes on linux architectures
+
+ -- Scott Howard <showard at debian.org>  Sun, 24 Nov 2013 18:13:57 -0500
+
 cgminer (3.8.1-1) unstable; urgency=low
 
   * New upstream release
diff --git a/debian/rules b/debian/rules
index 10b6bd0..b4cabfb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,22 @@
 #export DH_VERBOSE=1
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
+DRIVERS=--enable-avalon \
+         --enable-bitforce \
+         --enable-icarus \
+         --enable-scrypt \
+         --enable-modminer \
+         --enable-bflsc \
+         --enable-bitfury \
+         --enable-hashfast \
+         --disable-silent-rules \
+         --enable-knc \
+         --enable-bab
+
+ifeq ($(DEB_BUILD_ARCH_OS),linux)
+DRIVERS+= --enable-klondike
+endif
 
 %:
 	dh $@ --with autoreconf
@@ -16,20 +32,7 @@ override_dh_auto_configure:
 	#mv ADL_SDK/include/* ADL_SDK/;
 	#rm -rf ADL_SDK/adl.zip ADL_SDK/include/;
 	## Can't enable "--enable-ztex" as ztex licensed under GPL-2 while most files are GPL-3+
-	dh_auto_configure -- --bindir=/usr/lib/cgminer \
-                             --enable-avalon \
-                             --enable-bitforce \
-                             --enable-icarus \
-                             --enable-scrypt \
-                             --enable-modminer \
-                             --enable-bflsc \
-                             --enable-bitfury \
-                             --enable-hashfast \
-                             --disable-silent-rules \
-                             --enable-knc \
-                             --enable-bab \
-                             --enable-klondike \
-                             --with-system-libusb
+	dh_auto_configure -- --bindir=/usr/lib/cgminer $(DRIVERS) --with-system-libusb
 
 override_dh_auto_build:
 	dh_auto_build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/cgminer.git



More information about the Pkg-bitcoin-commits mailing list