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.
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2005/08/10 20:56:15 jlam Exp $
|
|
|
|
DISTNAME= libstatgrab-0.11
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.uk.i-scream.org/pub/i-scream/libstatgrab/ \
|
|
http://ftp.uk.i-scream.org/pub/i-scream/libstatgrab/ \
|
|
ftp://ftp2.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/ \
|
|
http://ftp2.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/ \
|
|
ftp://ftp.i-scream.org/pub/i-scream/libstatgrab/ \
|
|
http://ftp.i-scream.org/pub/i-scream/libstatgrab/
|
|
|
|
MAINTAINER= tim@bishnet.net
|
|
HOMEPAGE= http://www.i-scream.org/libstatgrab/
|
|
COMMENT= Provides a useful interface to system statistics
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_TOOLS+= pkg-config
|
|
PKGCONFIG_OVERRIDE= libstatgrab.pc.in
|
|
|
|
CONFIGURE_ARGS+= --disable-examples
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
BUILD_DEFS+= WITHOUT_STATGRAB
|
|
BUILD_DEFS+= WITHOUT_SAIDAR
|
|
|
|
.if defined(WITHOUT_STATGRAB)
|
|
CONFIGURE_ARGS+= --disable-statgrab
|
|
PLIST_SUBST+= STATGRAB="@comment "
|
|
.else
|
|
PLIST_SUBST+= STATGRAB=""
|
|
.endif
|
|
|
|
.if defined(WITHOUT_SAIDAR)
|
|
CONFIGURE_ARGS+= --disable-saidar
|
|
PLIST_SUBST+= SAIDAR="@comment "
|
|
.else
|
|
PLIST_SUBST+= SAIDAR=""
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|