summaryrefslogtreecommitdiff
path: root/mail/vacation/Makefile
blob: 4cb66c702bfc5f51bbc1b54ab1f778556570b205 (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
# Created by: Adam McDougall <mcdouga9@egr.msu.edu>
# $FreeBSD$

PORTNAME=	vacation
PORTVERSION=	3.3.0
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR=	pool/main/v/vacation/
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	mcdouga9@egr.msu.edu
COMMENT=	A email autoresponder, similar to vacation from sendmail

USE_BDB=	yes
CFLAGS+=	-L${LOCALBASE}/lib

MAN1=		vacation.1

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_FILES=	bin/vacation

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e 's|-ldb|-l${BDB_LIB_NAME}|g' \
		${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS+=|g' \
		${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|-O2||g' \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/vacation ${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/vacation.1 ${PREFIX}/man/man1/

.include <bsd.port.mk>