diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2002-11-24 04:14:55 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2002-11-24 04:14:55 +0000 |
commit | 69606f2f5ef1dc0a538463634f5ffa00744b8f7f (patch) | |
tree | 3487839bebc5c34c5cb0a054ad29bbbf279d5c54 /misc/gkrellweather2/files | |
parent | eb2e89482698515a08051937f39c428442df3b5b (diff) | |
download | ports-69606f2f5ef1dc0a538463634f5ffa00744b8f7f.tar.gz ports-69606f2f5ef1dc0a538463634f5ffa00744b8f7f.zip |
Notes
Diffstat (limited to 'misc/gkrellweather2/files')
-rw-r--r-- | misc/gkrellweather2/files/patch-Makefile | 33 | ||||
-rw-r--r-- | misc/gkrellweather2/files/patch-gkrellweather.c | 20 |
2 files changed, 53 insertions, 0 deletions
diff --git a/misc/gkrellweather2/files/patch-Makefile b/misc/gkrellweather2/files/patch-Makefile new file mode 100644 index 000000000000..4e3538196a00 --- /dev/null +++ b/misc/gkrellweather2/files/patch-Makefile @@ -0,0 +1,33 @@ +--- Makefile.orig Sun Nov 24 04:00:54 2002 ++++ Makefile Sun Nov 24 04:07:15 2002 +@@ -8,24 +8,20 @@ + + OBJS = gkrellweather.o + ++all: gkrellweather.so ++ + gkrellweather.so: $(OBJS) +- $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread ++ ${CC} ${OBJS} ${PTHREAD_LIBS} -DVERSION=\"${VERSION}\" -o gkrellweather.so ${LFLAGS} ${LIBS} + + clean: + rm -f *.o core *.so* *.bak *~ + + gkrellweather.o: gkrellweather.c +- $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c gkrellweather.c ++ ${CC} ${CFLAGS} ${PTHREAD_CFLAGS} -DVERSION=\"$(VERSION)\" -c gkrellweather.c + + install: +- if [ -d /usr/lib/gkrellm2/plugins/ ] ; then \ +- install -c -s -m 644 gkrellweather.so /usr/lib/gkrellm2/plugins/ ; \ +- elif [ -d /usr/local/lib/gkrellm2/plugins/ ] ; then \ +- install -c -s -m 644 gkrellweather.so /usr/local/lib/gkrellm2/plugins/ ; \ +- else \ +- install -D -c -s -m 644 gkrellweather.so /usr/local/lib/gkrellm2/plugins/gkrellweather.so ; \ +- fi +- install -c -m 755 GrabWeather /usr/local/bin ++ ${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins ++ ${INSTALL_DATA} gkrellweather.so ${PREFIX}/libexec/gkrellm2/plugins + + uninstall: + rm -f /usr/lib/gkrellm2/plugins/gkrellweather.so diff --git a/misc/gkrellweather2/files/patch-gkrellweather.c b/misc/gkrellweather2/files/patch-gkrellweather.c new file mode 100644 index 000000000000..bc8f8d34adaa --- /dev/null +++ b/misc/gkrellweather2/files/patch-gkrellweather.c @@ -0,0 +1,20 @@ +--- gkrellweather.c.orig Sun Nov 24 04:49:42 2002 ++++ gkrellweather.c Sun Nov 24 04:50:58 2002 +@@ -720,7 +720,7 @@ + options.station[1] = c[1]; + options.station[2] = c[2]; + options.station[3] = c[3]; +- sprintf(options.command, "/usr/local/bin/GrabWeather %s", options.station); ++ sprintf(options.command, "GrabWeather %s", options.station); + sprintf(options.filename, "%s/.wmWeatherReports/%s.dat", + getenv("HOME"), options.station); + net_update = FALSE; +@@ -981,7 +981,7 @@ + options.windspeed_unit = 1; + options.pressure_unit = 1; + strcpy(options.station, DEFAULT_STATION_ID); +- sprintf(options.command, "/usr/share/gkrellm/GrabWeather %s", options.station); ++ sprintf(options.command, "GrabWeather %s", options.station); + sprintf(options.filename, "%s/.wmWeatherReports/%s.dat", + getenv("HOME"), options.station); + } |