Merge pull request #303775 from 3JlOy-PYCCKUi/anilibria-winmaclinux

anilibria-winmaclinux: 1.2.15 -> 1.2.16.1
This commit is contained in:
kirillrdy 2024-04-13 20:09:55 +10:00 committed by GitHub
commit 46e0c9707e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 34 deletions

View File

@ -1,28 +0,0 @@
diff --git a/AniLibria.pro b/AniLibria.pro
index 407dbde..ae69502 100644
--- a/AniLibria.pro
+++ b/AniLibria.pro
@@ -21,17 +21,17 @@ windows {
DEFINES += NO_NEED_STANDART_PLAYER
}
-#unix {
-# LIBS += -lvlc
+unix {
+ LIBS += -lvlc
# INCLUDEPATH += /usr/include/
# DEPENDPATH += /usr/include/
-# INCLUDEPATH += /usr/include/vlc/plugins
-# DEPENDPATH += /usr/include/vlc/plugins
+ INCLUDEPATH += @VLC_PATH@/vlc/plugins
+ DEPENDPATH += @VLC_PATH@/vlc/plugins
-# CONFIG += buildwithvlc
-#}
+ CONFIG += buildwithvlc
+}
buildwithvlc {
DEFINES += USE_VLC_PLAYER

View File

@ -11,23 +11,27 @@
, wrapQtAppsHook
, makeDesktopItem
, copyDesktopItems
, libvlc
, withVLC ? true , libvlc
, withMPV ? true , mpv-unwrapped
}:
mkDerivation rec {
pname = "anilibria-winmaclinux";
version = "1.2.15";
version = "1.2.16.1";
src = fetchFromGitHub {
owner = "anilibria";
repo = "anilibria-winmaclinux";
rev = version;
sha256 = "sha256-pfM3o4H3XJ4ZE0FXVR1k8pc7lr7SOQjKEMWuG9YkvvI=";
hash = "sha256-QQliz/tLeYsWgh/ZAO7FfbApAEqWhWoaQe9030QZxA8=";
};
sourceRoot = "${src.name}/src";
qmakeFlags = [ "PREFIX=${placeholder "out"}" "CONFIG+=unixvlc" ];
qmakeFlags = [ "PREFIX=${placeholder "out"}" ]
++ lib.optionals withVLC [ "CONFIG+=unixvlc" ]
++ lib.optionals withMPV [ "CONFIG+=unixmpv" ];
patches = [
./0001-fix-installation-paths.patch
@ -61,14 +65,15 @@ mkDerivation rec {
qtquickcontrols2
qtwebsockets
qtmultimedia
libvlc
] ++ (with gst_all_1; [
gst-plugins-bad
gst-plugins-good
gst-plugins-base
gst-libav
gstreamer
]);
])
++ lib.optionals withVLC [ libvlc ]
++ lib.optionals withMPV [ mpv-unwrapped.dev ];
desktopItems = [
(makeDesktopItem (rec {