mirror of
https://github.com/diddlesnaps/makemkv.git
synced 2025-12-23 23:38:38 -05:00
Fix broken build for 1.15.4+
Signed-off-by: Daniel Llewellyn <diddledan@ubuntu.com>
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
diff -ru src/makemkvgui/src/main.cpp b/makemkvgui/src/main.cpp
|
||||
--- src/makemkvgui/src/main.cpp 2018-02-03 23:00:46.000000000 +0000
|
||||
+++ b/makemkvgui/src/main.cpp 2018-02-12 01:40:17.513799372 +0000
|
||||
@@ -51,7 +51,7 @@
|
||||
#endif
|
||||
diff -rU3 a/makemkvgui/src/main.cpp b/makemkvgui/src/main.cpp
|
||||
--- a/makemkvgui/src/main.cpp 2020-12-09 17:33:52.000000000 +0000
|
||||
+++ b/makemkvgui/src/main.cpp 2020-12-10 18:00:40.889517098 +0000
|
||||
@@ -17,8 +17,10 @@
|
||||
|
||||
unsigned int errcode;
|
||||
- if (false==apc.Init('G',"makemkvcon",&errcode))
|
||||
+ if (false==apc.Init('G',":",&errcode))
|
||||
{
|
||||
QMessageBox::critical(NULL,UI_QSTRING(APP_CAPTION_MSG),UI_QSTRING(APP_INIT_FAILED));
|
||||
return 1;
|
||||
#include "mainwnd.h"
|
||||
|
||||
+#if defined(Q_OS_DARWIN) || defined(Q_OS_WIN)
|
||||
#define aversion aversion002
|
||||
extern "C" const unsigned int __cdecl aversion();
|
||||
+#endif
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <objbase.h>
|
||||
|
||||
@@ -110,9 +110,14 @@ parts:
|
||||
makemkv-launch: bin/makemkv-launch
|
||||
stage-packages:
|
||||
- rsync
|
||||
|
||||
patches:
|
||||
source: patches
|
||||
plugin: dump
|
||||
prime: [-*]
|
||||
|
||||
libav:
|
||||
source: https://ffmpeg.org/releases/ffmpeg-4.2.2.tar.xz
|
||||
source: https://ffmpeg.org/releases/ffmpeg-4.3.1.tar.xz
|
||||
plugin: autotools
|
||||
build-packages:
|
||||
- libfdk-aac-dev
|
||||
@@ -185,7 +190,7 @@ parts:
|
||||
- tesseract-ocr
|
||||
|
||||
makemkv-oss:
|
||||
after: [desktop-qt5, libav]
|
||||
after: [patches, desktop-qt5, libav]
|
||||
plugin: autotools
|
||||
build-packages:
|
||||
- curl
|
||||
@@ -208,6 +213,7 @@ parts:
|
||||
echo "$VERSION" > version
|
||||
|
||||
curl --silent --show-error --location "http://www.makemkv.com/download/makemkv-oss-$VERSION.tar.gz" | tar xz --strip-components=1
|
||||
patch -Np1 -i "$SNAPCRAFT_STAGE/patch.diff"
|
||||
override-build: |
|
||||
sed -i 's|Icon=.*|Icon=/usr/share/icons/hicolor/256x256/apps/makemkv.png|' makemkvgui/share/makemkv.desktop
|
||||
snapcraftctl build
|
||||
|
||||
Reference in New Issue
Block a user