Skip to content
Permalink
Browse files

Remove the hack I added to make v2.0.9 compile and use the now-official

fix.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@7539 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jim Mock
Jim Mock committed Jun 16, 2004
1 parent d08f3c5 commit ffbd8ee35daca55327aeb0ca71a845dddd0fd97e
Showing with 31 additions and 24 deletions.
  1. +4 −2 irc/xchat2/Portfile
  2. +0 −22 irc/xchat2/files/patch-src-common-util.c
  3. +27 −0 irc/xchat2/files/xc209-fixcompile.diff
@@ -1,8 +1,9 @@
# $Id: Portfile,v 1.22 2004/06/07 23:42:58 mij Exp $
# $Id: Portfile,v 1.23 2004/06/16 22:31:43 mij Exp $

PortSystem 1.0
name xchat2
version 2.0.9
revision 1
categories irc
maintainers mij@opendarwin.org
description GTK+2 IRC client
@@ -19,7 +20,8 @@ checksums md5 8a38f161176cc2c54b32bbe5e51e3fc7

use_bzip2 yes

patchfiles xc209-fixbidi.diff patch-src-common-util.c
patchfiles xc209-fixbidi.diff xc209-fixcompile.diff


depends_lib lib:libgtk.2:gtk2

This file was deleted.

@@ -0,0 +1,27 @@
# 2.0.9 failed to compile on a system other than Win32/Linux/FreeBSD, this patch fixes it. Also fixes compile under GTK 2.0.x (old!)
--- src/common/util.c 2004-05-29 20:19:23.000000000 +1000
+++ src/common/util.c 2004-06-10 17:16:13.202029848 +1000
@@ -580,8 +580,8 @@
{
#if defined (USING_LINUX) || defined (USING_FREEBSD)
double mhz;
- int cpus = 1;
#endif
+ int cpus = 1;
struct utsname un;
static char *buf = NULL;

--- src/fe-gtk/fe-gtk.c 2004-05-17 01:42:33.000000000 +1000
+++ src/fe-gtk/fe-gtk.c 2004-06-07 23:23:15.000000000 +1000
@@ -725,8 +725,10 @@
#if GTK_CHECK_VERSION(2,4,0)
if (gtk_window_is_active (GTK_WINDOW (sess->gui->window)))
#else
+#if GTK_CHECK_VERSION(2,2,0)
if (GTK_WINDOW (sess->gui->window)->is_active)
#endif
+#endif
return 1; /* active/focused */

return 0; /* normal (no keyboard focus or behind a window) */

0 comments on commit ffbd8ee

Please sign in to comment.
You can’t perform that action at this time.