[packages/DISTRHO-Ports] new package

jajcus jajcus at pld-linux.org
Mon Mar 11 21:45:22 CET 2019


commit 24867a495ba289278c1d252ca9cdda051ebdc3bb
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Mon Mar 11 21:45:01 2019 +0100

    new package

 DISTRHO-Ports.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++
 premake.patch      | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 155 insertions(+)
---
diff --git a/DISTRHO-Ports.spec b/DISTRHO-Ports.spec
new file mode 100644
index 0000000..e3ab547
--- /dev/null
+++ b/DISTRHO-Ports.spec
@@ -0,0 +1,73 @@
+%define	_ver	%(echo %{version} | tr . -)
+Summary:	DISTRHO audio plugins
+Name:		DISTRHO-Ports
+Version:	2018.04.16
+Release:	2
+License:	GPL v2, LGPL v3
+Group:		Applications/Sound
+#Source0Download: https://github.com/DISTRHO/DISTRHO-Ports/releases
+Source0:	https://github.com/DISTRHO/DISTRHO-Ports/archive/%{_ver}/%{name}-%{_ver}.tar.gz
+# Source0-md5:	3c4769f4f05f43d32adec42b623ec7f5
+Patch0:		premake.patch
+URL:		http://plugin.org.uk/
+BuildRequires:	Mesa-libGL-devel
+BuildRequires:	alsa-lib-devel
+BuildRequires:	freetype-devel
+BuildRequires:	pkgconfig
+BuildRequires:	premake3
+BuildRequires:	xorg-lib-libX11-devel
+BuildRequires:	xorg-lib-libXext-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_noautoprovfiles	%{_libdir}/(lv2|vst)
+
+%description
+Set of closs-platfrom audio plugins from the DISTRHO project.:
+
+%package lv2
+Summary:	DISTRHO audio LV2 plugins
+Group:		Applications/Sound
+
+%description lv2
+Set of closs-platfrom audio plugins from the DISTRHO project.:
+
+%package vst
+Summary:	DISTRHO audio VST plugins
+Group:		Applications/Sound
+
+%description vst
+Set of closs-platfrom audio plugins from the DISTRHO project.:
+
+%prep
+%setup -q -n %{name}-%{_ver}
+%patch0 -p1
+
+%build
+CXXFLAGS="%{rpmcppflags} %{rpmcxxflags}" \
+LDFLAGS="%{rpmldflags}" \
+scripts/premake-update.sh linux
+
+%{__make} \
+	verbose=1 \
+	CC="%{__cc}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_libdir}
+%{__cp} -a bin/* $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files lv2
+%defattr(644,root,root,755)
+%doc README.md
+%dir %{_libdir}/lv2/*.lv2
+%{_libdir}/lv2/*.lv2/*.ttl
+%attr(755,root,root) %{_libdir}/lv2/*.lv2/*.so
+
+%files vst
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_libdir}/vst/*.so
diff --git a/premake.patch b/premake.patch
new file mode 100644
index 0000000..7e9fe4f
--- /dev/null
+++ b/premake.patch
@@ -0,0 +1,82 @@
+diff -dur DISTRHO-Ports-2018-04-16.orig/scripts/make-project.lua DISTRHO-Ports-2018-04-16/scripts/make-project.lua
+--- DISTRHO-Ports-2018-04-16.orig/scripts/make-project.lua	2018-04-04 18:45:01.000000000 +0200
++++ DISTRHO-Ports-2018-04-16/scripts/make-project.lua	2019-03-11 20:48:26.904577892 +0100
+@@ -23,14 +23,6 @@
+   package.config["Release"].target       = project.name
+   package.config["Release"].objdir       = "intermediate/Release"
+   package.config["Release"].defines      = { "NDEBUG=1" }
+-  package.config["Release"].buildoptions = { "-O3", "-fvisibility=hidden", "-fvisibility-inlines-hidden" }
+-
+-  if (not (os.getenv("NOOPTIMIZATIONS") or os.getenv("LINUX_EMBED"))) then
+-    package.config["Release"].buildoptions = {
+-        package.config["Release"].buildoptions,
+-        "-mtune=generic", "-msse", "-msse2"
+-    }
+-  end
+ 
+   if (not macosx) then
+     package.config["Release"].buildoptions = { package.config["Release"].buildoptions, "-fdata-sections", "-ffunction-sections" }
+@@ -155,9 +147,6 @@
+ function make_juce_lv2_project(name)
+   package = make_plugin_project(name, "LV2")
+ 
+-  package.config["Release"].links = { "juce" }
+-  package.config["Debug"].links   = { "juce_debug" }
+-
+   if (windows) then
+     package.links       = { "comdlg32", "gdi32", "imm32", "ole32", "oleaut32", "shlwapi", "uuid", "version", "winmm", "wininet", "ws2_32" }
+   elseif (macosx) then
+@@ -167,14 +156,7 @@
+   elseif (os.getenv("LINUX_EMBED")) then
+     package.links       = { "dl", "rt" }
+   else
+-    package.links       = { "dl", "rt" }
+-    package.linkoptions = { package.linkoptions, "`pkg-config --libs freetype2 x11 xext`" }
+-
+-    if (name == "drumsynth" or name == "eqinox" or name == "Dexed") then
+-      package.linkoptions = { package.linkoptions, "`pkg-config --libs alsa`" }
+-    else
+-      package.config["Debug"].linkoptions = { "`pkg-config --libs alsa`" }
+-    end
++    package.links       = { "juce", "freetype", "Xext", "X11", "asound", "dl", "rt" }
+   end
+ 
+   return package
+@@ -183,9 +165,6 @@
+ function make_juce_vst_project(name)
+   package = make_plugin_project(name, "VST")
+ 
+-  package.config["Release"].links = { "juce" }
+-  package.config["Debug"].links   = { "juce_debug" }
+-
+   package.buildoptions = {
+     package.buildoptions,
+     "-Wno-multichar",
+@@ -204,14 +183,7 @@
+                             "-framework Accelerate", "-framework AudioToolbox", "-framework AudioUnit", "-framework Carbon", "-framework Cocoa",
+                             "-framework CoreAudio", "-framework CoreAudioKit", "-framework CoreMIDI", "-framework IOKit", "-framework QuartzCore", "-framework WebKit" }
+   else
+-    package.links       = { "dl", "rt" }
+-    package.linkoptions = { package.linkoptions, "`pkg-config --libs freetype2 x11 xext`" }
+-
+-    if (name == "drumsynth" or name == "eqinox" or name == "Dexed") then
+-      package.linkoptions = { package.linkoptions, "`pkg-config --libs alsa`" }
+-    else
+-      package.config["Debug"].linkoptions = { "`pkg-config --libs alsa`" }
+-    end
++    package.links       = {"juce", "freetype", "Xext", "X11", "asound", "dl", "rt" }
+   end
+ 
+   return package
+diff -dur DISTRHO-Ports-2018-04-16.orig/scripts/premake-update.sh DISTRHO-Ports-2018-04-16/scripts/premake-update.sh
+--- DISTRHO-Ports-2018-04-16.orig/scripts/premake-update.sh	2018-04-04 18:45:01.000000000 +0200
++++ DISTRHO-Ports-2018-04-16/scripts/premake-update.sh	2019-03-11 20:45:05.191471317 +0100
+@@ -28,7 +28,7 @@
+ 
+ run_premake()
+ {
+-  premake --os $1 --target gnu --cc gcc
++  premake --verbose --os $1 --target gnu --cc gcc
+ 
+   if [ $MAC == 1 ]; then
+     sed -i -e "s|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS) \$(TARGET_ARCH)|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS)|" `find . -name \*.make`
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/DISTRHO-Ports.git/commitdiff/24867a495ba289278c1d252ca9cdda051ebdc3bb



More information about the pld-cvs-commit mailing list