[packages/OpenSceneGraph] - bcond to disable ffmpeg support, rel 2
baggins
baggins at pld-linux.org
Sat Nov 4 14:43:49 CET 2023
commit a6dfb7c3640ce6b64aaf92c55e8ac1f2aa5d0578
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Nov 4 13:54:47 2023 +0100
- bcond to disable ffmpeg support, rel 2
OpenSceneGraph.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/OpenSceneGraph.spec b/OpenSceneGraph.spec
index 3088ddf..0351c5f 100644
--- a/OpenSceneGraph.spec
+++ b/OpenSceneGraph.spec
@@ -1,13 +1,14 @@
# TODO: nvtt
#
# Conditional build:
-%bcond_with fbx # Autodesk FBX SDK support (proprietary)
+%bcond_with fbx # Autodesk FBX SDK support (proprietary)
+%bcond_with ffmpeg # FFmpeg support, needs ffmpeg < 5
Summary: Open Scene Graph - real-time visualization library
Summary(pl.UTF-8): Open Scene Graph - biblioteka do wizualizacji
Name: OpenSceneGraph
Version: 3.6.5
-Release: 1
+Release: 2
License: OpenSceneGraph Public Licence (based on LGPL with exceptions)
Group: X11/Libraries
#Source0Download: https://github.com/openscenegraph/OpenSceneGraph/releases
@@ -40,7 +41,7 @@ BuildRequires: collada-dom-devel
BuildRequires: curl-devel
BuildRequires: dcmtk-devel
%{?with_fbx:BuildRequires: fbxsdk-devel}
-BuildRequires: ffmpeg-devel
+%{?with_ffmpeg:BuildRequires: ffmpeg-devel}
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel >= 2
BuildRequires: gdal-devel
@@ -136,6 +137,7 @@ cd build
%if "%{_lib}" == "libx32"
-DLIB_POSTFIX=x32 \
%endif
+ %{!?with_ffmpeg:-DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=1} \
-DOSG_USE_LOCAL_LUA_SOURCE=OFF
%{__make}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/OpenSceneGraph.git/commitdiff/a6dfb7c3640ce6b64aaf92c55e8ac1f2aa5d0578
More information about the pld-cvs-commit
mailing list