MFH: r522875

sysutils/sformat: fix build on powerpc64

Makefile uses uname -m (which returns powerpc on powerpc64) instead of uname -p (which correctly returns powerpc64).

PR:		243152
Approved by:	marius (maintainer)

Approved by:	portmgr (fix build blanket)
This commit is contained in:
Piotr Kubaj 2020-01-13 10:26:46 +00:00
parent c9cca3fe0b
commit ee357bc70e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q1/; revision=522876

View File

@ -14,12 +14,6 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= marius@FreeBSD.org
COMMENT= Allows formatting/partitioning/analysis/repairing of SCSI disks
BROKEN_aarch64= does not build: No rule to make target RULES/arm64-freebsd-cc.rul
BROKEN_armv6= does not build: No rule to make target RULES/arm-freebsd-cc.rul
BROKEN_armv7= does not build: No rule to make target RULES/arm-freebsd-cc.rul
BROKEN_mips64= does not build: No rule to make target RULES/mips-freebsd-cc.rul
BROKEN_powerpc64= does not install: powerpc-freebsd-cc/sformat: No such file or directory
LIBSCHILY= libschily-2.01.01a07.tar.gz
USES= gmake
@ -27,7 +21,8 @@ USES= gmake
CCOM!= ${BASENAME} ${CC}
MAKE_ENV+= CCOM=${CCOM}
SFMTTARGET= ${ARCH:S/powerpc64/powerpc/}-freebsd-${CCOM}
SFMTTARGET= ${ARCH}-freebsd-${CCOM}
SFMTXARCH!= ${UNAME} -m
post-extract:
@cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
@ -37,7 +32,7 @@ post-extract:
.endfor
.if ${SFMTTARGET} != "i386-freebsd-cc"
@${LN} -sf ${WRKSRC}/RULES/i386-freebsd-cc.rul \
${WRKSRC}/RULES/${SFMTTARGET}.rul
${WRKSRC}/RULES/${SFMTXARCH}-${OPSYS:tl}-cc.rul
.endif
post-patch: