summaryrefslogtreecommitdiff
path: root/misc/gkrellm-weather/Makefile
blob: 770615b6739332d327f29213b7b3a7a2ee1011d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.44 2012/10/03 21:56:42 wiz Exp $

DISTNAME=	gkrellweather-2.0.7
PKGNAME=	gkrellm-weather-2.0.7
PKGREVISION=	16
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

LOCALEDIR=		${PREFIX}/${PKGLOCALEDIR}/locale
INSTALLATION_DIRS=	bin lib lib/gkrellm2/plugins

MAKE_ENV+=	LOCALEDIR=${LOCALEDIR}
MAKE_ENV+=	enable_nls=1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/GrabWeather ${DESTDIR}${PREFIX}/bin
	${INSTALL_LIB} ${WRKSRC}/gkrellweather.so \
	    ${DESTDIR}${PREFIX}/lib/gkrellm2/plugins
	set -e; cd ${WRKSRC}/po && for f in *.mo; do \
	    base=`basename "$$f" .mo`;					\
	    modir=${DESTDIR}${LOCALEDIR}/"$${base}"/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"