pkgsrc/misc/gkrellm-weather/Makefile
wiz e8d8834f6a Bump PKGREVISION for libpng shlib name change.
Also add some patches to remove use of deprecated symbols and fix other
problems when looking for or compiling against libpng-1.4.x.
2010-06-13 22:43:46 +00:00

45 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2010/06/13 22:44:58 wiz Exp $
DISTNAME= gkrellweather-2.0.7
PKGNAME= gkrellm-weather-2.0.7
PKGREVISION= 4
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
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake msgfmt perl:run pkg-config
USE_PKGLOCALEDIR= YES
REPLACE_PERL= GrabWeather
BUILD_TARGET= gkrellweather.so
MAKE_ENV+= LOCALEDIR=${PREFIX}/${PKGLOCALEDIR}/locale
MAKE_ENV+= enable_nls=1
MAKE_ENV+= PREFIX=${PREFIX:Q}
INSTALLATION_DIRS= bin lib
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/GrabWeather ${DESTDIR}${PREFIX}/bin
${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib/gkrellm2/plugins
${INSTALL_LIB} ${WRKSRC}/gkrellweather.so \
${DESTDIR}${PREFIX}/lib/gkrellm2/plugins
cd ${WRKSRC}/po && for f in *.mo; do \
localedir=${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale; \
modir=$${localedir}/$$(basename $$f .mo)/LC_MESSAGES; \
${INSTALL_DATA_DIR} $${modir}; \
${INSTALL_DATA} $$f $${modir}/gkrellweather.mo; \
done
.include "../../sysutils/gkrellm/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"