File ChowMatrix.spec of Package ChowMatrix

#
# spec file for package ChowMatrix
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           ChowMatrix
Version:        1.1.0+git0.560cdfb
Release:        0
Summary:        Infintely growable delay matrixing effect
License:        BSD-3-Clause
Group:          Productivity/Multimedia/Sound/
URL:            https://github.com/Chowdhury-DSP/ChowMatrix/
Source0:        https://github.com/Chowdhury-DSP/ChowMatrix/archive/v%{version}.tar.gz#/%{name}-%version.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  lv2-devel
BuildRequires:  libjack-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libXcursor-devel
BuildRequires:  lv2_ttl_generator
BuildRequires:  JUCE6-source
BuildRequires:  cmake

%description

CHOW Matrix is a delay effect, made up of an inifintely growable tree of delay lines, each with individual controls for feedback, panning, distortion, and more.
ChowMatrix is available as a VST, VST3, LV2, and Standalone Application.

%package -n vst-%{name}
Summary:       Infintely growable delay matrixing effect (VST)

%description -n vst-%{name}

CHOW Matrix is a delay effect, made up of an inifintely growable tree of delay lines, each with individual controls for feedback, panning, distortion, and more.
ChowMatrix is available as a VST, VST3, LV2, and Standalone Application.

%package -n vst3-%{name}
Summary:        Infintely growable delay matrixing effect (VST3)

%description -n vst3-%{name}

CHOW Matrix is a delay effect, made up of an inifintely growable tree of delay lines, each with individual controls for feedback, panning, distortion, and more.
ChowMatrix is available as a VST, VST3, LV2, and Standalone Application.

%package -n lv2-%{name}
Summary:        Infintely growable delay matrixing effect (LV2)

%description -n lv2-%{name}

CHOW Matrix is a delay effect, made up of an inifintely growable tree of delay lines, each with individual controls for feedback, panning, distortion, and more.
ChowMatrix is available as a VST, VST3, LV2, and Standalone Application.

%prep
%setup -q

ln -s %{_prefix}/src/JUCE modules/JUCE
sed -i -e 's~# juce_set_vst2_sdk_path(C:/SDKs/VST_SDK/VST2_SDK/)~juce_set_vst2_sdk_path(%{_prefix}/include)~' CMakeLists.txt
sed -i -e 's/#VST/VST/' CMakeLists.txt
sed -i '/JUCE_USE_CURL=0/a \ \ \ \ JUCE_JACK=1' CMakeLists.txt

%build
%cmake
#  -B cmake-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/lib64/juce -DLV2_TTL_GENERATOR=/usr/bin/lv2_ttl_generator
%cmake_build

%install
mkdir -p %{buildroot}%{_bindir}
install build/ChowMatrix_artefacts/RelWithDebInfo/Standalone/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install build/ChowMatrix_artefacts/RelWithDebInfo/VST/libChowMatrix.so %{buildroot}%{_libdir}/vst/ChowMatrix.so
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/ChowMatrix_artefacts/RelWithDebInfo/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r build/ChowMatrix_artefacts/RelWithDebInfo/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/

%files
%{_bindir}/*
%license LICENSE
%doc README.md
%files -n vst-%{name}
%dir %{_libdir}/vst
%{_libdir}/vst/
%doc README.md
%license LICENSE
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE

%changelog
openSUSE Build Service is sponsored by