MFH: r498188

Adjust compiler flags on GCC-based architectures to avoid:

  cc1: error: unrecognized command line option "-Wpedantic"

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-04-06 19:53:27 +00:00
parent 5ac61dec59
commit f3521a16f9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=498189

View File

@ -11,14 +11,21 @@ COMMENT= Proxy-ARP daemon
LICENSE= ART20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= tar:tgz
USES= compiler tar:tgz
USE_RC_SUBR= parpd
NO_TEST= yes
PLIST_FILES= sbin/parpd man/man8/parpd.8.gz
.include <bsd.port.pre.mk>
.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
pre-configure:
${REINPLACE_CMD} -e 's|-Wpedantic||' ${WRKSRC}/Makefile
.endif
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/parpd ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${INSTALL_WRKSRC}/parpd.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
.include <bsd.port.mk>
.include <bsd.port.post.mk>