aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cyrus2courier/Makefile
blob: 5d5b74d1dad838c162435c7833ce2ffab906b6c9 (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
# New ports collection makefile for:    cyrus2courier
# Date created:             21 Jun 2005
# Whom:                 Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=   cyrus2courier
DISTVERSION=    1.4
CATEGORIES= mail
MASTER_SITES=   http://www.madness.at/~mad/projects/ \
        http://critical.ch/distfiles/ \
        http://energy.critical.ch/distfiles/
EXTRACT_SUFX=   .tgz

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    A Cyrus-Imap to Maildir++ conversion utility

USE_GETOPT_LONG=yes

ALL_TARGET= build

PLIST_FILES=    bin/cyrus2courier

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
CFLAGS+=    -I${LOCALBASE}/include
MAKE_ARGS=  CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
.endif

post-patch:
    @${REINPLACE_CMD} '/^CFLAGS*/d; /^LDFLAGS*/d; /^CC*/d' \
        ${WRKSRC}/src/Makefile.FreeBSD

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.post.mk>