aboutsummaryrefslogtreecommitdiff
path: root/finance/ledger/Makefile
blob: a03c03f80eb7079090ea5f694dd827e12b4a1618 (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
# New ports collection makefile for:   ledger
# Date created:        June 25th, 2005
# Whom:                wcarey
#
# $FreeBSD$
#

PORTNAME=	ledger
PORTVERSION=	2.6.3
CATEGORIES=	finance
MASTER_SITES=	http://cloud.github.com/downloads/jwiegley/${PORTNAME}/

MAINTAINER=	woodycarey@hotmail.com
COMMENT=	John Wiegley's command line accounting program

LICENSE=	BSD
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	gmp:${PORTSDIR}/math/gmp \
		pcre:${PORTSDIR}/devel/pcre \
		xmltok:${PORTSDIR}/www/libwww \
		xmlparse:${PORTSDIR}/www/libwww

USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/w3c-libwww
LDFLAGS+=	-L${LOCALBASE}/lib

NO_INSTALL_MANPAGES=	yes
INFO=	ledger

post-install:
	${MKDIR} ${EXAMPLESDIR}
	${MKDIR} ${EXAMPLESDIR}/scripts
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${EXAMPLESDIR}/scripts/
	${INSTALL_DATA} ${WRKSRC}/sample.dat ${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/setup.py ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/ledger.vim ${EXAMPLESDIR}
	${RM} -f ${PREFIX}/share/emacs/site-lisp/*.elc
	${CAT} pkg-message

.include <bsd.port.mk>