2004-08-05 04:31:24 +02:00
|
|
|
# $NetBSD: Makefile,v 1.146 2004/08/05 02:31:24 jlam Exp $
|
1998-02-28 12:05:37 +01:00
|
|
|
|
2003-11-05 06:20:36 +01:00
|
|
|
DISTNAME= fetchmail-6.2.5
|
2004-03-26 03:27:34 +01:00
|
|
|
PKGREVISION= 2
|
1998-02-28 12:05:37 +01:00
|
|
|
CATEGORIES= mail
|
2003-07-20 16:52:45 +02:00
|
|
|
MASTER_SITES= http://catb.org/~esr/fetchmail/ \
|
1998-12-02 12:13:46 +01:00
|
|
|
http://sunsite.unc.edu/pub/Linux/system/mail/pop/
|
1998-02-28 12:05:37 +01:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= frueauf@NetBSD.org
|
2003-07-20 16:52:45 +02:00
|
|
|
HOMEPAGE= http://catb.org/~esr/fetchmail/
|
2003-07-21 18:56:41 +02:00
|
|
|
COMMENT= Batch mail retrieval/forwarding utility for pop2, pop3, apop, imap
|
1998-02-28 12:05:37 +01:00
|
|
|
|
2004-01-06 08:05:24 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-03-31 04:32:56 +02:00
|
|
|
BUILD_USES_MSGFMT= yes
|
1999-03-29 18:26:46 +02:00
|
|
|
|
2004-08-05 04:31:24 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-03-31 04:32:56 +02:00
|
|
|
USE_BUILDLINK3= yes
|
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2001-06-27 06:17:35 +02:00
|
|
|
CONFIGURE_ARGS+= --without-hesiod
|
2004-07-22 19:04:28 +02:00
|
|
|
USE_TBL= yes
|
2001-06-27 06:28:48 +02:00
|
|
|
LDFLAGS+= ${CFLAGS}
|
1999-08-18 11:24:08 +02:00
|
|
|
|
2004-08-05 04:31:24 +02:00
|
|
|
.include "options.mk"
|
1998-02-28 12:05:37 +01:00
|
|
|
|
2004-03-31 04:25:11 +02:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/fetchmail
|
2003-09-12 00:58:05 +02:00
|
|
|
RCD_SCRIPTS= fetchmail
|
1998-02-28 12:05:37 +01:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
|
1998-02-28 12:35:39 +01:00
|
|
|
post-extract:
|
2001-07-31 18:19:08 +02:00
|
|
|
@${RM} -f ${WRKSRC}/intl/libintl.h
|
1999-10-09 00:06:51 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
@${RM} -f ${WRKSRC}/md5.h
|
1999-10-01 12:31:57 +02:00
|
|
|
.endif
|
2004-03-31 04:22:04 +02:00
|
|
|
|
2001-03-23 11:01:01 +01:00
|
|
|
.if defined(REPLACE_KERBEROS_LIBS)
|
2004-03-31 04:22:04 +02:00
|
|
|
post-configure:
|
2001-03-23 11:01:01 +01:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
for F in configure.in configure; do \
|
|
|
|
${SED} -e "s/-lkrb -ldes/-lkrb -ldes -lcom_err -lroken/" \
|
|
|
|
$$F > $$F.mod; \
|
|
|
|
${MV} -f $$F.mod $$F; \
|
|
|
|
done
|
|
|
|
${CHMOD} a+x ${WRKSRC}/configure
|
|
|
|
.endif
|
1998-02-28 12:05:37 +01:00
|
|
|
|
1999-10-09 00:06:51 +02:00
|
|
|
post-build:
|
2004-03-31 04:22:04 +02:00
|
|
|
for file in ${WRKSRC}/fetchmail.man; do \
|
|
|
|
${MV} -f $$file $$file.tbl; \
|
2004-07-09 14:34:53 +02:00
|
|
|
${TBL} $$file.tbl > $$file; \
|
2004-03-31 04:22:04 +02:00
|
|
|
done
|
2000-02-05 20:51:13 +01:00
|
|
|
|
1998-02-28 12:05:37 +01:00
|
|
|
post-install:
|
2004-03-31 04:25:11 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
cd ${WRKSRC}; for file in \
|
|
|
|
FAQ NOTES FEATURES README COPYING \
|
|
|
|
fetchmail-FAQ.html fetchmail-features.html \
|
|
|
|
design-notes.html; \
|
|
|
|
do \
|
|
|
|
${INSTALL_DATA} $$file ${DOCDIR}; \
|
|
|
|
done
|
1998-02-28 12:05:37 +01:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|