R: define __MUSL__ when building for musl libc

R people assumes it's defined for musl libc.
This commit is contained in:
Đoàn Trần Công Danh 2021-09-16 22:44:43 +07:00 committed by Đoàn Trần Công Danh
parent cefcdbac6d
commit 626e5eb256

View file

@ -1,7 +1,7 @@
# Template file for 'R'
pkgname=R
version=4.1.1
revision=1
revision=2
build_style=gnu-configure
configure_args="--docdir=/usr/share/doc/R rdocdir=/usr/share/doc/R
--with-blas$(vopt_if openblas '=openblas') --with-lapack
@ -37,6 +37,10 @@ case "$XBPS_TARGET_MACHINE" in
*) ;;
esac
if [ "$XBPS_TARGET_LIBC" = musl ]; then
export CPPFLAGS=-D__MUSL__
fi
pre_configure() {
export R_BROWSER=/usr/bin/xdg-open
export R_PDFVIEWER=/usr/bin/xdg-open