blob: a6ab6f7358b6aff32e2ba9d2b2c23534e0fac8ab (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: Nate Underwood <natey@natey.com>
# $FreeBSD$
PORTNAME= libpst
PORTVERSION= 0.6.63
PORTREVISION= 2
CATEGORIES= mail converters
MASTER_SITES= http://www.five-ten-sg.com/libpst/packages/ \
http://fossies.org/unix/privat/
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool for converting Outlook .pst files to mbox and other formats
LICENSE= GPLv2
LIB_DEPENDS= libgsf-1.so:${PORTSDIR}/devel/libgsf
GNU_CONFIGURE= yes
USES= iconv libtool pathfix gmake pkgconfig
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
CONFIGURE_ARGS+= --disable-python --enable-libpst-shared
USE_LDCONFIG= yes
PORTDOCS= *
OPTIONS_DEFINE= DOCS PST2DII
PST2DII_DESC= Allow Summation Document Image Information output
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPST2DII}
CONFIGURE_ARGS+= --enable-dii=yes
BUILD_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick
RUN_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick
LIB_DEPENDS+= libgd.so:${PORTSDIR}/graphics/gd
PLIST_SUB+= PST2DII=""
.else
CONFIGURE_ARGS+= --enable-dii=no
PLIST_SUB+= PST2DII="@comment "
.endif
post-patch:
${FIND} -X ${WRKSRC} -type f | ${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
.if ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/html_DATA =/s/COPYING //' \
${WRKSRC}/Makefile.in
.else
${REINPLACE_CMD} -e '/SUBDIRS =/s/=.*/= src man/' -e '/html_DATA =/d' \
${WRKSRC}/Makefile.in
.endif
.include <bsd.port.mk>
|