aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vobsub2srt
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-02-21 20:06:18 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-21 14:31:07 +0700
commit36dad0dc23b6a65ef0c018172447ab7a4c70180b (patch)
tree4c4d11b2dc2c61db89e6b20d9b9e0df8a61a6bf8 /multimedia/vobsub2srt
parentea1c6894e221ed242ecd9308f0c5cf9779961463 (diff)
multimedia/vobsub2srt: Fix build with newer g++.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/vobsub2srt')
-rw-r--r--multimedia/vobsub2srt/climits.diff11
-rw-r--r--multimedia/vobsub2srt/vobsub2srt.SlackBuild3
2 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/vobsub2srt/climits.diff b/multimedia/vobsub2srt/climits.diff
new file mode 100644
index 0000000000000..e0bdd236adfa1
--- /dev/null
+++ b/multimedia/vobsub2srt/climits.diff
@@ -0,0 +1,11 @@
+diff -Naur VobSub2SRT-1.0pre7.orig/src/vobsub2srt.c++ VobSub2SRT-1.0pre7/src/vobsub2srt.c++
+--- VobSub2SRT-1.0pre7.orig/src/vobsub2srt.c++ 2015-08-31 05:45:47.000000000 +1200
++++ VobSub2SRT-1.0pre7/src/vobsub2srt.c++ 2022-02-21 20:17:27.612072700 +1300
+@@ -30,6 +30,7 @@
+ #include <string>
+ #include <cstdio>
+ #include <vector>
++#include <climits>
+ using namespace std;
+
+ #include "langcodes.h++"
diff --git a/multimedia/vobsub2srt/vobsub2srt.SlackBuild b/multimedia/vobsub2srt/vobsub2srt.SlackBuild
index 9578666de7844..b58b183980410 100644
--- a/multimedia/vobsub2srt/vobsub2srt.SlackBuild
+++ b/multimedia/vobsub2srt/vobsub2srt.SlackBuild
@@ -83,6 +83,9 @@ find -L . \
# patch to build with latest tesseract:
patch -p1 < $CWD/vobsub2srt-c++11.patch
+# fix build with newer g++
+patch -p1 < $CWD/climits.diff
+
mkdir -p build
cd build
cmake \