aboutsummaryrefslogtreecommitdiffstats
path: root/finance/gnucash-devel/Makefile
blob: 39054d6b82235e76207148751f3921bc30b23733 (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
56
57
58
59
60
61
62
# ex:ts=8
# Ports collection makefile for:  gnucash
# Date created:           Mon Feb 03, 1997
# Whom:               David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#

PORTNAME=   gnucash
PORTVERSION=    1.4.2
CATEGORIES= deskutils gnome
MASTER_SITES=   ftp://ftp.gnucash.org/pub/gnucash/gnucash/sources/stable/ \
        http://www.gnucash.org/pub/gnucash/sources/stable/ \
        http://www.linas.org/pub/ \
        ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gnucash

MAINTAINER=     obrien@FreeBSD.org

BUILD_DEPENDS=  swig:${PORTSDIR}/devel/SWIG \
        g-wrap:${PORTSDIR}/devel/g-wrap \
        eperl:${PORTSDIR}/lang/eperl
LIB_DEPENDS=    intl.1:${PORTSDIR}/devel/gettext \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        png.4:${PORTSDIR}/graphics/png \
        gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
        glib12.3:${PORTSDIR}/devel/glib12 \
        gnome.4:${PORTSDIR}/x11/gnomelibs \
        guile.9:${PORTSDIR}/lang/guile \
        xml.5:${PORTSDIR}/textproc/libxml
site_perl=  ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
RUN_DEPENDS=    slib48:${PORTSDIR}/lang/slib \
        gnuplot:${PORTSDIR}/math/gnuplot \
        ${site_perl}/HTML/Base.pm:${PORTSDIR}/www/p5-HTML \
        ${site_perl}/LWP.pm:${PORTSDIR}/www/p5-libwww \
        ${site_perl}/URI.pm:${PORTSDIR}/net/p5-URI \
        ${site_perl}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser

USE_GMAKE=  yes
USE_XPM=    yes
GNU_CONFIGURE=  yes
USE_PERL5=  yes
#USE_X_PREFIX=  yes
GTK_CONFIG?=    ${X11BASE}/bin/gtk12-config
GLIB_CONFIG?=   ${LOCALBASE}/bin/glib12-config
CONFIGURE_ENV=  MAKE=gmake \
        CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
        LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
        GTK_CONFIG="${GTK_CONFIG}" \
        GLIB_CONFIG="${GLIB_CONFIG}"
CONFIGURE_ARGS= --with-glib-config=${GLIB_CONFIG}
MAN1=       gnc-prices.1 gnucash.1


post-install:
    @strip ${PREFIX}/bin/gnucash
    ${LDCONFIG} -m ${PREFIX}/lib/
    ${LDCONFIG} -m ${PREFIX}/lib/gnucash/perl
    cd ${LOCALBASE}/share/guile && ${LN} -sf ../slib .
    guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"

.include <bsd.port.mk>