- Add LICENSE
- Add NO_ARCH - Switch to options helpers
This commit is contained in:
parent
52286d1e5f
commit
973e5cd9cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=399959
@ -10,29 +10,28 @@ MASTER_SITES= http://netmon.grnet.gr/weathermap/dist/
|
|||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= This tool displays the utilization of the network links
|
COMMENT= This tool displays the utilization of the network links
|
||||||
|
|
||||||
|
LICENSE= GPLv2
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
|
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
|
||||||
RUN_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
|
RUN_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
|
||||||
mrtg:${PORTSDIR}/net-mgmt/mrtg
|
mrtg:${PORTSDIR}/net-mgmt/mrtg
|
||||||
|
|
||||||
USES= perl5 shebangfix
|
USES= perl5 shebangfix
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
NO_ARCH= yes
|
||||||
SHEBANG_FILES= weathermap
|
SHEBANG_FILES= weathermap
|
||||||
|
|
||||||
OPTIONS_DEFINE= WGET DOCS EXAMPLES
|
PORTDOCS= README INSTALL
|
||||||
WGET_DESC= WGET support
|
|
||||||
|
|
||||||
PORTDOCS= README LICENSE INSTALL
|
|
||||||
|
|
||||||
CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \
|
CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \
|
||||||
--with-gd-inc=${LOCALBASE}/include
|
--with-gd-inc=${LOCALBASE}/include
|
||||||
|
|
||||||
SUB_FILES= pkg-message
|
SUB_FILES= pkg-message
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
OPTIONS_DEFINE= WGET DOCS EXAMPLES
|
||||||
|
WGET_DESC= WGET support
|
||||||
.if ${PORT_OPTIONS:MWGET}
|
WGET_RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
|
||||||
RUN_DEPENDS+= wget:${PORTSDIR}/ftp/wget
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
|
||||||
@ -41,13 +40,15 @@ post-patch:
|
|||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/weathermap ${STAGEDIR}${PREFIX}/bin
|
@${INSTALL_SCRIPT} ${WRKSRC}/weathermap ${STAGEDIR}${PREFIX}/bin
|
||||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
||||||
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
|
|
||||||
@${INSTALL_DATA} ${WRKSRC}/example/weathermap.conf ${STAGEDIR}${ETCDIR}/weathermap.conf.sample
|
@${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}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user