summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-05-27 23:08:52 +0000
committer Eric Hameleers <alien@slackware.com>2022-05-27 23:08:52 +0000
commitaca5f1b48295c05ea50bc9216211c4a943ec759b (patch)
treef16947afadf7c7c0b4fd2c890c7d854a16e27f83
parentfcb68207d5a2ef44ad8c385c2e399f3814de53d0 (diff)
downloadasb-aca5f1b48295c05ea50bc9216211c4a943ec759b.tar.gz
asb-aca5f1b48295c05ea50bc9216211c4a943ec759b.tar.xz
libtorrent-rasterbar: update to 2.0.6
-rwxr-xr-xlibtorrent-rasterbar/build/libtorrent-rasterbar.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/libtorrent-rasterbar/build/libtorrent-rasterbar.SlackBuild b/libtorrent-rasterbar/build/libtorrent-rasterbar.SlackBuild
index bc940d7a..014f7955 100755
--- a/libtorrent-rasterbar/build/libtorrent-rasterbar.SlackBuild
+++ b/libtorrent-rasterbar/build/libtorrent-rasterbar.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Eric Hameleers, Eindhoven, NL
+# Copyright 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -106,6 +106,8 @@
# * Updated to accompany qbittorrent-4.2.1 in -current.
# 1.2.14-1: 21/nov/2021 by Eric Hameleers <alien@slackware.com>
# * Updated to accompany qbittorrent-4.3.9 in -current.
+# 2.0.6-1: 27/may/2022 by Eric Hameleers <alien@slackware.com>
+# * Updated to accompany qbittorrent-4.4.3.1 in 15.0.
#
# Run 'sh libtorrent-rasterbar.SlackBuild' to build a Slackware package.
# The package (.txz) and .txt file as well as build logs are created in /tmp .
@@ -117,7 +119,7 @@
SRCNAM=libtorrent
PRGNAM=${SRCNAM}-rasterbar
-VERSION=${VERSION:-1.2.14}
+VERSION=${VERSION:-2.0.6}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(nproc) "}
TAG=${TAG:-alien}
@@ -228,17 +230,11 @@ cd ${PRGNAM}-${VERSION}
chown -R root:root .
chmod -R u+w,go+r-w,a+X-s .
-# If your boost libraries ship with separate multi-threaded libraries, use them:
-if [ -f /usr/lib${LIBDIRSUFFIX}/libboost_system-mt.so ]; then
- MT="-mt"
-else
- MT=""
-fi
-
echo Building ...
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
cmake \
+ -DCMAKE_CXX_STANDARD=14 \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
@@ -266,6 +262,10 @@ cd build-${PRGNAM}
done
cd -
+# Fix the pkgconfig file (wth?):
+sed -i $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/${PRGNAM}.pc \
+ -e 's/-l-pthread/-pthread/'
+
# Remove .la files:
find $PKG/usr -type f -name "*.la" -exec rm -f {} \; || true