freebsd-ports/sysutils/coreutils/Makefile
Alexey Dokuchaev 826a3df314 - Update GNU coreutils to the latest version 8.31
- Enable tests via our framework (set the TEST_TARGET)
- Remove MAKE_JOBS_UNSAFE which was added in r306718 (due to "help2man:
  can't get '--help' info from man/stty.td/stty") as it looks like this
  very error had been fixed long time ago, per their ChangeLog:

  2015-03-06  Padraig Brady  <P@draigBrady.com>

	build: fix make dependencies for test.1
	In certain parallel build situations this would give the error:
	  help2man: can't get `--help' info from man/test.td/[
	  Makefile:14189: recipe for target 'man/test.1' failed

  That said, the port should have been jobs-safe for about four years
  now, but for some strange reason nobody had noticed that.

Approved by:	maintainer
2019-03-13 15:49:22 +00:00

53 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= coreutils
PORTVERSION= 8.31
CATEGORIES= sysutils textproc
MASTER_SITES= GNU
MAINTAINER= jharris@widomaker.com
COMMENT= Free Software Foundation core utilities
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS= idutils-[0-9]*
USES= cpe gmake iconv perl5 charsetfix tar:xz
CPE_VENDOR= gnu
USE_PERL5= build # required for tests and man page generation
USE_LDCONFIG= yes
TEST_TARGET= check
GNU_CONFIGURE= yes
# A rather nasty hack to stop gnustat from conflicting with base gstat
# bugs.freebsd.org/160060
CONFIGURE_ARGS= --program-prefix=g \
--program-transform-name=s/stat/nustat/
CONFIGURE_ENV= FORCE_UNSAFE_CONFIGURE=1
.ifdef QEMU_EMULATING
# XXX bug 224740: configure hangs
CONFIGURE_ENV+= gl_cv_func_printf_enomem=no
.endif
INFO= coreutils
OPTIONS_DEFINE= GMP NLS
OPTIONS_SUB= yes
GMP_LIB_DEPENDS= libgmp.so:math/gmp
GMP_CONFIGURE_WITH= gmp
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
post-build:
@${REINPLACE_CMD} -e "s/ lib / /g" ${WRKSRC}/Makefile
@${TOUCH} ${WRKSRC}/doc/coreutils.info
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/g* \
${STAGEDIR}${PREFIX}/libexec/coreutils/libstdbuf.so
.include <bsd.port.mk>