summaryrefslogtreecommitdiffstats
path: root/mail/imap-uw/Makefile
blob: 4509deda9cd7b571c9df67a43c57174ab7f42fba (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:	imap-uw
# Version required:	4.5
# Date created:		9 Jan 1997
# Whom:			pst
#
# $FreeBSD$
#

DISTNAME=	imap-4.5
PKGNAME=	imap-uw-4.5
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.cac.washington.edu/imap/old/ \
		ftp://ftp.funet.fi/pub/mirrors/ftp.cac.washington.edu/mail/old/ \
		ftp://ftp.uni-halle.de/pub/mail/pine/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	imap-uw@freebsd.ady.ro

Y2K=		http://www.washington.edu/imap/IMAP-FAQs/FAQ-00002.html

ALL_TARGET=	bsf
MAN8=		ipopd.8 imapd.8

SHLIBBASE=	c-client4
SHLIBMAJ=	5
SHLIBNAME=	lib${SHLIBBASE}.so.${SHLIBMAJ}
MAKE_ENV=	SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE}
PLIST_SUB=	SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE}

.include <bsd.port.pre.mk>

.if ${PORTOBJFORMAT} == "aout"
SHLIBNAME=	lib${SHLIBBASE}.so.${SHLIBMAJ}.0
.endif

post-configure:
	@${ECHO_MSG} ">> The c-client shared library will be named ${SHLIBNAME}"

do-install:
	${INSTALL_DATA} ${WRKSRC}/c-client/mail.h ${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/c-client/rfc822.h ${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/c-client/linkage.h ${PREFIX}/include
	${INSTALL} ${COPY} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
		${WRKSRC}/c-client/${SHLIBNAME} ${PREFIX}/lib
	${LN} -sf ${SHLIBNAME} ${PREFIX}/lib/lib${SHLIBBASE}.so
	${INSTALL_DATA} ${WRKSRC}/c-client/c-client.a \
		${PREFIX}/lib/lib${SHLIBBASE}.a
	${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.post.mk>
OpenPOWER on IntegriCloud