aboutsummaryrefslogtreecommitdiffstats
path: root/finance/libofx/Makefile
blob: 05cd84b6ac84557a0c09ef9df306044b0bf6c33e (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
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: Glenn Johnson <glennpj@charter.net>
# $FreeBSD$

PORTNAME=   libofx
PORTVERSION=    0.9.5
PORTREVISION=   1
CATEGORIES= finance
MASTER_SITES=   SF

MAINTAINER= jhale@FreeBSD.org
COMMENT=    OpenSource implementation of the OFX (Open Financial eXchange)

LIB_DEPENDS=    curl:${PORTSDIR}/ftp/curl \
        xml\\+\\+-2.6.2:${PORTSDIR}/textproc/libxml++26 \
        osp.5:${PORTSDIR}/textproc/opensp

USE_GCC=    any
USES=       iconv pkgconfig
USE_GMAKE=  yes
USE_AUTOTOOLS=  aclocal autoheader automake autoconf libtool
ACLOCAL_ARGS=   -I m4
AUTOMAKE_ARGS=  --add-missing
CONFIGURE_ARGS= --disable-doxygen --disable-dot --disable-gengetopt \
        --with-opensp-includes=${LOCALBASE}/include/OpenSP \
        --with-opensp-libs=${LOCALBASE}/lib
USE_LDCONFIG=   yes

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

LICENSE=    GPLv2

MAN1=       ofxconnect.1 \
        ofxdump.1

PORTDOCS=   *

OPTIONS_DEFINE= APIDOC
APIDOC_DESC=    Install full API documentation

NO_STAGE=   yes
.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for file in AUTHORS ChangeLog INSTALL NEWS README totest.txt
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.if ${PORT_OPTIONS:MAPIDOC}
    @(cd ${WRKSRC}/doc; ${COPYTREE_SHARE} html ${DOCSDIR})
.endif
.endif

.include <bsd.port.mk>