jca fccfd67336 Fix handling of gstdbuf and !shared archs.
- gstdbuf uses LD_PRELOAD with a fixed name "libstdbuf.so", so don't
  rename it to glibstdbuf.so
- this functionality requires shared libs support, which we don't have
  on vax.  Sadly the upstream test (is the platform ELF and is the compiler
  gcc?) isn't enough.  So hack the test and put gstdbuf-related files in
  PFRAG.shared.
ok sthen@
2014-01-28 16:55:46 +00:00

37 lines
867 B
Makefile

# $OpenBSD: Makefile,v 1.6 2014/01/28 16:55:46 jca Exp $
COMMENT = file, shell and text manipulation utilities
DISTNAME = coreutils-8.21
REVISION = 1
CATEGORIES = sysutils
HOMEPAGE = https://www.gnu.org/software/coreutils/coreutils.html
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c pthread
MASTER_SITES = ${MASTER_SITE_GNU:=coreutils/}
EXTRACT_SUFX = .tar.xz
MODULES = devel/gettext
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --program-prefix=g \
--without-gmp
# 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>