forked from mirrors/nixpkgs
obs-studio-plugins.obs-move-transition: 2.4.3 -> 2.6.4
This commit is contained in:
parent
37bd39839a
commit
ddffb609f5
|
@ -1,34 +0,0 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f6d8fa3..5f0657d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,6 +1,17 @@
|
||||
+if (POLICY CMP0048)
|
||||
+ cmake_policy(SET CMP0048 NEW)
|
||||
+endif (POLICY CMP0048)
|
||||
+
|
||||
project(move-transition VERSION 2.4.3)
|
||||
set(PROJECT_FULL_NAME "Move Transition")
|
||||
|
||||
+include(FindLibobs.cmake)
|
||||
+find_package(LibObs REQUIRED)
|
||||
+
|
||||
+include_directories(
|
||||
+ "${LIBOBS_INCLUDE_DIR}/../plugins/obs-transitions"
|
||||
+ "${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api")
|
||||
+
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_SOURCE_DIR}/version.h)
|
||||
|
||||
set(move-transition_HEADERS
|
||||
@@ -38,4 +49,10 @@ target_link_libraries(move-transition
|
||||
libobs)
|
||||
|
||||
set_target_properties(move-transition PROPERTIES FOLDER "plugins/exeldro")
|
||||
-install_obs_plugin_with_data(move-transition data)
|
||||
+set_target_properties(move-transition PROPERTIES PREFIX "")
|
||||
+
|
||||
+install(TARGETS move-transition
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins)
|
||||
+
|
||||
+install(DIRECTORY data/locale/
|
||||
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/move-transition/locale")
|
|
@ -9,36 +9,27 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "obs-move-transition";
|
||||
version = "2.4.3";
|
||||
version = "2.6.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "exeldro";
|
||||
repo = "obs-move-transition";
|
||||
rev = version;
|
||||
sha256 = "sha256-/6PcNLOnBBqLZHVKMg1tdX9OktcllEEqnL93nXpuXL0=";
|
||||
sha256 = "sha256-+kAdCM5PEFNxKNmJmf2ASTyUKA7xnbMAA7kP/emoaeI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ obs-studio ];
|
||||
|
||||
cmakeFlags = with lib; [
|
||||
"-DLIBOBS_INCLUDE_DIR=${obs-studio.src}/libobs"
|
||||
preConfigure = ''
|
||||
cp ${obs-studio.src}/cmake/external/ObsPluginHelpers.cmake cmake/
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_OUT_OF_TREE=On"
|
||||
"-Wno-dev"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
cp ${obs-studio.src}/cmake/external/FindLibobs.cmake FindLibobs.cmake
|
||||
'';
|
||||
|
||||
patches = [ ./obs-move-transition-use-FindLibobs.cmake.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace move-source-filter.c --replace '<../UI/obs-frontend-api/obs-frontend-api.h>' '<obs-frontend-api.h>'
|
||||
substituteInPlace move-value-filter.c --replace '<../UI/obs-frontend-api/obs-frontend-api.h>' '<obs-frontend-api.h>'
|
||||
substituteInPlace move-transition.c --replace '<../UI/obs-frontend-api/obs-frontend-api.h>' '<obs-frontend-api.h>'
|
||||
substituteInPlace audio-move.c --replace '<../UI/obs-frontend-api/obs-frontend-api.h>' '<obs-frontend-api.h>'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Plugin for OBS Studio to move source to a new position during scene transition";
|
||||
homepage = "https://github.com/exeldro/obs-move-transition";
|
||||
|
|
Loading…
Reference in a new issue