View | Details | Raw Unified | Return to bug 181066 | Differences between
and this patch

Collapse All | Expand All

(-)misc/gkrellweather2/Makefile (-25 / +18 lines)
Lines 1-40 Link Here
1
# New ports collection makefile for:	gkrellweather2
1
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
2
# Date Created:		24 Nov 2002
3
# Whom:			Jean-Yves Lefort <jylefort@brutele.be>
4
#
5
# $FreeBSD: head/misc/gkrellweather2/Makefile 322581 2013-07-09 21:26:48Z pav $
2
# $FreeBSD: head/misc/gkrellweather2/Makefile 322581 2013-07-09 21:26:48Z pav $
6
#
7
3
8
PORTNAME=	gkrellweather
4
PORTNAME=	gkrellweather
9
PORTVERSION=	2.0.7
5
PORTVERSION=	2.0.8
10
PORTREVISION=	9
11
CATEGORIES=	misc geography
6
CATEGORIES=	misc geography
12
MASTER_SITES=	http://makovick.googlepages.com/
7
MASTER_SITES=	https://sites.google.com/site/makovick/projects/
13
EXTRACT_SUFX=	.tgz
8
EXTRACT_SUFX=	.tgz
14
9
15
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	GKrellWeather is a weather plugin for GKrellM
11
COMMENT=	Weather plugin for GKrellM
12
13
LICENSE=	GPLv2 # (or later)
17
14
18
BUILD_DEPENDS=	${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
15
BUILD_DEPENDS=	${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
19
RUN_DEPENDS=	gkrellm:${PORTSDIR}/sysutils/gkrellm2
16
RUN_DEPENDS=	gkrellm:${PORTSDIR}/sysutils/gkrellm2
20
17
21
USE_GMAKE=	yes
18
FETCH_ARGS=	-Fpr
22
ALL_TARGET=	gkrellweather.so
23
24
MAKE_ENV=	enable_nls=1 PTHREAD_LIBS=${PTHREAD_LIBS}
25
19
26
.include <bsd.port.pre.mk>
20
USES=		gettext gmake
27
21
MAKE_ENV=	enable_nls=1
28
# uses C99 builtin lrintf
22
ALL_TARGET=	gkrellweather.so
29
.if ${ARCH} != "amd64"
30
EXTRA_PATCHES=	${FILESDIR}/extra-patch-lrintf
31
.endif
32
23
33
do-install:
24
do-install:
34
	${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins
25
	(cd ${WRKSRC} && ${INSTALL_SCRIPT} GrabWeather ${PREFIX}/bin)
35
	${INSTALL_DATA} ${WRKSRC}/gkrellweather.so ${PREFIX}/libexec/gkrellm2/plugins
26
	@${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins
36
	${MKDIR} ${PREFIX}/share/locale/ru/
27
	(cd ${WRKSRC} && ${INSTALL_DATA} gkrellweather.so \
37
	${INSTALL_DATA} ${WRKSRC}/po/ru.mo ${PREFIX}/share/locale/ru/LC_MESSAGES/gkrellweather.mo
28
		${PREFIX}/libexec/gkrellm2/plugins)
38
	${INSTALL_SCRIPT} ${WRKSRC}/GrabWeather ${PREFIX}/bin
29
	@${MKDIR} ${PREFIX}/share/locale/ru
30
	(cd ${WRKSRC}/po && ${INSTALL_DATA} ru.mo \
31
		${PREFIX}/share/locale/ru/LC_MESSAGES/gkrellweather.mo)
39
32
40
.include <bsd.port.post.mk>
33
.include <bsd.port.mk>
(-)misc/gkrellweather2/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gkrellweather-2.0.7.tgz) = ad902acd0ffb8adb1f0d838e57545d1f52a31ae33711b73d28929c2786a740ca
1
SHA256 (gkrellweather-2.0.8.tgz) = 06236ad489151019e71bab4ba63b4b8b06d58c58890caed8b1a28fdd05cde16d
2
SIZE (gkrellweather-2.0.7.tgz) = 19968
2
SIZE (gkrellweather-2.0.8.tgz) = 20227
(-)misc/gkrellweather2/files/extra-patch-lrintf (-11 lines)
Lines 1-11 Link Here
1
--- gkrellweather.c.orig	Wed Mar  2 00:23:34 2005
2
+++ gkrellweather.c	Wed Mar  2 00:28:58 2005
3
@@ -7,6 +7,8 @@
4
 #include <gkrellm2/gkrellm.h>
5
 #include <math.h>
6
 
7
+#define lrintf(x) (int)rintf(x)
8
+
9
 #define DEFAULT_STATION_ID      "YSSY"
10
 
11
 #define STYLE_NAME      "weather"
(-)misc/gkrellweather2/files/patch-Makefile (-1 / +1 lines)
Lines 24-30 Link Here
24
 gkrellweather.so: $(OBJS)
24
 gkrellweather.so: $(OBJS)
25
 	(cd po && ${MAKE} all )
25
 	(cd po && ${MAKE} all )
26
-	$(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
26
-	$(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
27
+	$(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) ${PTHREAD_LIBS}
27
+	$(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -pthread
28
 
28
 
29
 clean:
29
 clean:
30
 	(cd po && ${MAKE} clean )
30
 	(cd po && ${MAKE} clean )
(-)misc/gkrellweather2/files/patch-gkrellweather.c (-8 / +8 lines)
Lines 1-19 Link Here
1
--- gkrellweather.c.orig	Mon Mar 31 13:12:57 2003
1
--- gkrellweather.c.orig	Mon Mar 31 13:12:57 2003
2
+++ gkrellweather.c	Sun Jul 13 14:30:14 2003
2
+++ gkrellweather.c	Sun Jul 13 14:30:14 2003
3
@@ -983,7 +983,7 @@
3
@@ -986,7 +986,7 @@
4
     options.windspeed_unit = 1;
4
     options.windspeed_unit = 1;
5
     options.pressure_unit = 1;
5
     options.pressure_unit = 1;
6
     strcpy(options.station, DEFAULT_STATION_ID);
6
     strcpy(options.station, DEFAULT_STATION_ID);
7
-    sprintf(options.command, "/usr/share/gkrellm/GrabWeather %s", options.station);
7
-    snprintf(options.command, 512, "/usr/share/gkrellm/GrabWeather %s", options.station);
8
+    sprintf(options.command, "GrabWeather %s", options.station);
8
+    snprintf(options.command, 512, "GrabWeather %s", options.station);
9
     sprintf(options.filename, "%s/.wmWeatherReports/%s.dat",
9
     options.command[511] = 0;
10
             getenv("HOME"), options.station);
10
     snprintf(options.filename, 512, "%s/.wmWeatherReports/%s.dat",
11
 }
11
              getenv("HOME"), options.station);
12
@@ -993,6 +993,7 @@
12
@@ -998,6 +998,7 @@
13
 gkrellm_init_plugin(void)
13
 gkrellm_init_plugin(void)
14
 {
14
 {
15
     #ifdef ENABLE_NLS
15
     #ifdef ENABLE_NLS
16
+    	bindtextdomain(PACKAGE, LOCALEDIR);
16
+        bindtextdomain(PACKAGE, LOCALEDIR);
17
         bind_textdomain_codeset(PACKAGE, "UTF-8");
17
         bind_textdomain_codeset(PACKAGE, "UTF-8");
18
     #endif /* ENABLE_NLS */
18
     #endif /* ENABLE_NLS */
19
     style_id = gkrellm_add_meter_style(&air_mon, STYLE_NAME);
19
     style_id = gkrellm_add_meter_style(&air_mon, STYLE_NAME);
(-)misc/gkrellweather2/pkg-descr (-1 / +1 lines)
Lines 13-16 Link Here
13
- Display pressure in kPa, hPa and mmHg
13
- Display pressure in kPa, hPa and mmHg
14
- Display wind speeds in kmph, mps and beaufort scale
14
- Display wind speeds in kmph, mps and beaufort scale
15
15
16
WWW: http://makovick.googlepages.com/gkrellmplugins
16
WWW: https://sites.google.com/site/makovick/gkrellm-plugins

Return to bug 181066