blob: 99464a97e289ad9863ee5c3af9269800618b407d (
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
|
# New ports collection makefile for: ledger
# Date created: June 25th, 2005
# Whom: wcarey
#
# $FreeBSD$
#
PORTNAME= ledger
PORTVERSION= 2.4.1
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} \
http://www.badplandude.com/~wcarey/ledger/
MASTER_SITE_SUBDIR=ledger
MAINTAINER= woodycarey@hotmail.com
COMMENT= John Wiegley's command line accounting program
LIB_DEPENDS= gmp:${PORTSDIR}/math/libgmp4 \
pcre:${PORTSDIR}/devel/pcre \
xmltok:${PORTSDIR}/www/libwww \
xmlparse:${PORTSDIR}/www/libwww
USE_GCC= 3.2+
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/w3c-libwww
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_TARGET?= --build=${ARCH}-portbld-freebsd${OSREL}
NO_INSTALL_MANPAGES= yes
INFO= ledger
# we need to write our own do-install, as the configure script produces
# a Makefile which respects $prefix, not ${PREFIX} during the install
do-install:
${INSTALL_DATA} ${WRKSRC}/ledger.info ${PREFIX}/info/
${INSTALL_PROGRAM} ${WRKSRC}/ledger ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/libledger.a ${PREFIX}/lib/
${MKDIR} ${PREFIX}/include/ledger
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/ledger/
${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.el ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/ledger.vim ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/ledger.texi ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/main.py ${EXAMPLESDIR}
post-install:
${CAT} pkg-message
.include <bsd.port.mk>
|