Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2015 10:31:00 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399959 - head/net-mgmt/weathermap
Message-ID:  <201510221031.t9MAV0Wk043799@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Oct 22 10:31:00 2015
New Revision: 399959
URL: https://svnweb.freebsd.org/changeset/ports/399959

Log:
  - Add LICENSE
  - Add NO_ARCH
  - Switch to options helpers

Modified:
  head/net-mgmt/weathermap/Makefile

Modified: head/net-mgmt/weathermap/Makefile
==============================================================================
--- head/net-mgmt/weathermap/Makefile	Thu Oct 22 10:30:45 2015	(r399958)
+++ head/net-mgmt/weathermap/Makefile	Thu Oct 22 10:31:00 2015	(r399959)
@@ -10,29 +10,28 @@ MASTER_SITES=	http://netmon.grnet.gr/wea
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	This tool displays the utilization of the network links
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
 LIB_DEPENDS=	libgd.so:${PORTSDIR}/graphics/gd
 RUN_DEPENDS=	p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
 		mrtg:${PORTSDIR}/net-mgmt/mrtg
 
 USES=		perl5 shebangfix
 NO_BUILD=	yes
+NO_ARCH=	yes
 SHEBANG_FILES=	weathermap
 
-OPTIONS_DEFINE=	WGET DOCS EXAMPLES
-WGET_DESC=	WGET support
-
-PORTDOCS=	README LICENSE INSTALL
+PORTDOCS=	README INSTALL
 
 CONFIGURE_ARGS=	--with-gd-lib=${LOCALBASE}/lib \
 		--with-gd-inc=${LOCALBASE}/include
 
 SUB_FILES=	pkg-message
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MWGET}
-RUN_DEPENDS+=	wget:${PORTSDIR}/ftp/wget
-.endif
+OPTIONS_DEFINE=	WGET DOCS EXAMPLES
+WGET_DESC=	WGET support
+WGET_RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
@@ -41,13 +40,15 @@ post-patch:
 
 do-install:
 	@${INSTALL_SCRIPT} ${WRKSRC}/weathermap ${STAGEDIR}${PREFIX}/bin
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	@${MKDIR} ${STAGEDIR}${ETCDIR}
-	@${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
 	@${INSTALL_DATA} ${WRKSRC}/example/weathermap.conf ${STAGEDIR}${ETCDIR}/weathermap.conf.sample
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510221031.t9MAV0Wk043799>