summaryrefslogtreecommitdiff
path: root/network/bitcoin/bitcoin.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/bitcoin/bitcoin.SlackBuild')
-rw-r--r--network/bitcoin/bitcoin.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/network/bitcoin/bitcoin.SlackBuild b/network/bitcoin/bitcoin.SlackBuild
index 9a66f865a7..4234ef00eb 100644
--- a/network/bitcoin/bitcoin.SlackBuild
+++ b/network/bitcoin/bitcoin.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bitcoin
-VERSION=${VERSION:-0.7.1}
+VERSION=${VERSION:-0.7.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,6 +54,9 @@ else
LIBDIRSUFFIX=""
fi
+# Detect miniupnpc
+if [ -x /usr/bin/upnpc ]; then UPNP=1; else UPNP="-"; fi
+
set -e
rm -rf $PKG
@@ -75,7 +78,7 @@ cd src
qmake \
QMAKE_CFLAGS+="$SLKCFLAGS" \
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
- "USE_UPNP=-" \
+ "USE_UPNP=$UPNP" \
USE_SSL=1 \
USE_QRCODE=1
@@ -84,8 +87,10 @@ make
# build bitcoind
cd src
- # disable UPNP(this would require miniupnpc)
- sed -i 's/USE_UPNP:=0/USE_UPNP:=/g' makefile.unix
+ if [ "$UPNP" = "-" ]; then
+ # disable UPNP
+ sed -i 's/USE_UPNP:=0/USE_UPNP:=/g' makefile.unix
+ fi
# disable static linking, not supported by boost in slackware
sed -i 's/Bstatic/Bdynamic/g' makefile.unix