aboutsummaryrefslogtreecommitdiff
path: root/multimedia/obs-studio/obs-studio.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2018-08-31 14:18:34 +1000
committerChristoph Willing <chris.willing@linux.com>2018-08-31 14:21:56 +1000
commit1729445a730006f0534ecf608b093d18869ceb00 (patch)
tree5805a22947ce484efce5174137f7a4bbef1d170f /multimedia/obs-studio/obs-studio.SlackBuild
parentad7bdcdbbe50866cecdcb0c4f3aa0ead6ec8407e (diff)
multimedia/obs-studio: Updated for version 22.0.2
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Diffstat (limited to 'multimedia/obs-studio/obs-studio.SlackBuild')
-rw-r--r--multimedia/obs-studio/obs-studio.SlackBuild14
1 files changed, 12 insertions, 2 deletions
diff --git a/multimedia/obs-studio/obs-studio.SlackBuild b/multimedia/obs-studio/obs-studio.SlackBuild
index 422c2552156a..c286551d7f1d 100644
--- a/multimedia/obs-studio/obs-studio.SlackBuild
+++ b/multimedia/obs-studio/obs-studio.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=obs-studio
-VERSION=${VERSION:-22.0.1}
+VERSION=${VERSION:-22.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,6 +70,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Check for mbedtls existence and version suitability (need at least version 2.7.0)
+mbedtls="-DMBEDTLS_LIB=OFF"
+if test -e /usr/include/mbedtls/version.h ; then
+ version_number_line=$(grep MBEDTLS_VERSION_NUMBER /usr/include/mbedtls/version.h)
+ if [ "$?" = "0" ]; then
+ version_number=$(expr substr $(echo $version_number_line | rev | cut -d' ' -f1 | rev) 3 8)
+ if expr $version_number \> 02070000 1>/dev/null ; then mbedtls="" ; fi
+ fi
+fi
+
mkdir -p build
cd build
cmake \
@@ -79,7 +89,7 @@ cd build
-DOBS_MULTIARCH_SUFFIX="$LIBDIRSUFFIX" \
-DOBS_VERSION_OVERRIDE=${VERSION} \
-DUNIX_STRUCTURE=ON \
- -DUSE_SSL=ON \
+ $mbedtls \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG