* [ITA] ladspa-sdk
@ 2023-09-13 14:30 Takashi Yano
2023-09-14 13:27 ` Jon Turney
0 siblings, 1 reply; 3+ messages in thread
From: Takashi Yano @ 2023-09-13 14:30 UTC (permalink / raw)
To: cygwin-apps
[-- Attachment #1: Type: text/plain, Size: 106 bytes --]
I'd like to adopt the ladspa-sdk package.
Thanks in advance.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
[-- Attachment #2: 1.13-ctor-dtor.patch --]
[-- Type: text/plain, Size: 535 bytes --]
--- origsrc/ladspa_sdk/src/ladspa.h 2002-08-07 16:15:12.000000000 -0500
+++ src/ladspa_sdk/src/ladspa.h 2008-10-10 03:13:40.010913300 -0500
@@ -592,6 +592,10 @@
typedef const LADSPA_Descriptor *
(*LADSPA_Descriptor_Function)(unsigned long Index);
+/* required for _init/_fini to be called automatically by dlopen/dlclose */
+__attribute__((constructor)) void _init(void);
+__attribute__((destructor)) void _fini(void);
+
/**********************************************************************/
#ifdef __cplusplus
[-- Attachment #3: ladspa-sdk.cygport --]
[-- Type: text/plain, Size: 904 bytes --]
NAME="ladspa-sdk"
VERSION=1.17
RELEASE=1
CATEGORY="Audio"
SUMMARY="Audio Developers Simple Plugin API"
DESCRIPTION="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."
HOMEPAGE="http://www.ladspa.org/"
SRC_URI="http://www.ladspa.org/download/ladspa_sdk_${VERSION}.tgz"
SRC_DIR="ladspa_sdk_${VERSION}"
PATCH_URI="
1.13-ctor-dtor.patch
"
src_compile() {
lndirs
cd ${B}/src
cygmake targets \
CC="${CC}" \
CFLAGS="${CFLAGS} -I${S}/src" \
CXXFLAGS="${CXXFLAGS}" \
LD='$(CC) $(LDFLAGS)' \
LDFLAGS="-Wl,--enable-auto-image-base"
}
src_test() {
cd ${B}/src
cygtest
}
src_install() {
cd ${B}/src
cyginstall MKDIR_P="mkdir -p"
doenv LADSPA_PATH "/usr/lib/ladspa"
}
DOCS="doc/COPYING doc/*.html"
[-- Attachment #4: ladspa-sdk-1.17-1.src.patch --]
[-- Type: text/plain, Size: 575 bytes --]
--- origsrc/ladspa_sdk_1.17/src/Makefile 2021-09-10 17:44:43.000000000 +0900
+++ src/ladspa_sdk_1.17/src/Makefile 2023-09-11 23:23:46.944000300 +0900
@@ -4,9 +4,9 @@
#
# Change these if you want to install somewhere else.
-INSTALL_PLUGINS_DIR = /usr/lib/ladspa/
-INSTALL_INCLUDE_DIR = /usr/include/
-INSTALL_BINARY_DIR = /usr/bin/
+INSTALL_PLUGINS_DIR = ${DESTDIR}/usr/lib/ladspa/
+INSTALL_INCLUDE_DIR = ${DESTDIR}/usr/include/
+INSTALL_BINARY_DIR = ${DESTDIR}/usr/bin/
###############################################################################
#
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ITA] ladspa-sdk
2023-09-13 14:30 [ITA] ladspa-sdk Takashi Yano
@ 2023-09-14 13:27 ` Jon Turney
2023-09-15 3:36 ` Takashi Yano
0 siblings, 1 reply; 3+ messages in thread
From: Jon Turney @ 2023-09-14 13:27 UTC (permalink / raw)
To: Takashi Yano, cygwin-apps
On 13/09/2023 15:30, Takashi Yano via Cygwin-apps wrote:
> I'd like to adopt the ladspa-sdk package.
> Thanks in advance.
>
>
>
> ladspa-sdk.cygport
>
> NAME="ladspa-sdk"
> VERSION=1.17
> RELEASE=1
> CATEGORY="Audio"
> SUMMARY="Audio Developers Simple Plugin API"
> DESCRIPTION="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."
> HOMEPAGE="http://www.ladspa.org/"
Ideally this would have LICENSE as well.
From looking at https://repology.org/project/ladspa-sdk/information I'd
guess "LGPL-2.1-or-later"?
> SRC_URI="http://www.ladspa.org/download/ladspa_sdk_${VERSION}.tgz"
> SRC_DIR="ladspa_sdk_${VERSION}"
> PATCH_URI="
> 1.13-ctor-dtor.patch
> "
> src_compile() {
> lndirs
> cd ${B}/src
> cygmake targets \
> CC="${CC}" \
> CFLAGS="${CFLAGS} -I${S}/src" \
> CXXFLAGS="${CXXFLAGS}" \
Looks like CXXFLAGS needs -I${S}/src, otherwise I get
plugins/sine.cpp:24:10: fatal error: ladspa.h: No such file or directory
> LD='$(CC) $(LDFLAGS)' \
> LDFLAGS="-Wl,--enable-auto-image-base"
> }
>
> src_test() {
> cd ${B}/src
> cygtest
> }
>
> src_install() {
> cd ${B}/src
> cyginstall MKDIR_P="mkdir -p"
>
> doenv LADSPA_PATH "/usr/lib/ladspa"
> }
> DOCS="doc/COPYING doc/*.html"
Otherwise looks good.
I added this to your packages.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ITA] ladspa-sdk
2023-09-14 13:27 ` Jon Turney
@ 2023-09-15 3:36 ` Takashi Yano
0 siblings, 0 replies; 3+ messages in thread
From: Takashi Yano @ 2023-09-15 3:36 UTC (permalink / raw)
To: cygwin-apps
Thanks for the advice.
On Thu, 14 Sep 2023 14:27:11 +0100
Jon Turney wrote:
> Ideally this would have LICENSE as well.
>
> From looking at https://repology.org/project/ladspa-sdk/information I'd
> guess "LGPL-2.1-or-later"?
Added.
> On 13/09/2023 15:30, Takashi Yano via Cygwin-apps wrote:
> > src_compile() {
> > lndirs
> > cd ${B}/src
> > cygmake targets \
> > CC="${CC}" \
> > CFLAGS="${CFLAGS} -I${S}/src" \
> > CXXFLAGS="${CXXFLAGS}" \
>
> Looks like CXXFLAGS needs -I${S}/src, otherwise I get
>
> plugins/sine.cpp:24:10: fatal error: ladspa.h: No such file or directory
Indeed.
I did not notice that because I had installed previous ladspa-sdk package
which installs /usr/include/ladspa.h.
Thanks!
--
Takashi Yano <takashi.yano@nifty.ne.jp>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-15 3:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-13 14:30 [ITA] ladspa-sdk Takashi Yano
2023-09-14 13:27 ` Jon Turney
2023-09-15 3:36 ` Takashi Yano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).