ports/185018: fix keyboardcast build on freebsd10

Eimar Koort eimar.koort at gmail.com
Fri Dec 20 09:10:00 UTC 2013


>Number:         185018
>Category:       ports
>Synopsis:       fix keyboardcast build on freebsd10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 20 09:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Eimar Koort
>Release:        
>Organization:
>Environment:
>Description:
Despite i can't reproduce this error, i hope this patch fixes building error on Fbsd-10, which can be seen here:

http://beefy2.isc.freebsd.org/bulk/10amd64-default/2013-12-19_20h45m51s/logs/keyboardcast-0.1.1_1.log


No functional changes.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN keyboardcast.orig/Makefile keyboardcast/Makefile
--- keyboardcast.orig/Makefile	2013-09-21 02:43:19.000000000 +0300
+++ keyboardcast/Makefile	2013-12-20 10:49:12.000000000 +0200
@@ -3,7 +3,7 @@
 
 PORTNAME=	keyboardcast
 PORTVERSION=	0.1.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11
 MASTER_SITES=	GOOGLE_CODE \
 		http://desrt.mcmaster.ca/code/keyboardcast/
@@ -11,7 +11,7 @@
 MAINTAINER=	eimar.koort at gmail.com
 COMMENT=	Broadcast keystrokes to multiple X windows for Gnome2
 
-USE_XORG=	xmu
+USE_XORG=	xmu x11
 USE_GNOME=	libwnck libglade2 gtk20
 USES=		pkgconfig
 INSTALLS_ICONS=	yes
diff -ruN keyboardcast.orig/files/patch-Makefile keyboardcast/files/patch-Makefile
--- keyboardcast.orig/files/patch-Makefile	2012-07-14 17:29:18.000000000 +0300
+++ keyboardcast/files/patch-Makefile	2013-12-20 10:39:36.000000000 +0200
@@ -1,12 +1,16 @@
---- Makefile.orig	2005-12-06 19:29:22.000000000 +0200
-+++ Makefile	2010-01-12 12:17:24.000000000 +0200
+kefile.orig	2005-12-06 19:29:22.000000000 +0200
++++ Makefile	2013-12-20 10:30:02.000000000 +0200
 @@ -1,3 +1,4 @@
 +CC = cc
  PREFIX = /usr/local
  SHAREDIR = $(PREFIX)/share/keyboardcast
  APPSDIR = $(PREFIX)/share/applications
-@@ -9,7 +10,10 @@
- LDLIBS += -lXmu
+@@ -6,10 +7,13 @@
+ PKGS = gtk+-2.0 libwnck-1.0 libglade-2.0
+ CFLAGS = `pkg-config --cflags $(PKGS)`
+ LDLIBS = `pkg-config --libs $(PKGS)`
+-LDLIBS += -lXmu
++LDLIBS += -lXmu -lX11
  CFLAGS += -Wall -O2 -DPREFIX=\"$(PREFIX)\"
  
 -keyboardcast: keyboardcast.o window-list.o grab-window.o
@@ -17,3 +21,4 @@
  
  clean:
  	rm -f keyboardcast *.o *.gladep *.bak
+
diff -ruN keyboardcast.orig/files/patch-keyboardcast.c keyboardcast/files/patch-keyboardcast.c
--- keyboardcast.orig/files/patch-keyboardcast.c	1970-01-01 03:00:00.000000000 +0300
+++ keyboardcast/files/patch-keyboardcast.c	2013-12-20 10:39:36.000000000 +0200
@@ -0,0 +1,11 @@
+--- keyboardcast.orig	2013-12-20 10:06:27.000000000 +0200
++++ keyboardcast.c	2013-12-20 10:07:10.000000000 +0200
+@@ -242,7 +242,7 @@
+                                                "text", 2, NULL );
+ 
+   glade_xml_signal_connect( xml, "key_event", G_CALLBACK( key_event ) );
+-  glade_xml_signal_connect( xml, "gtk_exit", G_CALLBACK( gtk_exit ) );
++  glade_xml_signal_connect( xml, "gtk_main_quit", G_CALLBACK( gtk_main_quit ) );
+   glade_xml_signal_connect_data( xml, "expanded",
+                                  G_CALLBACK( expanded ), window );
+   glade_xml_signal_connect_data( xml, "button_clicked",


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list