1 # $NetBSD: Makefile,v 1.47 2013/02/06 23:22:55 jperkin Exp $
3 DISTNAME
= gkrellweather-2.0
.7
4 PKGNAME
= gkrellm-weather-2.0
.7
7 MASTER_SITES
= http
://kmlinux.fjfi.cvut.cz
/~makovick
/gkrellm
/
10 MAINTAINER
= tripledes@eslack.org
11 HOMEPAGE
= http
://kmlinux.fjfi.cvut.cz
/~makovick
/gkrellm
/
12 COMMENT
= Gkrellm2 weather plugin
14 DEPENDS
+= wget
>=1.8:..
/..
/net
/wget
16 USE_TOOLS
+= gmake msgfmt perl
:run pkg-config
18 REPLACE_PERL
= GrabWeather
19 BUILD_TARGET
= gkrellweather.so
21 LOCALEDIR
= ${PREFIX}/${PKGLOCALEDIR}/locale
22 INSTALLATION_DIRS
= bin lib lib
/gkrellm2
/plugins
24 MAKE_ENV
+= LOCALEDIR
=${LOCALEDIR}
25 MAKE_ENV
+= enable_nls
=1
28 ${INSTALL_SCRIPT} ${WRKSRC}/GrabWeather
${DESTDIR}${PREFIX}/bin
29 ${INSTALL_LIB} ${WRKSRC}/gkrellweather.so \
30 ${DESTDIR}${PREFIX}/lib
/gkrellm2
/plugins
31 set
-e
; cd
${WRKSRC}/po
&& for f in
*.mo
; do \
32 base
=`basename "$$f" .mo`; \
33 modir
=${DESTDIR}${LOCALEDIR}/"$${base}"/LC_MESSAGES
; \
34 ${INSTALL_DATA_DIR} "$${modir}"; \
35 ${INSTALL_DATA} "$$f" "$${modir}"/gkrellweather.mo
; \
38 .
include "../../sysutils/gkrellm/buildlink3.mk"
39 .
include "../../x11/gtk2/buildlink3.mk"
40 .
include "../../mk/pthread.buildlink3.mk"
42 .
include "../../mk/bsd.pkg.mk"