cwm: only want musl-legacy-compat on musl

This commit is contained in:
q66 2020-01-12 04:51:21 +01:00
parent e80bcb036f
commit a37d740f8b
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ version=6.6
revision=1 revision=1
build_style=gnu-makefile build_style=gnu-makefile
hostmakedepends="pkg-config bison" hostmakedepends="pkg-config bison"
makedepends="libXft-devel libXinerama-devel libXrandr-devel musl-legacy-compat" makedepends="libXft-devel libXinerama-devel libXrandr-devel"
short_desc="Lightweight and efficient window manager for X11" short_desc="Lightweight and efficient window manager for X11"
maintainer="Leah Neukirchen <leah@vuxu.org>" maintainer="Leah Neukirchen <leah@vuxu.org>"
license="ISC" license="ISC"
@ -12,6 +12,10 @@ homepage="http://man.openbsd.org/cwm"
distfiles="https://github.com/leahneukirchen/cwm/archive/v${version}.tar.gz" distfiles="https://github.com/leahneukirchen/cwm/archive/v${version}.tar.gz"
checksum=223d086dbebfb2f35f05af0c72c3d1b04fdd341123121c65105524ebd605655c checksum=223d086dbebfb2f35f05af0c72c3d1b04fdd341123121c65105524ebd605655c
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
post_extract() { post_extract() {
sed -i 's/^\(LD\|CPP\)FLAGS/override &/' Makefile sed -i 's/^\(LD\|CPP\)FLAGS/override &/' Makefile
sed '/\*\//q' calmwm.c >LICENSE sed '/\*\//q' calmwm.c >LICENSE