Heavier fix in upstream gnulib: https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00013.html Spotted by schwarze@, ok bcallah@ (maintainer) schwarze@
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.22 2020/11/19 00:17:49 jca Exp $
|
|
|
|
COMMENT = file, shell and text manipulation utilities
|
|
|
|
DISTNAME = coreutils-8.32
|
|
REVISION = 0
|
|
CATEGORIES = sysutils
|
|
|
|
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
|
|
|
|
HOMEPAGE = https://www.gnu.org/software/coreutils/coreutils.html
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB = c iconv intl pthread
|
|
|
|
MASTER_SITES = ${MASTER_SITE_GNU:=coreutils/}
|
|
EXTRACT_SUFX = .tar.xz
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
LIB_DEPENDS = devel/gettext,-runtime
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS = --program-prefix=g \
|
|
--without-gmp
|
|
|
|
# Fixes a spurrious test failure
|
|
PORTHOME = ${WRKDIR}
|
|
|
|
# Prevent conflicts with: id, gpr and god
|
|
post-install:
|
|
.for I in gid god gpr
|
|
mv "${PREFIX}/bin/$I" "${PREFIX}/bin/g$I"
|
|
mv "${PREFIX}/man/man1/$I.1" "${PREFIX}/man/man1/g$I.1"
|
|
.endfor
|
|
if test -f "${PREFIX}/libexec/coreutils/glibstdbuf.so"; then \
|
|
mv "${PREFIX}/libexec/coreutils/glibstdbuf.so" \
|
|
"${PREFIX}/libexec/coreutils/libstdbuf.so"; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|