I'd like to adopt the ladspa-sdk package. Thanks in advance. -- Takashi Yano <takashi.y...@nifty.ne.jp>
--- 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
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"
--- 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/ ############################################################################### #