the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: gkrellweather2
Version: 2.0.6
Revision: 1016
Maintainer: None
Source: http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/gkrellweather-%v.tgz
Source-MD5: 458125fe9276db3733a6c4b0e27eca86
SourceDirectory: gkrellweather-%v
PatchFile: %n.patch
PatchFile-MD5: 3b78a43eb06bfd72630233103c8df737
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
Conflicts: gkrellweather
Depends: gkrellm2, wget, gtk+2-shlibs (>= 2.12.0-1), imlib-shlibs, pango1-xft2-ft219-shlibs (>= 1.18.4-4), glib2-shlibs (>= 2.14.0-1), atk1-shlibs (>= 1.20.0-1), libgettext3-shlibs, libiconv
BuildDepends: glitz, expat1, libpng3, cairo (>= 1.6-1), fontconfig2-dev (>= 2.4.1-1), freetype219 (>= 2.3.5-1), xft2-dev, gkrellm2-dev, gtk+2 (>= 2.12.0-1), imlib, pkgconfig (>= 0.21-1), libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, x11-dev, gtk+2-dev (>= 2.12.0-1), atk1 (>= 1.20.0-1), glib2-dev (>= 2.14.0-1), pango1-xft2-ft219-dev (>= 1.18.4-4), pixman (>= 0.10.0-1), fink (>= 0.24.12)
CompileScript: <<
#!/bin/sh -ev
export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
make PREFIX=%p LFLAGS="-bundle -bundle_loader %p/bin/gkrellm `pkg-config gtk+-2.0 --libs`" CFLAGS="-O2 -Wall -fPIC -I%p/include `pkg-config gtk+-2.0 --cflags`"
<<
InstallScript: <<
install -c -d -m 755 %i/lib/gkrellm2
install -c -d -m 755 %i/lib/gkrellm2/plugins
install -c -m 755 gkrellweather.so %i/lib/gkrellm2/plugins
install -c -d -m 755 %i/share/%n
install -c -m 755 GrabWeather %i/share/%n
<<
DocFiles: COPYING README ChangeLog
Description: Weather Module for GKrellM2
DescDetail: <<
Plugin for GKrellM2 that retrieves the weather forecast with wget.
<<
DescUsage: <<
Right-click on GKrellM2 and choose configure. 4-letter METAR stations
can be found at http://www.growlers.org/eolia/.
<<
DescPackaging: <<
Puts the GrabWeather script in %p/share/%n instead of %p/bin to
avoid a conflict with another package (wmweather).
Previously maintained by James Gibbs.
<<
License: GPL
Homepage: http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/index.html
diff -Nurb gkrellweather-2.0.6/gkrellweather.c gkrellweather-2.0.6-new/gkrellweather.c
--- gkrellweather-2.0.6/gkrellweather.c Mon Mar 31 06:12:57 2003
+++ gkrellweather-2.0.6-new/gkrellweather.c Mon Apr 7 22:37:34 2003
@@ -720,7 +720,7 @@
options.station[1] = c[1];
options.station[2] = c[2];
options.station[3] = c[3];
- sprintf(options.command, PREFIX "/bin/GrabWeather %s", options.station);
+ sprintf(options.command, "@PREFIX@/share/gkrellweather2/GrabWeather %s", options.station);
sprintf(options.filename, "%s/.wmWeatherReports/%s.dat",
getenv("HOME"), options.station);
net_update = FALSE;
@@ -983,7 +983,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, "@PREFIX@/share/gkrellweather2/GrabWeather %s", options.station);
sprintf(options.filename, "%s/.wmWeatherReports/%s.dat",
getenv("HOME"), options.station);
}