blob: 63b96df4ab588ff4269f37e76a97f3edb0cc9048 (
plain)
1 # Description: Linux Audio Developer's Simple Plugin API.
2 # URL: https://www.ladspa.org
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: libsndfile
5
6 name=ladspa
7 version=1.17
8 release=1
9 source=(https://ladspa.org/download/ladspa_sdk_$version.tgz
10 fix-memleak-in-plugin-scanning.patch)
11
12 build() {
13 cd ladspa_sdk_$version
14 patch -Np0 -i ../fix-memleak-in-plugin-scanning.patch
15 export \
16 CFLAGS="${CFLAGS//-O?/-O3}" \
17 CXXFLAGS="${CXXFLAGS//-O?/-O3}"
18
19 sed -i \
20 -e "s/@CFLAGS@/$CFLAGS/" \
21 -e "s/@CXXFLAGS@/$CXXFLAGS/" \
22 src/Makefile
23 cd src
24 make
25 make INSTALL_PLUGINS_DIR="$PKG/usr/lib/ladspa/" \
26 INSTALL_INCLUDE_DIR="$PKG/usr/include/" \
27 INSTALL_BINARY_DIR="$PKG/usr/bin/" install
28 }
|