summaryrefslogtreecommitdiff
path: root/mail/imap-uw/Makefile
blob: b4cbc325374bef0a38a274b9f77ac1c52f412c8d (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
# $NetBSD: Makefile,v 1.3 1998/08/05 12:16:48 frueauf Exp $
#

DISTNAME=       imap-4.2
PKGNAME=        imap-uw-4.2
CATEGORIES=     mail
MASTER_SITES=	ftp://ftp.cac.washington.edu/imap/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	tv@netbsd.org

BUILD_DEPENDS=	${PREFIX}/bin/libtool:../../devel/libtool

CONFLICTS=	imap-uw-4.1

INST_PROG=	${PREFIX}/bin/libtool --mode=install ${INSTALL_PROGRAM}
INST_LIB=	${PREFIX}/bin/libtool --mode=install ${INSTALL_DATA}

do-configure:
	@${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/src/imapd/imapd.8c >${WRKSRC}/imapd.8
	@${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/src/ipopd/ipopd.8c >${WRKSRC}/ipopd.8

do-build:
	cd ${WRKSRC} && ${MAKE} neb PREFIX=${PREFIX} CC="${PREFIX}/bin/libtool ${CC}"

do-install:
	${INST_LIB} ${WRKSRC}/c-client/libimapuw.la ${PREFIX}/lib/
	@${RM} -f ${PREFIX}/lib/libimapuw.a
	${INST_PROG} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec/
	${INST_PROG} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec/
	${INST_PROG} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec/
	${INST_PROG} ${WRKSRC}/mtest/mtest ${PREFIX}/sbin/
	${INSTALL_MAN} ${WRKSRC}/imapd.8 ${PREFIX}/man/man8/
	${INSTALL_MAN} ${WRKSRC}/ipopd.8 ${PREFIX}/man/man8/
	${LN} -sf ipopd.8 ${PREFIX}/man/man8/ipop2d.8
	${LN} -sf ipopd.8 ${PREFIX}/man/man8/ipop3d.8

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