pkgsrc/graphics/dia/Makefile.common
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

54 lines
1.7 KiB
Text

# $NetBSD: Makefile.common,v 1.8 2005/08/10 20:56:17 jlam Exp $
#
DISTNAME= dia-0.94
PKGNAME= ${DISTNAME:S/dia-/dia${DIA_SUBPKG}-/}
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/dia/0.94/}
MAINTAINER= jmcneill@NetBSD.org
HOMEPAGE= http://www.gnome.org/projects/dia/
COMMENT= Program for creating diagrams of all kinds
DISTINFO_FILE= ${.CURDIR}/../../graphics/dia/distinfo
PATCHDIR= ${.CURDIR}/../../graphics/dia/patches
GNU_CONFIGURE= YES
USE_TOOLS+= gmake pkg-config
USE_LIBTOOL= YES
USE_PKGLOCALEDIR= YES
CONFIGURE_ARGS+= --without-python
SUBST_CLASSES+= intl
SUBST_MESSAGE.intl= "Fixing path to installed files."
SUBST_STAGE.intl= pre-configure
SUBST_FILES.intl= lib/intl.c
SUBST_SED.intl= -e 's,%%PREFIX%%,${PREFIX},g'
.if empty(PKGNAME:Mdia-[0-9]*)
DEPENDS+= dia>=0.94nb1:../../graphics/dia
BUILDLINK_DEPMETHOD.gettext-lib+= build
BUILDLINK_DEPMETHOD.glib2+= build
BUILDLINK_DEPMETHOD.pango+= build
BUILDLINK_DEPMETHOD.pkgconfig+= build
BUILDLINK_DEPMETHOD.freetype2+= build
BUILDLINK_DEPMETHOD.libart2+= build
BUILDLINK_DEPMETHOD.intltool+= build
BUILDLINK_DEPMETHOD.libxml2+= build
BUILDLINK_DEPMETHOD.libxslt+= build
BUILDLINK_DEPMETHOD.scrollkeeper+= build
BUILDLINK_DEPMETHOD.gtk2+= build
.endif
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/libart2/buildlink3.mk"
.include "../../textproc/intltool/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../textproc/scrollkeeper/omf.mk"
.include "../../x11/gtk2/buildlink3.mk"