freebsd-ports/sysutils/coreutils/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

58 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= coreutils
PORTVERSION= 8.30
PORTREVISION= 1
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 # build - required for tests and man page generation
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
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
#regression-test: build
# (cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check)
.include <bsd.port.mk>