File ladspa.dif of Package ladspa-devel

--- ladspa_sdk/src/makefile
+++ ladspa_sdk/src/makefile	2002/05/07 10:59:53
@@ -28,6 +28,9 @@
 			../bin/listplugins
 CC		=	cc
 CPP		=	c++
+LD		=	cc
+MKDIRHIER	=	mkdir -p
+# MKDIRHIER	=	mkdirhier
 
 ###############################################################################
 #
@@ -59,7 +62,7 @@
 	play /tmp/test.wav
 
 install:	targets
-	-mkdirhier	$(INSTALL_PLUGINS_DIR)				\
+	-$(MKDIRHIER)	$(INSTALL_PLUGINS_DIR)				\
 			$(INSTALL_INCLUDE_DIR)				\
 			$(INSTALL_BINARY_DIR)
 	cp ../plugins/* $(INSTALL_PLUGINS_DIR)
--- ladspa_sdk/src/plugins/amp.c
+++ ladspa_sdk/src/plugins/amp.c	2002/05/07 12:17:35
@@ -152,8 +152,8 @@
 
 /* _init() is called automatically when the plugin library is first
    loaded. */
-void 
-_init() {
+static void __attribute__((constructor))
+init() {
 
   char ** pcPortNames;
   LADSPA_PortDescriptor * piPortDescriptors;
@@ -333,8 +333,8 @@
 /*****************************************************************************/
 
 /* _fini() is called automatically when the library is unloaded. */
-void
-_fini() {
+static void __attribute__ ((destructor))
+fini() {
   deleteDescriptor(g_psMonoDescriptor);
   deleteDescriptor(g_psStereoDescriptor);
 }
--- ladspa_sdk/src/plugins/delay.c
+++ ladspa_sdk/src/plugins/delay.c	2002/05/07 12:17:09
@@ -228,8 +228,8 @@
 
 /* _init() is called automatically when the plugin library is first
    loaded. */
-void 
-_init() {
+static void __attribute__ ((constructor))
+init() {
 
   char ** pcPortNames;
   LADSPA_PortDescriptor * piPortDescriptors;
@@ -318,8 +318,8 @@
 /*****************************************************************************/
 
 /* _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);
--- ladspa_sdk/src/plugins/filter.c
+++ ladspa_sdk/src/plugins/filter.c	2002/05/07 12:17:53
@@ -252,8 +252,8 @@
 
 /* _init() is called automatically when the plugin library is first
    loaded. */
-void 
-_init() {
+static void __attribute__ ((constructor))
+init() {
 
   char ** pcPortNames;
   LADSPA_PortDescriptor * piPortDescriptors;
@@ -429,8 +429,8 @@
 /*****************************************************************************/
 
 /* _fini() is called automatically when the library is unloaded. */
-void
-_fini() {
+static void __attribute__ ((destructor))
+fini() {
   deleteDescriptor(g_psLPFDescriptor);
   deleteDescriptor(g_psHPFDescriptor);
 }
--- ladspa_sdk/src/plugins/noise.c
+++ ladspa_sdk/src/plugins/noise.c	2002/05/07 12:18:09
@@ -142,8 +142,8 @@
 
 /* _init() is called automatically when the plugin library is first
    loaded. */
-void 
-_init() {
+static void __attribute__ ((constructor))
+init() {
 
   char ** pcPortNames;
   LADSPA_PortDescriptor * piPortDescriptors;
@@ -217,8 +217,8 @@
 /*****************************************************************************/
 
 /* _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);
openSUSE Build Service is sponsored by