aboutsummaryrefslogtreecommitdiffstats
path: root/converters/ytnef/Makefile
blob: 31f9b515cfbe72b01f8a6ecbfa7b9e42a1b97ce9 (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
39
# New ports collection makefile for:    ytnef
# Date created:     21 Feb 2005
# Whom:         Rodrigo Graeff <delphus@gmail.com>
#
# $FreeBSD$
#

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

MAINTAINER= delphus@gmail.com
COMMENT=    Unpack data in MS Outlook TNEF format

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

USE_PERL5_RUN=  yes
GNU_CONFIGURE=  yes

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

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

post-patch:
    @${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' \
        ${WRKSRC}/src/ytnef/ytnefprocess.pl

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>