pkgsrc/mail/fetchmail/Makefile
2018-05-23 10:52:15 +00:00

46 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.189 2018/05/23 10:52:15 wiz Exp $
# Note to updaters: mail/fetchmailconf reaches over here, make sure it builds.
DISTNAME= fetchmail-6.3.26
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fetchmail/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://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"