60fde33a70
Clang crashes with the default -mcpu, but builds with -O0: Assertion failed: (Subtarget->hasP9Vector() && "XSCMPUQP requires Power9 Vector"), function SelectCC, file /usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp, line 4271.
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
PORTNAME= coreutils
|
|
DISTVERSION= 9.9
|
|
CATEGORIES= sysutils textproc
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= jharris@widomaker.com
|
|
COMMENT= Free Software Foundation core utilities
|
|
WWW= https://www.gnu.org/software/coreutils/ \
|
|
https://git.savannah.gnu.org/gitweb/?p=coreutils.git
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= charsetfix cpe iconv perl5 ssl tar:xz
|
|
CPE_VENDOR= gnu
|
|
USE_LDCONFIG= yes
|
|
USE_PERL5= build # required for tests and man page generation
|
|
|
|
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
|
|
|
|
TEST_TARGET= check
|
|
|
|
PIE_UNSAFE= yes
|
|
|
|
CONFLICTS_INSTALL= gdu geneweb gexpr rubygem-god # bin/gdu bin/gexpr bin/god bin/gwc
|
|
|
|
INFO= coreutils
|
|
|
|
OPTIONS_DEFINE= GMP NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
GMP_LIB_DEPENDS= libgmp.so:math/gmp
|
|
GMP_USES= localbase:ldflags
|
|
GMP_CONFIGURE_WITH= libgmp
|
|
NLS_USES= gettext
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
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.options.mk>
|
|
|
|
.if ${ARCH} == i386
|
|
CONFIGURE_ARGS+= --disable-year2038
|
|
.endif
|
|
|
|
# clang crashes (XSCMPUQP requires Power9) building IEEE-128 long double at
|
|
# -O1+ on the powerpc64le POWER8 baseline; build at -O0. CPUTYPE (POWER9+) is fine.
|
|
.if ${ARCH} == powerpc64le && !defined(CPUTYPE) && ${OSVERSION} >= 1600019
|
|
CFLAGS+= -O0
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|