pkgsrc/math/guppi/Makefile
jmmv c8cb1c5b0d Drop the disctinction of xdg and xdg-x11 from USE_DIRS POV. We can choose
which one is required in an automatic way by checking USE_X11BASE.  This
simplifies things and avoids possible problems in the future due to confusion.
2004-04-14 19:30:22 +00:00

50 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.39 2004/04/14 19:30:22 jmmv Exp $
DISTNAME= Guppi-0.40.3
PKGNAME= ${DISTNAME:S/G/g/}
PKGREVISION= 9
CATEGORIES= math graphics
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/Guppi/0.40/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.gnome.org/guppi/
COMMENT= Plot program with integrated statistics capabilities
.if exists(/usr/include/wctype.h)
#
# "guppi" only accepts newer versions of the "gnumeric" package which
# cannot be build on all platforms. We only enable "gnumeric" support
# on platforms which can build the "gnumeric" 1.0.x packages.
#
DEPENDS+= gnumeric>=1.0.9:../../math/gnumeric
CONFIGURE_ARGS= --enable-gnumeric
PLIST_SUBST+= GNUMERIC=
.else
CONFIGURE_ARGS= --disable-gnumeric
PLIST_SUBST+= GNUMERIC="@comment "
.endif
USE_BUILDLINK2= YES
USE_DIRS+= xdg-1.1
USE_PKGLOCALEDIR= YES
USE_X11BASE= YES
USE_GNU_TOOLS+= make
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
post-install:
${TEST} ${PREFIX} = ${LOCALBASE} || \
${LN} -fs ${PREFIX}/share/aclocal/libguppi.m4 \
${LOCALBASE}/share/aclocal/libguppi.m4
.include "../../devel/bonobo/buildlink2.mk"
.include "../../devel/gal/buildlink2.mk"
.include "../../devel/libglade/buildlink2.mk"
.include "../../devel/readline/buildlink2.mk"
.include "../../lang/guile14/buildlink2.mk"
.include "../../print/gnome-print/buildlink2.mk"
.include "../../x11/gnome-libs/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"