summaryrefslogtreecommitdiff
path: root/mail/epstools/Makefile
blob: 9dfe25bfb609c8313345a46e942953082a941492 (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
37
38
39
40
41
PORTNAME=	epstools
PORTVERSION=	1.8
CATEGORIES=	mail
MASTER_SITES=	http://www.inter7.com/eps/

MAINTAINER=	ismail@EnderUNIX.org
COMMENT=	EPS (Email Parsing System) sample tools
WWW=		https://www.inter7.com/index.php?page=eps

BUILD_DEPENDS=	${LOCALBASE}/lib/libeps.a:mail/eps
RUN_DEPENDS:=	${BUILD_DEPENDS}

PORTDOCS=	README

MAKE_ENV+=	DEFS="-I${LOCALBASE}/include/eps ${CFLAGS}"
SUB_FILES=	pkg-message

EXAMPLE_FILES=	addr.1 addr.2 addr.3 addr.4 email.1 email.2 virus.email
INSTALL_FILES=	address b64decode b64encode body fold full headers qpdecode \
		rewrite

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	@${REINPLACE_CMD} -e 's|^CC =|CC \?=|' \
		-e 's|^DEFS =|DEFS \?=|' \
		-e 's|^LIBS = -leps|LIBS = ${LOCALBASE}/lib/libeps.a|' \
			${WRKSRC}/Makefile

do-install:
.for f in ${INSTALL_FILES}
	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/eps-${f}
.endfor
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${EXAMPLE_FILES}
	${INSTALL_DATA} ${WRKSRC}/content/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>