From e379e8a0e075ea32ff735a6516a434341c1a090a Mon Sep 17 00:00:00 2001 From: netchild Date: Tue, 25 May 2004 14:28:00 +0000 Subject: - Fix installation when CC is not set to "cc". Inspired by PR 66925. - Use ARCH instead of MACHINE_ARCH to please portlint >= 2.5.9. Submitted by: marius --- sysutils/sformat/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sysutils/sformat/Makefile b/sysutils/sformat/Makefile index 004d98ec6094..530b805cd106 100644 --- a/sysutils/sformat/Makefile +++ b/sysutils/sformat/Makefile @@ -21,14 +21,17 @@ USE_REINPLACE= yes MAN1= sformat.1 MAKE_ENV= CCOM=${CC} +SFMTTARGET= ${ARCH}-freebsd-${CC} + +.include post-extract: .for i in config.guess config.sub @${CP} ${PORTSDIR}/Templates/${i} ${WRKSRC}/conf .endfor -.if ${MACHINE_ARCH} != "i386" || ${CC} != "cc" - @${LN} -s ${WRKSRC}/RULES/i386-freebsd-cc.rul \ - ${WRKSRC}/RULES/${MACHINE_ARCH}-freebsd-${CC}.rul +.if ${ARCH} != "i386" || ${CC} != "cc" + @${LN} -sf ${WRKSRC}/RULES/i386-freebsd-cc.rul \ + ${WRKSRC}/RULES/${SFMTTARGET}.rul .endif post-patch: @@ -38,10 +41,10 @@ post-patch: .endfor do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/sformat/OBJ/${ARCH}-freebsd-cc/sformat \ + @${INSTALL_PROGRAM} ${WRKSRC}/sformat/OBJ/${SFMTTARGET}/sformat \ ${PREFIX}/bin @${MKDIR} ${DATADIR} @${INSTALL_DATA} ${WRKSRC}/sformat/sformat.dat ${DATADIR} @${INSTALL_MAN} ${WRKSRC}/sformat/sformat.1 ${PREFIX}/man/man1 -.include +.include -- cgit