summaryrefslogtreecommitdiff
path: root/mail/mailsync/Makefile
blob: c57e2c0846200ae360b4ed1b3bd721142291a893 (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
# $NetBSD: Makefile,v 1.16 2004/11/16 18:56:46 adrianp Exp $
#

DISTNAME=	mailsync_5.2.1.orig
PKGNAME=	mailsync-5.2.1
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=mailsync/}

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://mailsync.sourceforge.net/
COMMENT=	Mailsync is a way of synchronizing a collection of mailboxes

WRKSRC=		${WRKDIR}/${PKGNAME}
USE_BUILDLINK3=	yes
USE_GNU_TOOLS+=	make
USE_LANGUAGES+=	c c++
GNU_CONFIGURE=	yes

CONFIGURE_ARGS+=	--with-openssl=${BUILDLINK_PREFIX.openssl}/include
CONFIGURE_ARGS+=	--with-c-client=${BUILDLINK_DIR}/include/c-client
CONFIGURE_ARGS+=	--without-krb5

SUBST_CLASSES+=		conf
SUBST_STAGE.conf=	pre-configure
SUBST_FILES.conf=	configure doc/examples/mailsync doc/mailsync.1
SUBST_SED.conf=		-e "s|@BUILDLINK_DIR@|${BUILDLINK_DIR}|g" \
			-e "s|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g" \
			-e "s|/usr/share|${PREFIX}/share|g"
SUBST_MESSAGE.conf=	"Fixing configure script."

DOCS=	COPYING NEWS README THANKS TODO doc/ABSTRACT doc/HACKING

.include "../../mk/bsd.prefs.mk"

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mailsync
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailsync
	${INSTALL_PROGRAM} ${WRKSRC}/src/mailsync ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/doc/examples/mailsync \
		${PREFIX}/share/examples/mailsync/dot.mailsync
	${INSTALL_MAN} ${WRKSRC}/doc/mailsync.1 ${PREFIX}/man/man1
.	for d in ${DOCS}
		${INSTALL_DATA} ${WRKSRC}/${d} ${PREFIX}/share/doc/mailsync
.	endfor
.	undef d

.include "../../security/openssl/buildlink3.mk"
.include "../../mail/imap-uw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"