aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmail-autoresponder/Makefile
blob: a01724cfc496463639365d8e9215218e4ad47dae (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
# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$

PORTNAME=   qmail-autoresponder
PORTVERSION=    0.98
CATEGORIES= mail
MASTER_SITES=   http://untroubled.org/${PORTNAME}/archive/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Rate-limited autoresponder for qmail

LIB_DEPENDS=    libbg.so:devel/bglibs

USES=       mysql

CFLAGS+=    -I${LOCALBASE}/include -I${LOCALBASE}/include/bglibs
LDFLAGS+=   -L${LOCALBASE}/lib/mysql -L${LOCALBASE}/lib/bglibs

PROGS=      qmail-autoresponder qmail-autoresponder-mysql
DOCS=       NEWS README TODO procedure.txt schema.mysql

ALL_TARGET= ${PROGS}

OPTIONS_DEFINE= DOCS

do-configure:
    ${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin"      > ${WRKSRC}/conf-bin
    ${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man"   > ${WRKSRC}/conf-man
    ${ECHO_CMD} "${CC} ${CFLAGS}"           > ${WRKSRC}/conf-cc
    ${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}"     > ${WRKSRC}/conf-ld

do-install:
    cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGS} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/qmail-autoresponder.1 ${STAGEDIR}${MANPREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>