summaryrefslogtreecommitdiff
path: root/sysutils/coreutils
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-07-24 17:02:44 +0000
committerjperkin <jperkin@pkgsrc.org>2015-07-24 17:02:44 +0000
commit43c3f1c1b663d7f2c395b3273ca036b941b844a9 (patch)
tree82d395e2e9bd840558e2ed5d207fd0420d697fa2 /sysutils/coreutils
parentca12f1e6e778bc2959c7f21f9e1a6e3faa0953dc (diff)
downloadpkgsrc-43c3f1c1b663d7f2c395b3273ca036b941b844a9.tar.gz
Pass -install_name on Darwin to record install path of libstdbuf.so. The
default is to use the relative output path which results in broken REQUIRES. Bump PKGREVISION.
Diffstat (limited to 'sysutils/coreutils')
-rw-r--r--sysutils/coreutils/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile
index d255afbb1c7..82c440e156c 100644
--- a/sysutils/coreutils/Makefile
+++ b/sysutils/coreutils/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.67 2015/06/16 22:28:13 jperkin Exp $
+# $NetBSD: Makefile,v 1.68 2015/07/24 17:02:44 jperkin Exp $
-PKGREVISION= 1
+PKGREVISION= 2
.include "../../sysutils/coreutils/Makefile.common"
CONFIGURE_ARGS+= --without-gmp
@@ -34,6 +34,15 @@ USE_GCC_RUNTIME= yes
PLIST.stdbuf= yes
.endif
+# Ensure libstdbuf.so has a valid library name otherwise REQUIRES will
+# record the relative path of the object output file.
+.if ${OPSYS} == "Darwin"
+SUBST_CLASSES+= libname
+SUBST_STAGE.libname= pre-configure
+SUBST_FILES.libname= Makefile.in
+SUBST_SED.libname= -e '/^src_libstdbuf_so_LDFLAGS/s,$$, -install_name ${PREFIX}/libexec/coreutils/glibstdbuf.so,'
+.endif
+
PROGS= [ base64 basename cat chcon chgrp chmod chown chroot cksum comm \
cp csplit cut date dd df dir dircolors dirname du hostid echo env \
expand expr factor false fmt fold groups head id install join kill \