aboutsummaryrefslogtreecommitdiff
path: root/mail/vacation/Makefile
blob: a8a7e7f160b854615d513eb6ae4f7a17b9026093 (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
PORTNAME=	vacation
PORTVERSION=	3.3.3
CATEGORIES=	mail
MASTER_SITES=	DEBIAN
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	cy@FreeBSD.org
COMMENT=	Email autoresponder, similar to vacation from sendmail

PORTSCOUT=	ignore:1

USES=		bdb

CFLAGS+=	-L${LOCALBASE}/lib

WRKSRC=		${WRKDIR}/work

PLIST_FILES=	bin/vacation man/man1/vacation.1.gz

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 ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/vacation.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>