ladspa: fixed wrong command on creating the plug-ins directory, thanks onestep for pointing this out
also made it use -O3 compiler flags as thats what it was set in the makefile before the patch
This commit is contained in:
parent
d8e7ed50fb
commit
299847b528
@ -1,2 +1,2 @@
|
||||
bcec0e0d242999a43a70cf5c2b9f92ce ladspa.patch
|
||||
322c6b65b02cb04628cb02cf319ed89c ladspa-1.12.patch
|
||||
dbd63dd701d80b152943073c84565c14 ladspa_sdk_1.12.tgz
|
||||
|
@ -8,11 +8,14 @@ name=ladspa
|
||||
version=1.12
|
||||
release=1
|
||||
source=(http://www.ladspa.org/download/ladspa_sdk_$version.tgz \
|
||||
ladspa.patch)
|
||||
ladspa-$version.patch)
|
||||
|
||||
build() {
|
||||
cd ladspa_sdk/src
|
||||
patch -i $SRC/$name.patch
|
||||
make && make install DESTDIR=$PKG
|
||||
patch -i $SRC/ladspa-$version.patch
|
||||
mv makefile Makefile
|
||||
export CFLAGS="${CFLAGS//-O?/-O3}" CXXFLAGS="${CXXFLAGS//-O?/-O3}"
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
}
|
||||
|
||||
|
61
ladspa/ladspa-1.12.patch
Normal file
61
ladspa/ladspa-1.12.patch
Normal file
@ -0,0 +1,61 @@
|
||||
--- makefile.orig 2007-01-09 22:44:04.000000000 +1100
|
||||
+++ makefile 2007-01-09 22:46:25.000000000 +1100
|
||||
@@ -5,9 +5,9 @@
|
||||
# Change these if you want to install somewhere else. In particularly
|
||||
# you may wish to remove the middle "local/" part of each entry.
|
||||
|
||||
-INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/
|
||||
-INSTALL_INCLUDE_DIR = /usr/include/
|
||||
-INSTALL_BINARY_DIR = /usr/local/bin/
|
||||
+INSTALL_PLUGINS_DIR = $(DESTDIR)/usr/lib/ladspa/
|
||||
+INSTALL_INCLUDE_DIR = $(DESTDIR)/usr/include/
|
||||
+INSTALL_BINARY_DIR = $(DESTDIR)/usr/bin/
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
INCLUDES = -I.
|
||||
LIBRARIES = -ldl -lm
|
||||
-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
|
||||
+CFLAGS += $(INCLUDES) -Wall -Werror -fPIC
|
||||
CXXFLAGS = $(CFLAGS)
|
||||
PLUGINS = ../plugins/amp.so \
|
||||
../plugins/delay.so \
|
||||
@@ -47,19 +47,20 @@
|
||||
# TARGETS
|
||||
#
|
||||
|
||||
-test: /tmp/test.wav ../snd/noise.wav always
|
||||
- @echo ---------------------------------------------
|
||||
- @echo First listen to the white noise input signal:
|
||||
- @echo ---------------------------------------------
|
||||
- play ../snd/noise.wav
|
||||
- @echo -------------------------
|
||||
- @echo Compare to plugin output.
|
||||
- @echo -------------------------
|
||||
- @echo Should be a noise band around 6000Hz, repeated quietly after 1s.
|
||||
- play /tmp/test.wav
|
||||
+test:
|
||||
+# /tmp/test.wav ../snd/noise.wav always
|
||||
+# @echo ---------------------------------------------
|
||||
+# @echo First listen to the white noise input signal:
|
||||
+# @echo ---------------------------------------------
|
||||
+# play ../snd/noise.wav
|
||||
+# @echo -------------------------
|
||||
+# @echo Compare to plugin output.
|
||||
+# @echo -------------------------
|
||||
+# @echo Should be a noise band around 6000Hz, repeated quietly after 1s.
|
||||
+# play /tmp/test.wav
|
||||
|
||||
install: targets
|
||||
- -mkdirhier $(INSTALL_PLUGINS_DIR) \
|
||||
+ mkdir -p $(INSTALL_PLUGINS_DIR) \
|
||||
$(INSTALL_INCLUDE_DIR) \
|
||||
$(INSTALL_BINARY_DIR)
|
||||
cp ../plugins/* $(INSTALL_PLUGINS_DIR)
|
||||
@@ -123,4 +124,3 @@
|
||||
tar czf `date '+../backup/ladspa_sdk.%Y%m%d%H%M.tgz'` ladspa_sdk/)
|
||||
|
||||
###############################################################################
|
||||
-
|
Loading…
x
Reference in New Issue
Block a user