freebsd-ports/mail/p5-Mail-Graph/Makefile
Mathieu Arnold f6d56007b9 Remove all := from BUILD_DEPENDS, here are never needed.
While there, cleanup, and sort depends.

When build and run dependencies are the same, there are three ways to
avoid duplicating the list while not adding the framework added
BUILD_DEPENDS to the RUN_DEPENDS.  In order of preference, they are:

1) use RUN_DEPENDS to set BUILD_DEPENDS:

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	foo:bar/baz

2) create another variable and use it:

MY_DEPENDS= foo:bar/baz
BUILD_DEPENDS=	${MY_DEPENDS}
RUN_DEPENDS=	${MY_DEPENDS}

3) use BUILD_DEPENDS to set RUN_DEPENDS and force evaluation:

BUILD_DEPENDS=	foo:bar/baz
RUN_DEPENDS:=	${BUILD_DEPENDS}

Sponsored by:	Absolight
2018-07-09 08:40:17 +00:00

40 lines
1.2 KiB
Makefile

# Created by: Cheng-Lung Sung <clsung@dragon2.net>
# $FreeBSD$
PORTNAME= Mail-Graph
PORTVERSION= 0.14
PORTREVISION= 8
CATEGORIES= mail perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl module for drawing graphical stats for mails/spams
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= p5-GD>=0:graphics/p5-GD \
p5-GD-Graph>=0:graphics/p5-GD-Graph \
p5-GD-TextUtil>=0:graphics/p5-GD-TextUtil \
p5-Date-Calc>=0:devel/p5-Date-Calc
USES= perl5 shebangfix
USE_PERL5= configure
EXAMPLESCRIPT= samples/*pl
EXAMPLEDUMMY= samples/index/dummy.txt
EXAMPLEOUTPUT= samples/output/w3c.png samples/output/spam.css
EXAMPLEARCHIVE= samples/archive/*.gz
SHEBANG_FILES= samples/*.pl
OPTIONS_DEFINE= EXAMPLES
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/archive \
${STAGEDIR}${EXAMPLESDIR}/index ${STAGEDIR}${EXAMPLESDIR}/output
(cd ${WRKSRC} && \
${INSTALL_SCRIPT} ${EXAMPLESCRIPT} ${STAGEDIR}${EXAMPLESDIR} && \
${INSTALL_SCRIPT} ${EXAMPLEDUMMY} ${STAGEDIR}${EXAMPLESDIR}/index && \
${INSTALL_SCRIPT} ${EXAMPLEOUTPUT} ${STAGEDIR}${EXAMPLESDIR}/output && \
${INSTALL_SCRIPT} ${EXAMPLEARCHIVE} ${STAGEDIR}${EXAMPLESDIR}/archive)
.include <bsd.port.mk>