summaryrefslogtreecommitdiffstats
path: root/x11/gnome-swallow
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-04-16 07:18:26 +0000
committermarcus <marcus@FreeBSD.org>2003-04-16 07:18:26 +0000
commit6c15e1b865d4babd7df5bc81db8389d72b98b1d6 (patch)
tree9ef2b12f02daefd28dac8e135418bbccc7641578 /x11/gnome-swallow
parent32b8defe5569ed7c83ef6dde715670c8a92defe0 (diff)
downloadFreeBSD-ports-6c15e1b865d4babd7df5bc81db8389d72b98b1d6.zip
FreeBSD-ports-6c15e1b865d4babd7df5bc81db8389d72b98b1d6.tar.gz
Add gnome-swallow, a meta-applet that allows one to swallow any X11
application into the GNOME 2 panel.
Diffstat (limited to 'x11/gnome-swallow')
-rw-r--r--x11/gnome-swallow/Makefile30
-rw-r--r--x11/gnome-swallow/distinfo1
-rw-r--r--x11/gnome-swallow/files/patch-GNOME_Swallow.server17
-rw-r--r--x11/gnome-swallow/files/patch-Makefile.in11
-rw-r--r--x11/gnome-swallow/files/patch-gnome-swallow.c26
-rw-r--r--x11/gnome-swallow/pkg-descr5
-rw-r--r--x11/gnome-swallow/pkg-plist5
7 files changed, 95 insertions, 0 deletions
diff --git a/x11/gnome-swallow/Makefile b/x11/gnome-swallow/Makefile
new file mode 100644
index 0000000..67b615b
--- /dev/null
+++ b/x11/gnome-swallow/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: gnome-swallow
+# Date created: 16 April 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnome-swallow
+PORTVERSION= 1.1
+CATEGORIES= x11 gnome
+MASTER_SITES= http://www-unix.oit.umass.edu/~tetron/technology/swallow/
+
+MAINTAINER= marcus@FreeBSD.org
+COMMENT= Applet that swallows any X11 application into the GNOME 2 panel
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+USE_GNOME= gnomeprefix gnomehack gnomepanel
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
+ ${WRKSRC}/GNOME_Swallow.server
+
+.include <bsd.port.mk>
diff --git a/x11/gnome-swallow/distinfo b/x11/gnome-swallow/distinfo
new file mode 100644
index 0000000..1c04ddb
--- /dev/null
+++ b/x11/gnome-swallow/distinfo
@@ -0,0 +1 @@
+MD5 (gnome-swallow-1.1.tar.gz) = 60b6445534bd3cf897d13d0c4f35bb33
diff --git a/x11/gnome-swallow/files/patch-GNOME_Swallow.server b/x11/gnome-swallow/files/patch-GNOME_Swallow.server
new file mode 100644
index 0000000..1f99ad2
--- /dev/null
+++ b/x11/gnome-swallow/files/patch-GNOME_Swallow.server
@@ -0,0 +1,17 @@
+--- GNOME_Swallow.server.orig Wed Apr 16 03:13:17 2003
++++ GNOME_Swallow.server Wed Apr 16 03:13:30 2003
+@@ -1,6 +1,6 @@
+ <oaf_info>
+ <oaf_server iid="OAFIID:GNOME_Swallow_Factory" type="exe"
+- location="/usr/lib/gnome-panel/gnome_swallow">
++ location="%%PREFIX%%/lib/gnome-panel/gnome_swallow">
+
+ <oaf_attribute name="repo_ids" type="stringv">
+ <item value="IDL:Bonobo/GenericFactory:1.0"/>
+@@ -23,4 +23,4 @@
+ <oaf_attribute name="panel:category" type="string" value="Utility"/>
+ <oaf_attribute name="panel:icon" type="string" value="gnome-applets.png"/>
+ </oaf_server>
+-</oaf_info>
+\ No newline at end of file
++</oaf_info>
diff --git a/x11/gnome-swallow/files/patch-Makefile.in b/x11/gnome-swallow/files/patch-Makefile.in
new file mode 100644
index 0000000..e8914f3
--- /dev/null
+++ b/x11/gnome-swallow/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Wed Apr 16 03:11:46 2003
++++ Makefile.in Wed Apr 16 03:11:57 2003
+@@ -103,7 +103,7 @@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+ paneldir = $(prefix)/lib/gnome-panel
+-serversdir = $(prefix)/lib/bonobo/servers
++serversdir = $(prefix)/libdata/bonobo/servers
+ docdir = $(prefix)/share/doc/gnome-swallow
+
+ dist_doc_DATA = README
diff --git a/x11/gnome-swallow/files/patch-gnome-swallow.c b/x11/gnome-swallow/files/patch-gnome-swallow.c
new file mode 100644
index 0000000..c363265
--- /dev/null
+++ b/x11/gnome-swallow/files/patch-gnome-swallow.c
@@ -0,0 +1,26 @@
+--- gnome-swallow.c.orig Wed Apr 16 03:02:18 2003
++++ gnome-swallow.c Wed Apr 16 03:05:58 2003
+@@ -1,3 +1,5 @@
++#include <sys/types.h>
++#include <sys/time.h>
+ #include <string.h>
+ #include <stdio.h>
+
+@@ -52,7 +54,7 @@
+
+ XSync (display, FALSE);
+
+- gettimeofday(&tv);
++ gettimeofday(&tv, NULL);
+ now = start = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0);
+
+ while (ready == FALSE && now < (start + 10.0))
+@@ -128,7 +130,7 @@
+ fprintf(stderr,"Loop");
+ gtk_main_iteration_do(FALSE);
+
+- gettimeofday(&tv);
++ gettimeofday(&tv, NULL);
+ now = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0);
+ }
+
diff --git a/x11/gnome-swallow/pkg-descr b/x11/gnome-swallow/pkg-descr
new file mode 100644
index 0000000..0efeab4
--- /dev/null
+++ b/x11/gnome-swallow/pkg-descr
@@ -0,0 +1,5 @@
+Gnome-swallow is a pseudo-applet that allows one to swallow any X11
+application into the GNOME 2 panel. This restores the functionality that
+used to exist in GNOME 1.x.
+
+WWW: http://www-unix.oit.umass.edu/~tetron/technology/swallow/
diff --git a/x11/gnome-swallow/pkg-plist b/x11/gnome-swallow/pkg-plist
new file mode 100644
index 0000000..cf195d1
--- /dev/null
+++ b/x11/gnome-swallow/pkg-plist
@@ -0,0 +1,5 @@
+lib/gnome-panel/gnome_swallow
+libdata/bonobo/servers/GNOME_Swallow.server
+share/doc/gnome-swallow/README
+@dirrm share/doc/gnome-swallow
+@dirrm lib/gnome-panel
OpenPOWER on IntegriCloud