summaryrefslogtreecommitdiff
path: root/net-p2p/qbittorrent/files/patch-configure
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2015-06-11 20:44:34 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2015-06-11 20:44:34 +0000
commitba50b420f758f5b2f16819eda12ef7cb56a53afe (patch)
treeefabb7529415648c98c379ea8ce71871cc2a2bd9 /net-p2p/qbittorrent/files/patch-configure
parentAdd USES+=iconv to fix linker issues on FreeBSD 10 amd64 poudriere jail. (diff)
- Update libtorrent-rasterbar to 1.0.4
- Update qbittorrent 3.2.0 - Use Github masterisite for qbittorrent - Remove STRIP option, it's the default, and can be inhibited with the DEBUG option - Pet some portlint warnings PR: 200108 Submitted by: yuri at rawbw.com
Diffstat (limited to 'net-p2p/qbittorrent/files/patch-configure')
-rw-r--r--net-p2p/qbittorrent/files/patch-configure22
1 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/qbittorrent/files/patch-configure b/net-p2p/qbittorrent/files/patch-configure
new file mode 100644
index 000000000000..596e5583a7a8
--- /dev/null
+++ b/net-p2p/qbittorrent/files/patch-configure
@@ -0,0 +1,22 @@
+--- configure.orig 2015-05-10 01:20:19 UTC
++++ configure
+@@ -4263,7 +4263,7 @@ fi
+ # Detect OS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
+ $as_echo_n "checking whether OS is FreeBSD... " >&6; }
+-if test "x$host_os" = "x*FreeBSD*"; then :
++if expr "$host_os" : ".*freebsd.*" > /dev/null; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ $as_echo "yes" >&6; }
+ LIBS="-lexecinfo $LIBS"
+@@ -5808,8 +5808,8 @@ extract() {
+ return 1
+ fi
+
+- # Convert " -" to "\n" if not between quotes
+- string=$(echo " $*" | $SED -e 's: -:\n:g' -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g")
++ # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
++ string=$(echo " $*" | tr ' -' '\n' | $SED -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[:space:]*//')
+ SAVEIFS=$IFS
+ IFS=$(printf "\n\b")
+ for i in $string; do