summaryrefslogtreecommitdiffstats
path: root/converters/ytnef/Makefile
blob: 53da92046743c70486cbeb4b0e5bea3acb3f43ae (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
# Created by: Rodrigo Graeff <delphus@gmail.com>
# $FreeBSD$

PORTNAME=	ytnef
PORTVERSION=	2.6
PORTREVISION=	2
CATEGORIES=	converters mail
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Unpack data in MS Outlook TNEF format

LICENSE=	GPLv2

LIB_DEPENDS=	libytnef.so:${PORTSDIR}/devel/libytnef
RUN_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools

USES=		perl5 shebangfix
SHEBANG_FILES=	src/ytnef/*.pl
USE_PERL5=	run
GNU_CONFIGURE=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

PORTDOCS=	AUTHORS NEWS README
PLIST_FILES=	bin/ytnef bin/ytnefprint bin/ytnefprocess.pl

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share|' \
		${WRKSRC}/src/ytnef/*.pl

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud