aboutsummaryrefslogtreecommitdiffstats
path: root/math/guppi/Makefile
blob: 585d3f54f7b739a716f0e74b3115c0f2c040750c (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
# New ports collection makefile for:    guppi
# Date created:             22 December 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   guppi
PORTVERSION=    0.40.3
PORTREVISION=   18
CATEGORIES= math gnome
MASTER_SITES=   GNOME
MASTER_SITE_SUBDIR= sources/Guppi/0.40
DISTNAME=   Guppi-${PORTVERSION}

MAINTAINER= gahr@FreeBSD.org
COMMENT=    A plotting program for GNOME

LIB_DEPENDS=    guile.21:${PORTSDIR}/lang/guile

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GNOME=  gnomeprefix gnomehack gnomelibs bonobo libglade gal
USE_PYTHON= yes
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-gnumeric --enable-explicit-python-linking
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libglade-1.0" \
        LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
        GNUMERIC_IDLDIR="${WRKDIR}/gnumeric"
PLIST_SUB=  VERSION="${PORTVERSION}"
.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

post-extract:
    @${MKDIR} ${WRKDIR}/gnumeric
    @${CP} ${FILESDIR}/GNOME_Gnumeric_Graph.idl ${WRKDIR}/gnumeric

post-patch:
    @${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
        ${WRKSRC}/configure \
        ${WRKSRC}/aclocal.m4

post-install:
    @${RMDIR} ${LOCALBASE}/share/gnome/help/guppi/C/images

.include <bsd.port.mk>