svn commit: r498188 - head/net/parpd
Mark Linimon
linimon at FreeBSD.org
Sat Apr 6 19:52:37 UTC 2019
Author: linimon
Date: Sat Apr 6 19:52:36 2019
New Revision: 498188
URL: https://svnweb.freebsd.org/changeset/ports/498188
Log:
Adjust compiler flags on GCC-based architectures to avoid:
cc1: error: unrecognized command line option "-Wpedantic"
Approved by: portmgr (tier-2 blanket)
Modified:
head/net/parpd/Makefile
Modified: head/net/parpd/Makefile
==============================================================================
--- head/net/parpd/Makefile Sat Apr 6 19:51:27 2019 (r498187)
+++ head/net/parpd/Makefile Sat Apr 6 19:52:36 2019 (r498188)
@@ -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>
More information about the svn-ports-all
mailing list