summaryrefslogtreecommitdiff
path: root/mail/fetchmail/Makefile
blob: 44c5239b71166ee1d4897d2caeafaec41945ea2a (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.198 2021/08/28 05:21:19 triaxx Exp $

# Note to updaters: mail/fetchmailconf reaches over here, make sure it builds.
DISTNAME=	fetchmail-6.4.21
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=fetchmail/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.fetchmail.info/
COMMENT=	Batch mail retrieval/forwarding utility for pop2, pop3, apop, imap
LICENSE=	gnu-gpl-v1 AND gnu-gpl-v2 AND modified-bsd AND public-domain AND gnu-lgpl-v2.1

USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--without-hesiod
CONFIGURE_ENV+=		PYTHON=:
LDFLAGS+=		${CFLAGS}
USE_TOOLS+=		msgfmt tbl

LDFLAGS.Darwin+=	-lresolv
CFLAGS.Darwin+=		-DBIND_8_COMPAT -DHAVE_RESOLV_H

.include "options.mk"

TEST_TARGET=	check

DOCDIR=		${PREFIX}/share/doc/fetchmail
RCD_SCRIPTS=	fetchmail

INSTALLATION_DIRS+=	${DOCDIR}

.include "../../devel/gettext-lib/buildlink3.mk"

post-build:
	${MV} ${WRKSRC}/fetchmail.man ${WRKSRC}/fetchmail.man.tbl &&	\
	${TBL} ${WRKSRC}/fetchmail.man.tbl > ${WRKSRC}/fetchmail.man

post-install:
.for f in FAQ NOTES FEATURES README COPYING fetchmail-FAQ.html		\
                 fetchmail-features.html design-notes.html
	cd ${WRKSRC} &&							\
	${INSTALL_DATA} ${f} ${DESTDIR}${DOCDIR}
.endfor

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