summaryrefslogtreecommitdiff
path: root/misc/gkrellweather
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-07-02 22:56:52 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-07-02 22:56:52 +0000
commitc398dcb8664a0e3adac57b9484887bd4251cb8e6 (patch)
tree74b83ebd21b937ff2623c23faf616522789fd848 /misc/gkrellweather
parentUpdate to 5.8.11, which supports now ODMR, so update pkg-{descr,comment} to (diff)
o New port of GKrellWeather: a weather plugin for GKrellM
o Port version 0.2.7 PR: 28637 Submitted by: Patrick Li <pat@databits.net>, Peter van Heusden <pvh@egenetics.com>
Notes
Notes: svn path=/head/; revision=44662
Diffstat (limited to 'misc/gkrellweather')
-rw-r--r--misc/gkrellweather/Makefile36
-rw-r--r--misc/gkrellweather/distinfo1
-rw-r--r--misc/gkrellweather/files/patch-Makefile29
-rw-r--r--misc/gkrellweather/pkg-comment1
-rw-r--r--misc/gkrellweather/pkg-descr20
-rw-r--r--misc/gkrellweather/pkg-plist2
6 files changed, 89 insertions, 0 deletions
diff --git a/misc/gkrellweather/Makefile b/misc/gkrellweather/Makefile
new file mode 100644
index 000000000000..bab97daa1b8c
--- /dev/null
+++ b/misc/gkrellweather/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: gkrellweather
+# Date Created: Thu Jun 28 01:54:57 EDT 2001
+# Whom: Patrick Li <pat@databits.net>
+# With help from: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gkrellweather
+PORTVERSION= 0.2.7
+CATEGORIES= misc
+MASTER_SITES= http://www.cse.unsw.edu.au/~flam/repository/c/gkrellm/
+
+MAINTAINER= pat@databits.net
+
+BUILD_DEPENDS= ${X11BASE}/include/gkrellm/gkrellm.h:${PORTSDIR}/sysutils/gkrellm
+RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
+
+USE_X_PREFIX= yes
+USE_IMLIB= yes
+MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
+ALL_TARGET= ${PORTNAME}.so
+
+PKGMESSAGE= ${DESCR}
+
+do-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/GrabWeather ${PREFIX}/bin
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.so \
+ ${PREFIX}/libexec/gkrellm/plugins
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/misc/gkrellweather/distinfo b/misc/gkrellweather/distinfo
new file mode 100644
index 000000000000..00537afdc6b5
--- /dev/null
+++ b/misc/gkrellweather/distinfo
@@ -0,0 +1 @@
+MD5 (gkrellweather-0.2.7.tar.gz) = 2e69ff084063bbfba57fdeb42ad628c1
diff --git a/misc/gkrellweather/files/patch-Makefile b/misc/gkrellweather/files/patch-Makefile
new file mode 100644
index 000000000000..940df5c5104e
--- /dev/null
+++ b/misc/gkrellweather/files/patch-Makefile
@@ -0,0 +1,29 @@
+--- Makefile.orig Thu Jun 28 05:04:00 2001
++++ Makefile Thu Jun 28 05:03:38 2001
+@@ -1,20 +1,20 @@
+-GTK_INCLUDE = `gtk-config --cflags`
+-GTK_LIB = `gtk-config --libs`
++GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
++GTK_LIB = `$(GTK_CONFIG) --libs`
+
+ IMLIB_INCLUDE = `imlib-config --cflags-gdk`
+ IMLIB_LIB = `imlib-config --libs-gdk`
+
+
+-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE)
+-LIBS = $(GTK_LIB) $(IMLIB_LIB)
++FLAGS = -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) ${PTHREAD_CFLAGS}
++LIBS = $(GTK_LIB) $(IMLIB_LIB) ${PTHREAD_LIBS}
+ LFLAGS = -shared
+
+-CC = gcc $(CFLAGS) $(FLAGS)
++CC += $(CFLAGS) $(FLAGS)
+
+ OBJS = gkrellweather.o
+
+ gkrellweather.so: $(OBJS)
+- $(CC) $(OBJS) -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
++ $(CC) $(OBJS) -o gkrellweather.so $(LFLAGS) $(LIBS)
+
+ clean:
+ rm -f *.o core *.so* *.bak *~
diff --git a/misc/gkrellweather/pkg-comment b/misc/gkrellweather/pkg-comment
new file mode 100644
index 000000000000..2fef15951816
--- /dev/null
+++ b/misc/gkrellweather/pkg-comment
@@ -0,0 +1 @@
+GKrellWeather is a weather plugin for GKrellM
diff --git a/misc/gkrellweather/pkg-descr b/misc/gkrellweather/pkg-descr
new file mode 100644
index 000000000000..6d5acb621196
--- /dev/null
+++ b/misc/gkrellweather/pkg-descr
@@ -0,0 +1,20 @@
+GKrellM plugin which shows weather info from the US National Weather
+Service
+
+Features
+- Choose the location nearest to you by 4-letter METAR station
+ identifier code. (http://www.nws.noaa.gov/oso/siteloc.shtml)
+- Monitor temperature, dew point, pressure, relative humidity, sky
+ condition, wind direction and speed
+- Display using imperial units (degrees Fareheight, inches of
+ Mercury, miles per hour)
+- Display using metric units (degrees Celsius, millimeters of
+ Mercury, kilometers per hour)
+- Display pressure in kPa, hPa and mmHg
+- Display wind speeds in kmph, mps and beaufort scale
+
+WWW: http://www.cse.unsw.edu.au/~flam/programs/gkrellweather.html
+Author: Franky Lam <franky@frankylam.com>
+
+- Peter van Heusden <pvh@egenetics.com>
+- Patrick Li <pat@databits.net>
diff --git a/misc/gkrellweather/pkg-plist b/misc/gkrellweather/pkg-plist
new file mode 100644
index 000000000000..5b3a386b1eae
--- /dev/null
+++ b/misc/gkrellweather/pkg-plist
@@ -0,0 +1,2 @@
+bin/GrabWeather
+libexec/gkrellm/plugins/gkrellweather.so