aboutsummaryrefslogtreecommitdiffstats
path: root/mail/bsmtp/Makefile
blob: 50c8da64c718d32f64f26d2b044bded6169d4c43 (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
# New ports collection makefile for:   bsmtp
# Date created:                2000-10-05
# Whom:                        Christian Weisgerber <naddy@mips.inka.de>
#
# $FreeBSD$

PORTNAME=   bsmtp
PORTVERSION=    1.02
PORTREVISION=   2
CATEGORIES= mail
MASTER_SITES=   http://www.stud.uni-karlsruhe.de/~uk1o/bsmtp/

MAINTAINER= naddy@FreeBSD.org

WRKSRC=     ${WRKDIR}/${PORTNAME}
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --redo

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500024
UUPREFIX=   /usr
.else
RUN_DEPENDS=    ${LOCALBASE}/bin/uux:${PORTSDIR}/net/freebsd-uucp
UUPREFIX=   ${LOCALBASE}
.endif

post-patch:
    @${CP} ${WRKSRC}/bsmtp.m4.8.9.in ${WRKSRC}/bsmtp.m4.8.10.in
    @${CP} ${FILESDIR}/bsmtp.m4.*.in ${WRKSRC}/

pre-configure:
    @${SED} <${FILESDIR}/config.sed >${WRKSRC}/config.sed \
        -e 's:%%CC%%:${CC}:' \
        -e 's:%%CFLAGS%%:${CFLAGS}:' \
        -e 's:%%PREFIX%%:${PREFIX}:' \
        -e 's:%%UUPREFIX%%:${UUPREFIX}:'

post-install:
    ${MKDIR} ${PREFIX}/share/doc/bsmtp
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bsmtp/

.include <bsd.port.post.mk>