diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-04-08 06:58:22 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-04-08 06:58:22 +0800 |
commit | 8ca283dff3b4711d968618bd3c4d32dc45c41cfc (patch) | |
tree | 107df2f54397c450d468ab157aa0b1c18039156e /x11 | |
parent | 084f232f9e54b3a1b764ebc69d5eaae6c22ce124 (diff) | |
download | marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.gz marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.bz2 marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.lz marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.xz marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.zst marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.zip |
Add a hack to fix the build with GNOME 2.26.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12235 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11')
-rw-r--r-- | x11/gnome-swallow/Makefile | 31 | ||||
-rw-r--r-- | x11/gnome-swallow/distinfo | 3 | ||||
-rw-r--r-- | x11/gnome-swallow/files/patch-GNOME_Swallow.server | 17 | ||||
-rw-r--r-- | x11/gnome-swallow/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | x11/gnome-swallow/files/patch-gnome-swallow.c | 41 | ||||
-rw-r--r-- | x11/gnome-swallow/pkg-descr | 5 | ||||
-rw-r--r-- | x11/gnome-swallow/pkg-plist | 5 | ||||
-rw-r--r-- | x11/workrave/Makefile | 67 | ||||
-rw-r--r-- | x11/workrave/distinfo | 3 | ||||
-rw-r--r-- | x11/workrave/files/patch-frontend__common__src__System.cc | 10 | ||||
-rw-r--r-- | x11/workrave/pkg-descr | 10 | ||||
-rw-r--r-- | x11/workrave/pkg-plist | 90 |
12 files changed, 293 insertions, 0 deletions
diff --git a/x11/gnome-swallow/Makefile b/x11/gnome-swallow/Makefile new file mode 100644 index 000000000..79fdeb2e5 --- /dev/null +++ b/x11/gnome-swallow/Makefile @@ -0,0 +1,31 @@ +# 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.2 +PORTREVISION= 6 +CATEGORIES= x11 gnome +MASTER_SITES= http://interreality.org/~tetron/technology/swallow/ + +MAINTAINER= marcus@FreeBSD.org +COMMENT= Applet that swallows any X11 application into the GNOME 2 panel + +USE_XORG= x11 +USE_GMAKE= yes +USE_GNOME= gnomeprefix gnomehack gnomepanel +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include `pkg-config --cflags libgnomeui-2.0`" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + LIBS="`pkg-config --libs libgnomeui-2.0`" + +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 000000000..4642b9c5b --- /dev/null +++ b/x11/gnome-swallow/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome-swallow-1.2.tar.gz) = 9a278a8b5031957f7ca4f5f99044ba8e +SHA256 (gnome-swallow-1.2.tar.gz) = 09df0782e216591d1bff90e50b894242fa135f577f3502223e57734dc304afc8 +SIZE (gnome-swallow-1.2.tar.gz) = 90732 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 000000000..1f99ad2a6 --- /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 000000000..e8914f324 --- /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 000000000..49b5b5c1f --- /dev/null +++ b/x11/gnome-swallow/files/patch-gnome-swallow.c @@ -0,0 +1,41 @@ +--- gnome-swallow.c.orig Fri Sep 12 00:21:55 2003 ++++ gnome-swallow.c Sun Apr 24 00:28:34 2005 +@@ -1,3 +1,5 @@ ++#include <sys/types.h> ++#include <sys/time.h> + #include <string.h> + #include <stdio.h> + #include <signal.h> +@@ -55,7 +57,7 @@ gboolean swallow(char* wantedWindow, Dis + + 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)) +@@ -131,7 +133,7 @@ gboolean swallow(char* wantedWindow, Dis + fprintf(stderr,"Loop"); + gtk_main_iteration_do(FALSE); + +- gettimeofday(&tv); ++ gettimeofday(&tv, NULL); + now = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0); + } + +@@ -249,13 +251,13 @@ void exitProgram(GtkWidget* w, gpointer + void forkApplet(struct AppletConfigure* ap) + { + if(ap->pid > -1) { ++ int s; + /* Kill the old process and wait for it to die (if the process + is already dead then it will be a zombie anyway). + */ + kill(ap->pid, SIGTERM); + sleep(1); + kill(ap->pid, SIGKILL); +- int s; + waitpid(ap->pid, &s, WNOHANG); + } + diff --git a/x11/gnome-swallow/pkg-descr b/x11/gnome-swallow/pkg-descr new file mode 100644 index 000000000..94f04f35c --- /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://interreality.org/~tetron/technology/swallow/ diff --git a/x11/gnome-swallow/pkg-plist b/x11/gnome-swallow/pkg-plist new file mode 100644 index 000000000..cf195d120 --- /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 diff --git a/x11/workrave/Makefile b/x11/workrave/Makefile new file mode 100644 index 000000000..b8639d2e3 --- /dev/null +++ b/x11/workrave/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: workrave +# Date created: 15 Jul 2003 +# Whom: Koop Mast <einekoai@chello.nl> +# +# $FreeBSD: ports/x11/workrave/Makefile,v 1.28 2009/03/28 17:53:24 garga Exp $ +# + +PORTNAME= workrave +PORTVERSION= 1.8.5 +PORTREVISION= 4 +CATEGORIES= x11 gnome +MASTER_SITES= SF + +MAINTAINER= garga@FreeBSD.org +COMMENT= A Gnome RSI prevention tool + +OPTIONS= GNOME "Build with Gnome support" on \ + NETWORK "Build with network support" on + +USE_XORG= x11 xmu +USE_GMAKE= yes +MAKE_JOBS_SAFE= yes +USE_GNOME= gnomeprefix gnomehack intlhack gconf2 intltool +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include `pkg-config --cflags libgnomeui-2.0`" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + LIBS="`pkg-config --libs libgnomeui-2.0`" +CONFIGURE_ARGS= --enable-gconf + +.include <bsd.port.pre.mk> + +.if defined(WITH_GNOME) +LIB_DEPENDS+= gnomeuimm-2.6.1:${PORTSDIR}/x11-toolkits/libgnomeuimm26 +USE_GNOME+= gnomepanel +PLIST_SUB+= GNOME="" +.else +LIB_DEPENDS+= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 +CONFIGURE_ARGS+=--disable-gnome +PLIST_SUB+= GNOME="@comment " +.endif + +.if defined(WITH_NETWORK) +LIB_DEPENDS+= gnet-2.0.0:${PORTSDIR}/net/gnet2 +.else +CONFIGURE_ARGS+=--disable-distribution +.endif + +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|#include <sigc++\/compatibility\.h>||g ; \ + s|SigC::Signal|sigc::signal|g ; \ + s|SigC::slot_class|sigc::mem_fun|g ; \ + s|SigC::Connection|sigc::connection|g ; \ + s|SigC::Slot|sigc::slot|g ; \ + s|SigC::Object|sigc::trackable|g ; \ + s|SigC::slot|sigc::mem_fun|g' \ + ${WRKSRC}/frontend/gtkmm/src/*.* \ + ${WRKSRC}/frontend/plugin/*/gtkmm/src/*.* + +.include <bsd.port.post.mk> diff --git a/x11/workrave/distinfo b/x11/workrave/distinfo new file mode 100644 index 000000000..cc32715a1 --- /dev/null +++ b/x11/workrave/distinfo @@ -0,0 +1,3 @@ +MD5 (workrave-1.8.5.tar.gz) = 3df48ab5600256fadc11a976f15bcc7a +SHA256 (workrave-1.8.5.tar.gz) = 4a2f8f16f015fcec4446953421c8e12cdb41391a6da0e63d04d17b30534a0c56 +SIZE (workrave-1.8.5.tar.gz) = 1940651 diff --git a/x11/workrave/files/patch-frontend__common__src__System.cc b/x11/workrave/files/patch-frontend__common__src__System.cc new file mode 100644 index 000000000..08aaad5de --- /dev/null +++ b/x11/workrave/files/patch-frontend__common__src__System.cc @@ -0,0 +1,10 @@ +--- frontend/common/src/System.cc.orig 2007-09-28 13:18:31.000000000 -0300 ++++ frontend/common/src/System.cc 2007-09-28 13:18:48.000000000 -0300 +@@ -28,6 +28,7 @@ + #include <stdio.h> + #include <string.h> + #include <strings.h> ++#include <sys/wait.h> + + #include "System.hh" + #include "debug.hh" diff --git a/x11/workrave/pkg-descr b/x11/workrave/pkg-descr new file mode 100644 index 000000000..938a81799 --- /dev/null +++ b/x11/workrave/pkg-descr @@ -0,0 +1,10 @@ +Workrave is a program that assists in the recovery and prevention of +Repetitive Strain Injury (RSI). The program frequently alerts you to +take micro-pauses, rest breaks and restricts you to your daily limit. +These can be customized and it stops the counter when you stop. + +The program can be run distributed on one or more PCs. All connected +PCs share the same timing information. When you switch computers, you +will still be asked to pause on time. + +WWW: http://www.workrave.org/ diff --git a/x11/workrave/pkg-plist b/x11/workrave/pkg-plist new file mode 100644 index 000000000..c4f656043 --- /dev/null +++ b/x11/workrave/pkg-plist @@ -0,0 +1,90 @@ +bin/workrave +etc/sound/events/workrave.soundlist +%%GNOME%%libdata/bonobo/servers/Workrave-Applet.server +%%GNOME%%libdata/bonobo/servers/Workrave-Control.server +%%GNOME%%libexec/workrave-applet +%%GNOME%%share/gnome-2.0/ui/GNOME_WorkraveApplet.xml +share/pixmaps/workrave/workrave-icon-huge.png +share/sounds/workrave/break-ignored.wav +share/sounds/workrave/break-prelude.wav +share/sounds/workrave/daily-limit.wav +share/sounds/workrave/exercise-ended.wav +share/sounds/workrave/exercises-ended.wav +share/sounds/workrave/micro-break-ended.wav +share/sounds/workrave/micro-break-started.wav +share/sounds/workrave/rest-break-ended.wav +share/sounds/workrave/rest-break-started.wav +share/workrave/exercises/backward-shoulder-stretch.png +share/workrave/exercises/chair-pushup-1.png +share/workrave/exercises/chair-pushup-2.png +share/workrave/exercises/depth-focus-1.png +share/workrave/exercises/depth-focus-2.png +share/workrave/exercises/exercises.xml +share/workrave/exercises/eye-darkness.png +share/workrave/exercises/finger-stretch-1.png +share/workrave/exercises/finger-stretch-2.png +share/workrave/exercises/fist-roll-1.png +share/workrave/exercises/fist-roll-2.png +share/workrave/exercises/monitor-border-1.png +share/workrave/exercises/monitor-border-2.png +share/workrave/exercises/monitor-border-3.png +share/workrave/exercises/monitor-border-4.png +share/workrave/exercises/neck-tilt-stretch-1.png +share/workrave/exercises/neck-tilt-stretch-2.png +share/workrave/exercises/rotate-arm.png +share/workrave/exercises/shoulder-arm-stretch.png +share/workrave/exercises/turn-head-1.png +share/workrave/exercises/turn-head-2.png +share/workrave/exercises/wrist-lower-arm-desk-stretch-1.png +share/workrave/images/daily-limit.png +share/workrave/images/display.png +share/workrave/images/lock.png +share/workrave/images/micro-break.png +share/workrave/images/monitoring.png +share/workrave/images/network.png +share/workrave/images/prelude-hint-sad.png +share/workrave/images/prelude-hint.png +share/workrave/images/rest-break.png +share/workrave/images/shutdown.png +share/workrave/images/time.png +share/workrave/images/timer-daily.png +share/workrave/images/timer-micro-break.png +share/workrave/images/timer-rest-break.png +share/workrave/images/workrave-icon-huge.png +share/workrave/images/workrave-icon-large.png +share/workrave/images/workrave-icon-medium.png +share/workrave/images/workrave-icon-small.png +share/workrave/images/workrave-quiet-icon-medium.png +share/workrave/images/workrave-suspended-icon-medium.png +share/workrave/images/workrave.png +%%NLS%%share/locale/bg/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/ca/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/cs/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/da/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/de/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/el/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/eo/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/es/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/eu/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/fr/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/he/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/hu/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/it/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/ja/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/lt/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/nl/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/no/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/pl/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/ru/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/sk/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/sl/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/sv/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/tr/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/zh_CN/LC_MESSAGES/workrave.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/workrave.mo +@dirrm share/workrave/images +@dirrm share/workrave/exercises +@dirrm share/workrave +@dirrm share/sounds/workrave +@dirrm share/pixmaps/workrave |