pkgsrc/graphics/graphviz/Makefile
jlam 7820875fff Remove the abuse of buildlink that was pkg-config/buildlink3.mk. That
file's sole purpose was to provide a dependency on pkg-config and set
some environment variables.  Instead, turn pkg-config into a "tool"
in the tools framework, where the pkg-config wrapper automatically
adds PKG_CONFIG_LIBDIR to the environment before invoking the real
pkg-config.

For all package Makefiles that included pkg-config/buildlink3.mk, remove
that inclusion and replace it with USE_TOOLS+=pkg-config.
2005-08-10 20:56:10 +00:00

53 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.39 2005/08/10 20:56:18 jlam Exp $
#
DISTNAME= graphviz-2.2.1
CATEGORIES= graphics
MASTER_SITES= http://www.graphviz.org/pub/graphviz/ARCHIVE/
MAINTAINER= seb@NetBSD.org
HOMEPAGE= http://www.graphviz.org/
COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs
BUILDLINK_DEPENDS.gd+= gd>=2.0.33nb1
DIST_SUBDIR= ${PKGNAME_NOREV}
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
XAW_TYPE= standard
PKGCONFIG_OVERRIDE= */*.pc */*/*.pc
PKGCONFIG_OVERRIDE_STAGE= post-build
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ENV+= TCLCONFIG=${TCLCONFIG_SH}
CONFIGURE_ENV+= TKCONFIG=${TKCONFIG_SH}
CONFIGURE_ENV+= X11PREFIX=${X11PREFIX} X11BASE=${X11BASE}
# Dynagraph is left out for now
#UNLIMIT_RESOURCES= datasize stacksize memorysize
CONFIGURE_ARGS+= --without-dynagraph
# the upstream tarball still contains *.orig files
post-extract:
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
# prevent another config.status run
pre-build:
${TOUCH} ${WRKSRC}/Makefile
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"