aboutsummaryrefslogtreecommitdiffstats
path: root/mail/libpst/Makefile
blob: 237304a9e4d599f9da1935f8d9a1cdde43dfb394 (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
40
41
42
# Created by: Nate Underwood <natey@natey.com>
# $FreeBSD$

PORTNAME=   libpst
PORTVERSION=    0.6.70
CATEGORIES= mail converters
MASTER_SITES=   http://www.five-ten-sg.com/libpst/packages/ \
        http://fossies.org/unix/privat/ \
        LOCAL/sunpoet

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Tool for converting Outlook .pst files to mbox and other formats

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libgsf-1.so:devel/libgsf

OPTIONS_DEFINE= DOCS PST2DII
OPTIONS_SUB=    yes
PST2DII_DESC=   Allow Summation Document Image Information output

CONFIGURE_ARGS= --disable-python --enable-libpst-shared
GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip
USE_LDCONFIG=   yes
USES=       gmake iconv libtool pathfix pkgconfig

PORTDOCS=   *

PST2DII_BUILD_DEPENDS=  convert:graphics/ImageMagick
PST2DII_CONFIGURE_OFF=  --enable-dii=no
PST2DII_CONFIGURE_ON=   --enable-dii=yes
PST2DII_LIB_DEPENDS=    libgd.so:graphics/gd
PST2DII_RUN_DEPENDS=    convert:graphics/ImageMagick

post-patch:
    @${GREP} -lr malloc.h ${WRKSRC}/ | ${XARGS} ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g'
    @${REINPLACE_CMD} -e 's|doc\/@PACKAGE@-@VERSION@|doc\/@PACKAGE@|g' ${WRKSRC}/Makefile.in ${WRKSRC}/html/Makefile.in
    @${REINPLACE_CMD} -e '/html_DATA =/ s|COPYING ||' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>