From eb12eb9ee400d650673c9f90500b4675d5434675 Mon Sep 17 00:00:00 2001 From: davehome Date: Sun, 23 Oct 2011 04:29:51 +0000 Subject: [PATCH] ladspa-sdk: New package! (Audio plugin SDK) --- srcpkgs/ladspa-sdk/ladspa-sdk-docs.template | 17 +++++++++ .../ladspa-sdk-example-plugins.template | 16 ++++++++ srcpkgs/ladspa-sdk/ladspa-sdk-progs.template | 14 +++++++ srcpkgs/ladspa-sdk/template | 38 +++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 srcpkgs/ladspa-sdk/ladspa-sdk-docs.template create mode 100644 srcpkgs/ladspa-sdk/ladspa-sdk-example-plugins.template create mode 100644 srcpkgs/ladspa-sdk/ladspa-sdk-progs.template create mode 100644 srcpkgs/ladspa-sdk/template diff --git a/srcpkgs/ladspa-sdk/ladspa-sdk-docs.template b/srcpkgs/ladspa-sdk/ladspa-sdk-docs.template new file mode 100644 index 00000000000..15783b37f7c --- /dev/null +++ b/srcpkgs/ladspa-sdk/ladspa-sdk-docs.template @@ -0,0 +1,17 @@ +# Template file for 'ladspa-sdk-docs'. +# +short_desc="${short_desc} (Documentation)" +long_desc="${long_desc} + + This package contains the HTML documentation + to be installed in /usr/share/doc/ladspa." + +Add_dependency run ladspa-sdk + +do_install() +{ + vmkdir usr/share/doc + cd ${wrksrc}/doc && rm ladspa.h.txt && \ + ln -s /usr/include/ladspa.h ladspa.h.txt + vcopy ${wrksrc}/doc usr/share/doc/ladspa +} diff --git a/srcpkgs/ladspa-sdk/ladspa-sdk-example-plugins.template b/srcpkgs/ladspa-sdk/ladspa-sdk-example-plugins.template new file mode 100644 index 00000000000..0ba12e67231 --- /dev/null +++ b/srcpkgs/ladspa-sdk/ladspa-sdk-example-plugins.template @@ -0,0 +1,16 @@ +# Template file for 'ladspa-sdk-example-plugins'. +# +short_desc="${short_desc} (Example plugins)" +long_desc="${long_desc} + + This package contains the example plugins." + +Add_dependency run glibc +Add_dependency run libgcc +Add_dependency run libstdc++ + +do_install() +{ + vmkdir usr/lib/ladspa + vcopy "${wrksrc}/plugins/*.so*" usr/lib/ladspa +} diff --git a/srcpkgs/ladspa-sdk/ladspa-sdk-progs.template b/srcpkgs/ladspa-sdk/ladspa-sdk-progs.template new file mode 100644 index 00000000000..baa2182ade2 --- /dev/null +++ b/srcpkgs/ladspa-sdk/ladspa-sdk-progs.template @@ -0,0 +1,14 @@ +# Template file for 'ladspa-sdk-progs'. +# +short_desc="${short_desc} (Example programs)" +long_desc="${long_desc} + + This package contains the example programs." + +Add_dependency run glibc + +do_install() +{ + vmkdir usr + vcopy ${wrksrc}/bin usr +} diff --git a/srcpkgs/ladspa-sdk/template b/srcpkgs/ladspa-sdk/template new file mode 100644 index 00000000000..390c184601a --- /dev/null +++ b/srcpkgs/ladspa-sdk/template @@ -0,0 +1,38 @@ +# Template file for 'ladspa-sdk' +pkgname=ladspa-sdk +version=1.13 +distfiles="http://www.ladspa.org/download/ladspa_sdk.tgz" +build_style=custom-install +short_desc="Linux Audio Developer's Simple Plugin API (LADSPA)" +maintainer="davehome " +homepage="http://www.ladspa.org/" +license="LGPL-2.1" +checksum=b5ed3f4f253a0f6c1b7a1f4b8cf62376ca9f51d999650dd822650c43852d306b +long_desc=" + There is a large number of synthesis packages in use or development on the + Linux platform at this time. The Linux Audio Developer's Simple Plugin API + (LADSPA) attempts to give programmers the ability to write simple plugin + audio processors in C/C++ and link them dynamically against a range of host + applications. + + Definitive technical documentation on LADSPA plugins for both host and plugin + writers is contained within copious comments in the ladspa.h header file." + +subpackages="$pkgname-docs $pkgname-example-plugins $pkgname-progs" + +wrksrc=ladspa_sdk + +Add_dependency run glibc +Add_dependency build libsndfile-progs +Add_dependency build libstdc++ + +do_build() +{ + make -C src +} + +do_install() +{ + vmkdir usr/include + vcopy src/ladspa.h usr/include +}