rebuilding

This commit is contained in:
Thomas Vander Stichele 2006-09-16 16:29:40 +00:00
parent 4f27823dff
commit d2173ae787
3 changed files with 109 additions and 9 deletions

95
ladspa-1.12-gcc41.patch Normal file
View File

@ -0,0 +1,95 @@
--- ladspa_sdk/src/plugins/sine.cpp.bak 2002-07-06 19:23:17.000000000 +0200
+++ ladspa_sdk/src/plugins/sine.cpp 2006-06-07 12:24:33.677978128 +0200
@@ -92,11 +92,36 @@
}
friend LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *,
+ unsigned long SampleRate);
+
+ friend void connectPortToSineOscillator(LADSPA_Handle Instance,
+ unsigned long Port,
+ LADSPA_Data * DataLocation);
+
+ friend void activateSineOscillator(void * pvHandle);
+
+ friend void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance,
+ unsigned long SampleCount);
+
+ friend void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance,
+ unsigned long SampleCount);
+
+ friend void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance,
+ unsigned long SampleCount);
+
+ friend void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance,
+ unsigned long SampleCount);
+
+ friend void cleanupSineOscillator(void *pvHandle);
+
+};
+
+ LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *,
unsigned long SampleRate) {
return new SineOscillator(SampleRate);
}
- friend void connectPortToSineOscillator(LADSPA_Handle Instance,
+ void connectPortToSineOscillator(LADSPA_Handle Instance,
unsigned long Port,
LADSPA_Data * DataLocation) {
switch (Port) {
@@ -112,11 +137,11 @@
}
}
- friend void activateSineOscillator(void * pvHandle) {
+ void activateSineOscillator(void * pvHandle) {
((SineOscillator *)pvHandle)->m_lPhase = 0;
}
- friend void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance,
+ void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance,
unsigned long SampleCount) {
SineOscillator * poSineOscillator = (SineOscillator *)Instance;
for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
@@ -133,7 +158,7 @@
}
}
- friend void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance,
+ void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance,
unsigned long SampleCount) {
SineOscillator * poSineOscillator = (SineOscillator *)Instance;
LADSPA_Data fAmplitude = *(poSineOscillator->m_pfAmplitude);
@@ -151,7 +176,7 @@
}
}
- friend void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance,
+ void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance,
unsigned long SampleCount) {
SineOscillator * poSineOscillator = (SineOscillator *)Instance;
poSineOscillator->setPhaseStepFromFrequency
@@ -165,7 +190,7 @@
}
}
- friend void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance,
+ void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance,
unsigned long SampleCount) {
SineOscillator * poSineOscillator = (SineOscillator *)Instance;
LADSPA_Data fAmplitude = *(poSineOscillator->m_pfAmplitude);
@@ -180,12 +205,10 @@
}
}
- friend void cleanupSineOscillator(void *pvHandle) {
+ void cleanupSineOscillator(void *pvHandle) {
delete (SineOscillator *)pvHandle;
}
-};
-
/*****************************************************************************/
typedef char * char_ptr;

View File

@ -1,6 +1,6 @@
Name: ladspa Name: ladspa
Version: 1.12 Version: 1.12
Release: 6%{?dist} Release: 7%{?dist}
Summary: LADSPA SDK, example plug-ins and tools Summary: LADSPA SDK, example plug-ins and tools
@ -8,6 +8,7 @@ Group: System Environment/Libraries
License: LGPL License: LGPL
URL: http://www.ladspa.org/ URL: http://www.ladspa.org/
Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz
Patch: ladspa-1.12-gcc41.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl BuildRequires: perl
@ -37,7 +38,8 @@ header file.
%prep %prep
%setup -q -n ladspa_sdk %setup -q -n ladspa_sdk
# resspect RPM_OPT_FLAGS %patch -p1
# respect RPM_OPT_FLAGS
perl -pi -e 's/^(CFLAGS.*)-O3(.*)/$1\$\(RPM_OPT_FLAGS\)$2/' src/makefile perl -pi -e 's/^(CFLAGS.*)-O3(.*)/$1\$\(RPM_OPT_FLAGS\)$2/' src/makefile
# fix links to the header file in the docs # fix links to the header file in the docs
@ -59,15 +61,15 @@ rm -rf $RPM_BUILD_ROOT
## ladspa_sdk uses mkdirhier for install which is provided by XFree86 ## ladspa_sdk uses mkdirhier for install which is provided by XFree86
## we don't want to depend on XFree86 for building ## we don't want to depend on XFree86 for building
## so let's make these dirs ourselves ## so let's make these dirs ourselves
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/ladspa mkdir -p $RPM_BUILD_ROOT%{_libdir}/ladspa
mkdir -p $RPM_BUILD_ROOT/%{_includedir}/ladspa mkdir -p $RPM_BUILD_ROOT%{_includedir}/ladspa
mkdir -p $RPM_BUILD_ROOT/%{_bindir}/ladspa mkdir -p $RPM_BUILD_ROOT%{_bindir}/ladspa
cd src cd src
make install \ make install \
INSTALL_PLUGINS_DIR=$RPM_BUILD_ROOT/%{_libdir}/ladspa \ INSTALL_PLUGINS_DIR=$RPM_BUILD_ROOT%{_libdir}/ladspa \
INSTALL_INCLUDE_DIR=$RPM_BUILD_ROOT/%{_includedir} \ INSTALL_INCLUDE_DIR=$RPM_BUILD_ROOT%{_includedir} \
INSTALL_BINARY_DIR=$RPM_BUILD_ROOT/%{_bindir} INSTALL_BINARY_DIR=$RPM_BUILD_ROOT%{_bindir}
%clean %clean
@ -90,6 +92,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Sat Sep 16 2006 Thomas Vander Stichele <thomas at apestaart dot org>
- 1.12-7
- include gcc 4.1 patch from Mandriva
* Sun Mar 05 2006 Thomas Vander Stichele <thomas at apestaart dot org> * Sun Mar 05 2006 Thomas Vander Stichele <thomas at apestaart dot org>
- 1.12-6 - 1.12-6
- rebuilt for FE5 - rebuilt for FE5

View File

@ -1 +0,0 @@
http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild