summaryrefslogtreecommitdiff
path: root/mail/sendymail/Makefile
blob: dc51199472043a04a021cc201c4cc6c5da613a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $NetBSD: Makefile,v 1.2 2008/03/04 17:57:19 jlam Exp $
#

DISTNAME=		sendymail-0.5.8
CATEGORIES=		mail
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=sendymail/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://sendymail.sourceforge.net/
COMMENT=		Send emails through Yahoo using your favorite email client

DEPENDS+=		p5-Crypt-SSLeay-[0-9]*:../../security/p5-Crypt-SSLeay
DEPENDS+=		p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
DEPENDS+=		p5-Getopt-Long-[0-9]*:../../devel/p5-Getopt-Long
DEPENDS+=		p5-libwww-[0-9]*:../../www/p5-libwww
DEPENDS+=		p5-MailTools-[0-9]*:../../mail/p5-MailTools
DEPENDS+=		p5-MIME-tools-[0-9]*:../../mail/p5-MIME-tools

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=		perl:run
REPLACE_PERL=		sendymail.pl

NO_BUILD=		yes

EGDIR=			${PREFIX}/share/examples/sendymail
DOCDIR=			${PREFIX}/share/doc/sendymail

SUBST_CLASSES+=		sa2
SUBST_STAGE.sa2=	pre-configure
SUBST_FILES.sa2=	ChangeLog INSTALL
SUBST_SED.sa2=		-e s!sendymail.pl!sendymail!g

INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/sendymail.pl \
		${DESTDIR}${PREFIX}/bin/sendymail
	${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
.for i in BUGS COPYING ChangeLog INSTALL README TODO
		${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${DOCDIR}
.endfor
	${INSTALL_DATA} ${WRKSRC}/sendymailrc.sample ${DESTDIR}${EGDIR}

.include "../../mk/bsd.pkg.mk"