svn commit: r344925 - head/net/iffinder

Baptiste Daroussin bapt at FreeBSD.org
Tue Feb 18 16:29:54 UTC 2014


Author: bapt
Date: Tue Feb 18 16:29:53 2014
New Revision: 344925
URL: http://svnweb.freebsd.org/changeset/ports/344925
QAT: https://qat.redports.org/buildarchive/r344925/

Log:
  Add DOCS option
  Properly support CC
  Remove deprecated usage of NOPORTDOCS

Modified:
  head/net/iffinder/Makefile

Modified: head/net/iffinder/Makefile
==============================================================================
--- head/net/iffinder/Makefile	Tue Feb 18 16:28:45 2014	(r344924)
+++ head/net/iffinder/Makefile	Tue Feb 18 16:29:53 2014	(r344925)
@@ -9,6 +9,8 @@ MASTER_SITES=	http://www.caida.org/tools
 MAINTAINER=	dikshie at sfc.wide.ad.jp
 COMMENT=	Tools for find other interfaces for same router
 
+OPTIONS_DEFINE=	DOCS
+
 LICENSE=	BSD2CLAUSE
 
 GNU_CONFIGURE=	yes
@@ -16,16 +18,11 @@ GNU_CONFIGURE=	yes
 PLIST_FILES=	bin/iffinder
 PORTDOCS=	README
 
-.include <bsd.port.options.mk>
-.if ${OSVERSION} < 1000100
-@${REINPLACE_CMD} -e 's|CC=gcc|CC=clang|g' ${WRKSRC}/Makefile.in
-.endif
+MAKE_ARGS+=	CC="${CC}"
 
 do-install:
-		${INSTALL_PROGRAM} ${WRKSRC}/iffinder ${STAGEDIR}${PREFIX}/bin
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/iffinder ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list