summaryrefslogtreecommitdiff
path: root/mail/imap-uw/Makefile
blob: 6b07f8ef59d0aff94f753ff3328b69e2b84d833b (plain) (blame)
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
47
48
49
50
51
# New ports collection makefile for:	imap-uw
# Version required:	4.2
# Date created:		9 Jan 1997
# Whom:			pst
#
# $Id: Makefile,v 1.20 1998/10/23 18:42:49 asami Exp $
#

DISTNAME=	imap-4.2
PKGNAME=	imap-uw-4.2
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.cac.washington.edu/imap/old/ \
		http://www.freebsd.org/~steve/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	imap-uw@freebsd.ady.ro

ALL_TARGET=	bsf
MAN8=		ipopd.8 imapd.8

#pre-build:
#	@chmod 755 ${WRKSRC}/src/osdep/unix/drivers ${WRKSRC}/src/osdep/unix/mkauths

# this rule currently isn't called or used, because it's not sufficient to
# install just the .a file and mail.h, so we shouldn't install anything at all!
install-lib:
	${INSTALL_DATA} ${WRKSRC}/c-clinet/mail.h ${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/c-client/c-client.a ${PREFIX}/lib/libc-client.a

do-install:
	${INSTALL_DATA} ${WRKSRC}/c-client/${SHLIB} ${PREFIX}/lib
	${LN} -sf ${SHLIB} ${PREFIX}/lib/libc-client.so
	${INSTALL_PROGRAM} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec
	${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec
	${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec
	${INSTALL_PROGRAM} ${WRKSRC}/mtest/mtest ${PREFIX}/bin/mboxtest
	${INSTALL_MAN} \
		${WRKSRC}/src/imapd/imapd.8c ${PREFIX}/man/man8/imapd.8
	${INSTALL_MAN} \
		${WRKSRC}/src/ipopd/ipopd.8c ${PREFIX}/man/man8/ipopd.8

post-install:
	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib

.include <bsd.port.mk>

.if ${PORTOBJFORMAT} == "elf"
SHLIB=	libc-client.so.2
.else
SHLIB=	libc-client.so.2.1
.endif