pkgsrc/misc/gkrellm-weather/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

35 lines
1,023 B
Makefile

# $NetBSD: Makefile,v 1.20 2005/08/10 20:56:19 jlam Exp $
DISTNAME= gkrellweather-2.0.6
PKGNAME= gkrellm-weather-2.0.6
PKGREVISION= 2
CATEGORIES= misc
MASTER_SITES= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/
EXTRACT_SUFX= .tgz
MAINTAINER= tripledes@eslack.org
HOMEPAGE= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/
COMMENT= Gkrellm2 weather plugin
DEPENDS+= wget>=1.8:../../net/wget
BUILD_USES_MSGFMT= YES
USE_TOOLS+= gmake perl:run pkg-config
USE_PKGLOCALEDIR= YES
BUILD_TARGET= gkrellweather.so
MAKE_ENV+= LOCALEDIR=${PREFIX}/${PKGLOCALEDIR}/locale \
enable_nls=1
pre-build:
${MV} ${WRKSRC}/GrabWeather ${WRKSRC}/GrabWeather.orig
${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
${SED} -e "s|/usr/local|${PREFIX}|" \
${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
${SED} -e "s|/usr/bin/perl|${PERL5}|" \
${WRKSRC}/GrabWeather.orig > ${WRKSRC}/GrabWeather
.include "../../sysutils/gkrellm/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"