vp-build/srcpkgs/m4/template

34 lines
972 B
Bash

# Template file for 'm4'
pkgname=m4
version=1.4.19
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="--enable-changeword --enable-threads"
short_desc="GNU version of UNIX m4 macro language processor"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/m4/"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96
replaces="chroot-m4>=0"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
export ac_cv_lib_error_at_line=no
export ac_cv_header_sys_cdefs_h=no
fi
if [ -z "$CHROOT_READY" ]; then
# Disable makeinfo unconditionally
# texinfo is defaulted to utf-8 now and the file is in iso-8859-1
# Don't sed the file, otherwise, it'll try to rebuild
export MAKEINFO=:
fi
pre_check() {
case "$XBPS_TARGET_MACHINE" in
# Disable tests that fail on musl
*-musl) sed -i '/test-getcwd.sh/d' tests/Makefile ;;
esac
}