svn commit: r504092 - head/net/axa

Mark Linimon linimon at FreeBSD.org
Thu Jun 13 13:03:13 UTC 2019


Author: linimon
Date: Thu Jun 13 13:03:11 2019
New Revision: 504092
URL: https://svnweb.freebsd.org/changeset/ports/504092

Log:
  Remove -Wno-unused-command-line-argument from CFLAGS to fix the build
  on GCC-based systems:
  
    cc1: error: unrecognized command line option "-Wno-unused-command-line-argument"
  
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/net/axa/Makefile

Modified: head/net/axa/Makefile
==============================================================================
--- head/net/axa/Makefile	Thu Jun 13 13:01:00 2019	(r504091)
+++ head/net/axa/Makefile	Thu Jun 13 13:03:11 2019	(r504092)
@@ -23,8 +23,8 @@ LIB_DEPENDS=	liblmdb.so:databases/lmdb \
 		libyajl.so:devel/yajl
 RUN_DEPENDS=	sie-nmsg>0:net/sie-nmsg
 
-USES=		autoreconf gmake libedit libtool pathfix pkgconfig shebangfix \
-		ssl
+USES=		autoreconf compiler gmake libedit libtool pathfix \
+		pkgconfig shebangfix ssl
 
 GNU_CONFIGURE=	yes
 CONFIGURE_SHELL=	${LOCALBASE}/bin/bash
@@ -53,7 +53,12 @@ CONFIGURE_ENV+=	libcrypto_CFLAGS="-I${OPENSSLINC}"	\
 
 post-extract:
 	(${ECHO} "For libmy/b64_encode.c:" ; \
-	 ${SED} -ne "1,/\*\//p" ${WRKSRC}/libmy/b64_encode.c ) > ${LICENSE_FILE_PD}
+	${SED} -ne "1,/\*\//p" ${WRKSRC}/libmy/b64_encode.c ) > ${LICENSE_FILE_PD}
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+pre-configure:
+	${REINPLACE_CMD} -e 's|-Wno-unused-command-line-argument||' ${WRKSRC}/configure.ac
+.endif
 
 post-install-DOXYGEN-on:
 	(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})


More information about the svn-ports-head mailing list