invada-studio-plugins-lv2: honour our build flags

This commit is contained in:
Đoàn Trần Công Danh 2020-09-03 21:44:08 +07:00
parent 1751c4e180
commit b3e9ac792a
1 changed files with 10 additions and 3 deletions

View File

@ -1,9 +1,8 @@
# Template file for 'invada-studio-plugins-lv2'
pkgname=invada-studio-plugins-lv2
version=1.2.0
revision=1
revision=2
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="pkg-config"
makedepends="lv2 gtk+-devel"
short_desc="Invada Studio LV2 plugins"
@ -13,8 +12,16 @@ homepage="https://launchpad.net/invada-studio/"
distfiles="https://launchpad.net/invada-studio/lv2/1.2/+download/${pkgname}_${version}-nopkg.tgz"
checksum=c6cac7c32effc6b3052e3b017133244f385ef8e053147859d88eae6facaf7d12
post_patch() {
find . -name Makefile -exec \
sed -i -e '
/CFLAGS/{s/CFLAGS/ALL_CFLAGS/;s/=/= $(CFLAGS)/; s/-O3//}
/LDFLAGS/{s/LDFLAGS/ALL_LDFLAGS/;s/=/= $(LDFLAGS)/}
' {} +
}
pre_build() {
make_build_args="CC=${CC} LD=${CC}"
LD=$CC
}
do_install() {