void-packages/srcpkgs/guitarix2/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

40 lines
1.4 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'guitarix2'
pkgname=guitarix2
version=0.42.1
revision=1
wrksrc="guitarix-${version}"
build_style=waf3
configure_args="--cxxflags-release=-DNDEBUG --ladspa --new-ladspa --no-faust
$(vopt_if avahi '' '--no-avahi') $(vopt_if bluez '' '--no-bluez')"
make_build_args="--progress"
hostmakedepends="gperf intltool pkg-config sassc"
makedepends="boost-devel eigen fftw-devel gtkmm-devel jack-devel
ladspa-sdk liblrdf-devel libsndfile-devel lilv-devel lv2 sratom-devel
zita-convolver-devel zita-resampler-devel
$(vopt_if avahi avahi-glib-libs-devel) $(vopt_if bluez libbluetooth-devel)"
depends="desktop-file-utils"
short_desc="Virtual guitar amplifier running on Jack Audio Connection Kit"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://guitarix.org"
distfiles="${SOURCEFORGE_SITE}/guitarix/guitarix/guitarix2-${version}.tar.xz"
checksum=797e46e07148fba89e46fac4efe73a5b3a98f070bca85db3d143de781b142c80
build_options="avahi bluez"
desc_option_avahi="Build with avahi support"
desc_option_bluez="Build with bluez support"
CXXFLAGS="-fpermissive"
case "$XBPS_TARGET_MACHINE" in
x86_64*) ;;
i686*) configure_args+=" --cxxflags=-mfxsr" ;;
*) configure_args+=" --disable-sse" ;;
esac
if [ -n "$CROSS_BUILD" ]; then
post_extract() {
# dont test load the ladspa plugin when cross compiling
vsed -i "/features='test_loadable',/d" src/ladspa/wscript
}
fi