diff options
author | lioux <lioux@FreeBSD.org> | 2001-07-03 08:10:17 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-07-03 08:10:17 +0800 |
commit | 32ac0494cc548a1bb9e2dae25f90d0d15044913c (patch) | |
tree | 3b3a6587650031428fa84be4aa64a04e913f3283 /net | |
parent | 4155676cfc46a85ba97207de708efd19bfeb40e0 (diff) | |
download | freebsd-ports-gnome-32ac0494cc548a1bb9e2dae25f90d0d15044913c.tar.gz freebsd-ports-gnome-32ac0494cc548a1bb9e2dae25f90d0d15044913c.tar.zst freebsd-ports-gnome-32ac0494cc548a1bb9e2dae25f90d0d15044913c.zip |
o New port for a GKrellM plugin that display updated info on several
game servers
o Port version 0.3pre5 (0.3.p5)
Submitted by: Patrick Li <pat@databits.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/gkrellmqst/Makefile | 35 | ||||
-rw-r--r-- | net/gkrellmqst/distinfo | 1 | ||||
-rw-r--r-- | net/gkrellmqst/files/patch-Makefile | 32 | ||||
-rw-r--r-- | net/gkrellmqst/files/template-patch-qst.c | 15 | ||||
-rw-r--r-- | net/gkrellmqst/pkg-comment | 1 | ||||
-rw-r--r-- | net/gkrellmqst/pkg-descr | 10 | ||||
-rw-r--r-- | net/gkrellmqst/pkg-plist | 1 |
8 files changed, 96 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 342349be6f96..91329385cb20 100644 --- a/net/Makefile +++ b/net/Makefile @@ -110,6 +110,7 @@ SUBDIR += ghtool SUBDIR += gicq SUBDIR += gkrellm_snmp + SUBDIR += gkrellmqst SUBDIR += gnet SUBDIR += gnomba SUBDIR += gnome-vnc diff --git a/net/gkrellmqst/Makefile b/net/gkrellmqst/Makefile new file mode 100644 index 000000000000..2051e6aed692 --- /dev/null +++ b/net/gkrellmqst/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: gkrellmqst +# 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= gkrellmqst +PORTVERSION= 0.3.p5 +CATEGORIES= net games +MASTER_SITES= http://tadpol.org/unxware/ +DISTNAME= gkrellm_qst-${PORTVERSION:S/.p/pre_/} + +MAINTAINER= pat@databits.net + +BUILD_DEPENDS= ${X11BASE}/include/gkrellm/gkrellm.h:${PORTSDIR}/sysutils/gkrellm +RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm \ + qstat:${PORTSDIR}/games/qstat + +WRKSRC= ${WRKDIR}/${PORTNAME:S/mq/m_q/} +USE_X_PREFIX= yes +USE_IMLIB= yes +MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" +ALL_TARGET= qst.so +EXTRA_PATCHES= ${WRKDIR}/patch-qst.c + +pre-patch: + @${SED} -e "s!%%LOCALBASE%%!${LOCALBASE}!" \ + -e "s!%%X11BASE%%!${X11BASE}!" \ + ${FILESDIR}/template-patch-qst.c > \ + ${WRKDIR}/patch-qst.c + +.include <bsd.port.mk> diff --git a/net/gkrellmqst/distinfo b/net/gkrellmqst/distinfo new file mode 100644 index 000000000000..febb05f3cb1f --- /dev/null +++ b/net/gkrellmqst/distinfo @@ -0,0 +1 @@ +MD5 (gkrellm_qst-0.3pre_5.tar.gz) = f4fcca5a1101ab778b854f7fb8fe2543 diff --git a/net/gkrellmqst/files/patch-Makefile b/net/gkrellmqst/files/patch-Makefile new file mode 100644 index 000000000000..d5b49b64130f --- /dev/null +++ b/net/gkrellmqst/files/patch-Makefile @@ -0,0 +1,32 @@ +--- Makefile.orig Thu Jun 28 02:19:33 2001 ++++ Makefile Thu Jun 28 02:23:38 2001 +@@ -1,17 +1,16 @@ +-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` +-THREAD_LIB = -lpthread +-INSTALLDIR = $(HOME)/.gkrellm/plugins ++INSTALLDIR = $(PREFIX)/libexec/gkrellm/plugins + + +-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) +-LIBS = $(GTK_LIB) $(IMLIB_LIB) $(THREAD_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 = qst.o + +@@ -26,4 +25,4 @@ + # %.o: %.c + + install: qst.so +- install -c -s -m 644 qst.so $(INSTALLDIR) ++ $(BSD_INSTALL_DATA) qst.so $(INSTALLDIR) diff --git a/net/gkrellmqst/files/template-patch-qst.c b/net/gkrellmqst/files/template-patch-qst.c new file mode 100644 index 000000000000..cc4ea5935bc7 --- /dev/null +++ b/net/gkrellmqst/files/template-patch-qst.c @@ -0,0 +1,15 @@ +--- qst.c.orig Mon Jul 2 16:19:55 2001 ++++ qst.c Mon Jul 2 16:23:26 2001 +@@ -25,9 +25,9 @@ + /* some defines*/ + #define MAX_MAP_NAME_LEN 64 + #define NEW_MAP "Have not talked with quake server yet" +-#define QCMD "/usr/bin/quakestat -q3s quake | awk '/^quake/ {print $2 $3;}'" +-#define SCMD "xterm -e quake3 +connect quake &" +-#define TTCMD "/usr/bin/quakestat -P -q3s quake | awk '/frags/'" ++#define QCMD "%%LOCALBASE%%/bin/quakestat -q3s quake | awk '/^quake/ {print $2 $3;}'" ++#define SCMD "%%X11BASE%%/bin/xterm -e quake3 +connect quake &" ++#define TTCMD "%%LOCALBASE%%/bin/quakestat -P -q3s quake | awk '/frags/'" + #define CHCMD "ps ax|grep flxwm|grep -v grep>/dev/null && echo \"We've got quake!\"" + + static Panel *panel; diff --git a/net/gkrellmqst/pkg-comment b/net/gkrellmqst/pkg-comment new file mode 100644 index 000000000000..c288eab189d0 --- /dev/null +++ b/net/gkrellmqst/pkg-comment @@ -0,0 +1 @@ +Plugin for Gkrellm that displays updated info on several game servers diff --git a/net/gkrellmqst/pkg-descr b/net/gkrellmqst/pkg-descr new file mode 100644 index 000000000000..3b1de4b33314 --- /dev/null +++ b/net/gkrellmqst/pkg-descr @@ -0,0 +1,10 @@ +gkrellmqst is a plugin for Gkrellm that displays information on +several of your favorite game servers. The games that it can support +depends upon qstat's support for that particular game. This plugin +uses qstat to query a game server and displays the current map name +and number of players + +WWW: http://tadpol.org/unxware/ +Author: Michael Tilstra <tadpol@tadpol.org> + +- Patrick Li <pat@databits.net> diff --git a/net/gkrellmqst/pkg-plist b/net/gkrellmqst/pkg-plist new file mode 100644 index 000000000000..c6fae5cced14 --- /dev/null +++ b/net/gkrellmqst/pkg-plist @@ -0,0 +1 @@ +libexec/gkrellm/plugins/qst.so |