svn commit: r375549 - head/security/nmap

Olli Hauer ohauer at FreeBSD.org
Thu Dec 25 13:29:30 UTC 2014


Author: ohauer
Date: Thu Dec 25 13:29:28 2014
New Revision: 375549
URL: https://svnweb.freebsd.org/changeset/ports/375549
QAT: https://qat.redports.org/buildarchive/r375549/

Log:
  - fix build on arm/mips
  
  PR:			196065
  Submitted by:	mikael.urankar

Modified:
  head/security/nmap/Makefile

Modified: head/security/nmap/Makefile
==============================================================================
--- head/security/nmap/Makefile	Thu Dec 25 13:26:41 2014	(r375548)
+++ head/security/nmap/Makefile	Thu Dec 25 13:29:28 2014	(r375549)
@@ -19,7 +19,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
 
-USES=		tar:bzip2 gmake cpe
+USES=		tar:bzip2 gmake cpe compiler
 GNU_CONFIGURE=	yes
 
 OPTIONS_SUB=	yes
@@ -54,8 +54,10 @@ CONFIGURE_ARGS+=--without-localdirs \
 		--with-liblua=included \
 		--without-nmap-update
 
+.include <bsd.port.pre.mk>
+
 # fix for gcc from ports
-.if ${CC} != "cc" && ${CC} !="clang" && !${CC:M*ccache/cc}
+.if ${CHOSEN_COMPILER_TYPE} == gcc
 GCCLIBDIR_CMDS=	${CC} -print-file-name=libstdc++.so | ${SED} -e 's/libstdc++.so//'
 CONFIGURE_ARGS+=LDFLAGS="-L$$(${GCCLIBDIR_CMDS})"
 NOT_BASE_CC=	true
@@ -81,4 +83,4 @@ post-install:
 	@${ECHO_MSG} do not forget to adjust libnmap.conf
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-head mailing list