summaryrefslogtreecommitdiff
path: root/finance/gnucash/Makefile
blob: 5d5edf3aa9b3e36f546e9079dafd63c6e14a1c6f (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
57
58
59
60
# $NetBSD: Makefile,v 1.24 2002/07/22 22:00:52 jlam Exp $

DISTNAME=		gnucash-1.6.6
PKGREVISION=		1
CATEGORIES=		finance
MASTER_SITES=		http://www.linas.org/pub/gnucash/gnucash/sources/stable/ \
			ftp://ftp.gnucash.org/pub/gnucash/sources/stable/ \
			${MASTER_SITE_SOURCEFORGE:=gnucash/}

MAINTAINER=		tron@netbsd.org
HOMEPAGE=		http://www.gnucash.org/
COMMENT=		Personal double-entry accounting program

DEPENDS+=		eperl-2.2.14:../../textproc/eperl
DEPENDS+=		g-wrap>=1.1.10:../../devel/g-wrap
DEPENDS+=		guppi>=0.40.0nb1:../../math/guppi
DEPENDS+=		{libperl>=${LIBPERL5_REQD},perl>=5.8.0}:../../lang/libperl
DEPENDS+=		popt>=1.5:../../devel/popt
DEPENDS+=		swig-1.1p5:../../devel/swig
DEPENDS+=		glib>=0.99.7:../../devel/glib
DEPENDS+=		gdk-pixbuf>=0.11.0nb1:../../graphics/gdk-pixbuf
DEPENDS+=		gnome-print>=0.29nb1:../../print/gnome-print
BUILD_DEPENDS+=		bison>=1.28:../../devel/bison


LIBPERL5_REQD=		${PERL5_REQD}

USE_GMAKE=		YES
USE_PERL5=		YES
USE_X11BASE=		YES
USE_LIBINTL=		YES
USE_LIBTOOL=		YES
LTCONFIG_OVERRIDE+=	${WRKSRC}/ltconfig

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--with-guile-config=${LOCALBASE}/bin/guile-config
CONFIGURE_ARGS+=	--without-included-gettext
CONFIGURE_ARGS+=	--with-perl-includes=${PERL5_ARCHLIB}
CONFIGURE_ARGS+=	--with-perl=${PERL5}

CONFIGURE_ENV+=		LOCALBASE="${LOCALBASE}"
CPPFLAGS+=		-I${LOCALBASE}/include
LIBS+=			-L${LOCALBASE}/lib/python${PYVERSSUFFIX}/config

.include "../../mk/bsd.prefs.mk"

.if (${OPSYS} == NetBSD)
CPPFLAGS+=		-I${WRKSRC}/include

post-extract:
	${MKDIR} ${WRKSRC}/include
	${LN} -s /usr/include/db.h ${WRKSRC}/include/db_185.h
.if !exists(/usr/include/wctype.h)
	${TOUCH} ${WRKSRC}/include/wctype.h
.endif
.endif

.include "../../lang/python/pyversion.mk"
.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"