aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qtools/Makefile
blob: e19685c96fe72f9b0399e6f9573b489a1f696c4a (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
# New ports collection makefile for:    qtools
# Date created:             3 July 2001
# Whom:                 petef@databits.net
#
# $FreeBSD$
#

PORTNAME=   qtools
PORTVERSION=    0.55
CATEGORIES= mail
MASTER_SITES=   http://www.superscript.com/qtools/

MAINTAINER= petef@databits.net

RUN_DEPENDS=    ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail

ALL_TARGET= it
INSTALL_TARGET= setup check

.if exists(${PREFIX}/qmail/bin/qmail-send)
QMAIL_DIR?= ${PREFIX}/qmail
.else
QMAIL_DIR?= /var/qmail
.endif

NO_PACKAGE= A possibly inherited DJB-style license would prohibit \
        distribution of modified binary packages

post-patch:
    @${ECHO} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
    @${ECHO} "${CC} ${CFLAGS} ${STRIP}" > ${WRKSRC}/conf-ld
    @${PERL} -pi -e 's!/usr/local!${PREFIX}!g' ${WRKSRC}/conf-home

.include <bsd.port.mk>