-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
33 lines (30 loc) · 972 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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
}