42 lines
1 KiB
Makefile
42 lines
1 KiB
Makefile
COMMENT = file, shell and text manipulation utilities
|
|
|
|
DISTNAME = coreutils-9.3
|
|
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-libgmp
|
|
# supply result to skip a test that will abort configure if run as root
|
|
CONFIGURE_ENV += gl_cv_func_mknod_works=no
|
|
|
|
# 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>
|