Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
ladspa
ladspa.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ladspa.dif of Package ladspa
--- src/makefile | 9 ++++++--- src/plugins/amp.c | 8 ++++---- src/plugins/delay.c | 8 ++++---- src/plugins/filter.c | 8 ++++---- src/plugins/noise.c | 8 ++++---- 5 files changed, 22 insertions(+), 19 deletions(-) --- a/src/makefile +++ b/src/makefile @@ -27,6 +27,9 @@ PROGRAMS = ../bin/analyseplugin \ ../bin/listplugins CC = cc CPP = c++ +LD = cc +MKDIRHIER = mkdir -p +# MKDIRHIER = mkdirhier ############################################################################### # @@ -59,9 +62,9 @@ test: /tmp/test.wav ../snd/noise.wav alw @echo Test complete. install: targets - -mkdirhier $(INSTALL_PLUGINS_DIR) - -mkdirhier $(INSTALL_INCLUDE_DIR) - -mkdirhier $(INSTALL_BINARY_DIR) + -$(MKDIRHIER) $(INSTALL_PLUGINS_DIR) + -$(MKDIRHIER) $(INSTALL_INCLUDE_DIR) + -$(MKDIRHIER) $(INSTALL_BINARY_DIR) cp ../plugins/* $(INSTALL_PLUGINS_DIR) cp ladspa.h $(INSTALL_INCLUDE_DIR) cp ../bin/* $(INSTALL_BINARY_DIR) --- a/src/plugins/amp.c +++ b/src/plugins/amp.c @@ -152,8 +152,8 @@ LADSPA_Descriptor * g_psStereoDescriptor /* _init() is called automatically when the plugin library is first loaded. */ -void -_init() { +static void __attribute__((constructor)) +init() { char ** pcPortNames; LADSPA_PortDescriptor * piPortDescriptors; @@ -335,8 +335,8 @@ deleteDescriptor(LADSPA_Descriptor * psD /*****************************************************************************/ /* _fini() is called automatically when the library is unloaded. */ -void -_fini() { +static void __attribute__ ((destructor)) +fini() { deleteDescriptor(g_psMonoDescriptor); deleteDescriptor(g_psStereoDescriptor); } --- a/src/plugins/delay.c +++ b/src/plugins/delay.c @@ -228,8 +228,8 @@ LADSPA_Descriptor * g_psDescriptor = NUL /* _init() is called automatically when the plugin library is first loaded. */ -void -_init() { +static void __attribute__ ((constructor)) +init() { char ** pcPortNames; LADSPA_PortDescriptor * piPortDescriptors; @@ -322,8 +322,8 @@ _init() { /*****************************************************************************/ /* _fini() is called automatically when the library is unloaded. */ -void -_fini() { +static void __attribute__ ((destructor)) +fini() { long lIndex; if (g_psDescriptor) { free((char *)g_psDescriptor->Label); --- a/src/plugins/filter.c +++ b/src/plugins/filter.c @@ -252,8 +252,8 @@ LADSPA_Descriptor * g_psHPFDescriptor = /* _init() is called automatically when the plugin library is first loaded. */ -void -_init() { +static void __attribute__ ((constructor)) +init() { char ** pcPortNames; LADSPA_PortDescriptor * piPortDescriptors; @@ -431,8 +431,8 @@ deleteDescriptor(LADSPA_Descriptor * psD /*****************************************************************************/ /* _fini() is called automatically when the library is unloaded. */ -void -_fini() { +static void __attribute__ ((destructor)) +fini() { deleteDescriptor(g_psLPFDescriptor); deleteDescriptor(g_psHPFDescriptor); } --- a/src/plugins/noise.c +++ b/src/plugins/noise.c @@ -142,8 +142,8 @@ LADSPA_Descriptor * g_psDescriptor; /* _init() is called automatically when the plugin library is first loaded. */ -void -_init() { +static void __attribute__ ((constructor)) +init() { char ** pcPortNames; LADSPA_PortDescriptor * piPortDescriptors; @@ -219,8 +219,8 @@ _init() { /*****************************************************************************/ /* _fini() is called automatically when the library is unloaded. */ -void -_fini() { +static void __attribute__ ((destructor)) +fini() { long lIndex; if (g_psDescriptor) { free((char *)g_psDescriptor->Label);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor