summaryrefslogtreecommitdiff
path: root/x11/wmweather
diff options
context:
space:
mode:
authorrh <rh>2000-05-12 05:57:52 +0000
committerrh <rh>2000-05-12 05:57:52 +0000
commitaf5ce7cef5bbda2aa4cb53b2886aa30eff1528a7 (patch)
treed8f22cb033ea1d98b9329cc5be5ba72b9e145e0e /x11/wmweather
parent5d1f366fd084efc81357c71cd17ab4490d8e2e42 (diff)
downloadpkgsrc-af5ce7cef5bbda2aa4cb53b2886aa30eff1528a7.tar.gz
Initial import of wmWeather-1.31, a WindowMaker DockApp showing local
weather conditions.
Diffstat (limited to 'x11/wmweather')
-rw-r--r--x11/wmweather/Makefile22
-rw-r--r--x11/wmweather/files/md53
-rw-r--r--x11/wmweather/files/patch-sum4
-rw-r--r--x11/wmweather/patches/patch-aa46
-rw-r--r--x11/wmweather/patches/patch-ab13
-rw-r--r--x11/wmweather/pkg/COMMENT1
-rw-r--r--x11/wmweather/pkg/DESCR7
-rw-r--r--x11/wmweather/pkg/PLIST4
8 files changed, 100 insertions, 0 deletions
diff --git a/x11/wmweather/Makefile b/x11/wmweather/Makefile
new file mode 100644
index 00000000000..2c34a846392
--- /dev/null
+++ b/x11/wmweather/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/05/12 05:57:52 rh Exp $
+#
+
+DISTNAME= wmWeather-1.31
+WRKSRC= ${WRKDIR}/${DISTNAME}/Src
+CATEGORIES= x11
+MASTER_SITES= http://nis-www.lanl.gov/~mgh/WindowMaker/
+
+MAINTAINER= rh@netbsd.org
+HOMEPAGE= http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml
+
+DEPENDS+= windowmaker-*:../../x11/windowmaker
+
+USE_PERL5= yes
+USE_X11BASE= yes
+
+do-configure:
+ ${CP} ${WRKSRC}/GrabWeather ${WRKSRC}/GrabWeather.orig
+ ${SED} "s:/usr/bin/perl:${LOCALBASE}/bin/perl:g" \
+ <${WRKSRC}/GrabWeather.orig >${WRKSRC}/GrabWeather
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/wmweather/files/md5 b/x11/wmweather/files/md5
new file mode 100644
index 00000000000..4d01815e16d
--- /dev/null
+++ b/x11/wmweather/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/05/12 05:57:52 rh Exp $
+
+MD5 (wmWeather-1.31.tar.gz) = f04693aa86d22099162cff3d0b5c9275
diff --git a/x11/wmweather/files/patch-sum b/x11/wmweather/files/patch-sum
new file mode 100644
index 00000000000..888061837a8
--- /dev/null
+++ b/x11/wmweather/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/05/12 05:57:52 rh Exp $
+
+MD5 (patch-aa) = 06f0fb9cbdf8e9c4fae2a9479673f756
+MD5 (patch-ab) = 71e6ebf9ecef200416579952007bacc2
diff --git a/x11/wmweather/patches/patch-aa b/x11/wmweather/patches/patch-aa
new file mode 100644
index 00000000000..27e949b0c74
--- /dev/null
+++ b/x11/wmweather/patches/patch-aa
@@ -0,0 +1,46 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/05/12 05:57:52 rh Exp $
+
+--- Makefile.orig Wed Mar 17 01:59:39 1999
++++ Makefile Tue May 2 13:20:57 2000
+@@ -1,8 +1,6 @@
+-CC = gcc
+-CFLAGS = -O2 -Wall
+-INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
+-DESTDIR= /usr/X11R6
+-LIBDIR = -L/usr/X11R6/lib
++INCDIR = -I${PREFIX}/include
++DESTDIR= ${PREFIX}
++LIBDIR = -L${PREFIX}/lib -Wl,-R${PREFIX}/lib
+ # for linux
+ LIBS = -lXpm -lX11 -lXext
+ # for Solaris
+@@ -10,16 +8,14 @@
+ OBJS = wmWeather.o \
+ xutils.o
+
+-
+ .c.o:
+- $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
+-
++ $(CC) $(CFLAGS) -c $< -o $*.o $(INCDIR)
+
+ all: wmWeather.o wmWeather
+
+ wmWeather.o: wmWeather_master.xpm wmWeather_mask.xbm
+ wmWeather: $(OBJS)
+- $(CC) $(CFLAGS) $(SYSTEM) -o wmWeather $^ $(INCDIR) $(LIBDIR) $(LIBS)
++ $(CC) $(CFLAGS) $(SYSTEM) -o wmWeather ${OBJS} $(LIBDIR) $(LIBS)
+
+ clean:
+ for i in $(OBJS) ; do \
+@@ -28,7 +24,7 @@
+ rm -f wmWeather
+
+ install:: wmWeather
+- install -c -s -m 0755 wmWeather $(DESTDIR)/bin
+- install -c -m 0755 GrabWeather $(DESTDIR)/bin
+- install -c -m 0644 wmWeather.1 $(DESTDIR)/man/man1
++ ${BSD_INSTALL_PROGRAM} wmWeather $(DESTDIR)/bin
++ ${BSD_INSTALL_SCRIPT} GrabWeather $(DESTDIR)/bin
++ ${BSD_INSTALL_MAN} wmWeather.1 $(DESTDIR)/man/man1
+
diff --git a/x11/wmweather/patches/patch-ab b/x11/wmweather/patches/patch-ab
new file mode 100644
index 00000000000..7f8f112906e
--- /dev/null
+++ b/x11/wmweather/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/05/12 05:57:52 rh Exp $
+
+--- GrabWeather.orig Fri Apr 16 23:41:53 1999
++++ GrabWeather Tue May 2 13:50:28 2000
+@@ -49,7 +49,7 @@
+ # for some people? Dont know why... (Perhaps they have a ~/.wgetrc file
+ # that overrides command line options?).
+ #
+- $GrabCmd = "wget --proxy=off --passive-ftp --tries 0 -q -O $home/.wmWeatherReports/$StationID.TXT $URL";
++ $GrabCmd = "/usr/bin/ftp -o $home/.wmWeatherReports/$StationID.TXT $URL";
+ system "$GrabCmd";
+
+
diff --git a/x11/wmweather/pkg/COMMENT b/x11/wmweather/pkg/COMMENT
new file mode 100644
index 00000000000..73f0f5be3f3
--- /dev/null
+++ b/x11/wmweather/pkg/COMMENT
@@ -0,0 +1 @@
+WindowMaker DockApp showing local weather conditions
diff --git a/x11/wmweather/pkg/DESCR b/x11/wmweather/pkg/DESCR
new file mode 100644
index 00000000000..a975cfa0149
--- /dev/null
+++ b/x11/wmweather/pkg/DESCR
@@ -0,0 +1,7 @@
+ wmWeather displays your current local weather conditions. You need
+to give it a 4-character "METAR" station identifier code (most major
+airports have one). Shows station ID, time of last update (i.e. time
+the data was updated not the time the App last checked for data),
+temperature, dew point, pressure, humidity, and wind speed. The
+various entries can be forced to display in a variety of different
+units.
diff --git a/x11/wmweather/pkg/PLIST b/x11/wmweather/pkg/PLIST
new file mode 100644
index 00000000000..377fbb77509
--- /dev/null
+++ b/x11/wmweather/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/05/12 05:57:52 rh Exp $
+bin/wmWeather
+bin/GrabWeather
+man/man1/wmWeather.1