summaryrefslogtreecommitdiff
path: root/misc/gkrellweather2/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/gkrellweather2/files')
-rw-r--r--misc/gkrellweather2/files/extra-patch-lrintf11
-rw-r--r--misc/gkrellweather2/files/patch-Makefile17
2 files changed, 23 insertions, 5 deletions
diff --git a/misc/gkrellweather2/files/extra-patch-lrintf b/misc/gkrellweather2/files/extra-patch-lrintf
new file mode 100644
index 000000000000..aacc5a32a00d
--- /dev/null
+++ b/misc/gkrellweather2/files/extra-patch-lrintf
@@ -0,0 +1,11 @@
+--- gkrellweather.c.orig Wed Mar 2 00:23:34 2005
++++ gkrellweather.c Wed Mar 2 00:28:58 2005
+@@ -7,6 +7,8 @@
+ #include <gkrellm2/gkrellm.h>
+ #include <math.h>
+
++#define lrintf(x) (int)rintf(x)
++
+ #define DEFAULT_STATION_ID "YSSY"
+
+ #define STYLE_NAME "weather"
diff --git a/misc/gkrellweather2/files/patch-Makefile b/misc/gkrellweather2/files/patch-Makefile
index d4212135385b..63618847d54f 100644
--- a/misc/gkrellweather2/files/patch-Makefile
+++ b/misc/gkrellweather2/files/patch-Makefile
@@ -1,9 +1,9 @@
---- Makefile.orig Mon Mar 31 13:12:57 2003
-+++ Makefile Sun Jul 13 13:58:11 2003
+--- Makefile.orig Sun Feb 27 14:54:47 2005
++++ Makefile Wed Mar 2 00:22:17 2005
@@ -1,9 +1,9 @@
PKGNAME = gkrellweather
- VERSION = 2.0.6
--CFLAGS = -O2 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
+ VERSION = 2.0.7
+-CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
+CFLAGS += -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
LIBS = `pkg-config gtk+-2.0 --libs`
LFLAGS = -shared
@@ -12,7 +12,14 @@
LOCALEDIR := $(PREFIX)/share/locale
-@@ -20,7 +20,7 @@
+@@ -14,13 +14,13 @@
+ CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
+ export PKGNAME LOCALEDIR
+
+-CC = gcc
++CC ?= gcc
+
+ OBJS = gkrellweather.o
gkrellweather.so: $(OBJS)
(cd po && ${MAKE} all )