ports/75000: Patch port: audio/wsoundprefs unbroke port

Serge Gagnon ser_gagnon at sympatico.ca
Mon Jan 3 18:50:23 UTC 2005


The following reply was made to PR ports/75000; it has been noted by GNATS.

From: Serge Gagnon <ser_gagnon at sympatico.ca>
To: freebsd-gnats-submit at FreeBSD.org
Cc:  
Subject: Re: ports/75000: Patch port: audio/wsoundprefs unbroke port
Date: Mon, 03 Jan 2005 13:52:40 -0500

 diff -urN wsoundprefs.orig/Makefile wsoundprefs/Makefile
 --- wsoundprefs.orig/Makefile	Tue Dec 14 10:00:36 2004
 +++ wsoundprefs/Makefile	Sun Dec 12 15:54:06 2004
 @@ -15,8 +15,6 @@
  MAINTAINER=	ports at FreeBSD.org
  COMMENT=	A utility for configuring sounds to play for Window Maker events
  
 -BROKEN=		"Does not build with new version of windowmaker"
 -
  BUILD_DEPENDS=	wmaker:${PORTSDIR}/x11-wm/windowmaker
  LIB_DEPENDS=	PropList.2:${PORTSDIR}/devel/libPropList \
  		wsound.1:${PORTSDIR}/audio/wsoundserver
 diff -urN wsoundprefs.orig/files/patch-Imakefile wsoundprefs/files/patch-I
 makefile
 --- wsoundprefs.orig/files/patch-Imakefile	Wed Dec 31 19:00:00 1969
 +++ wsoundprefs/files/patch-Imakefile	Sun Dec 12 17:28:34 2004
 @@ -0,0 +1,36 @@
 +--- src/Imakefile.orig	Mon Oct 18 04:35:58 1999
 ++++ src/Imakefile	Sun Dec 12 16:48:09 2004
 +@@ -5,9 +5,9 @@
 + 
 + ICONS = WSoundPrefs.xpm WSoundPrefs.tiff
 + 
 +-CC = gcc
 ++XCOMM CC = gcc
 + 
 +-BINDIR = /Apps/WSoundPrefs.app
 ++BINDIR = /GNUstep/Apps/WSoundPrefs.app
 + 
 + XCOMM EFENCELIB = -lefence
 + EFENCELIB =
 +@@ -18,9 +18,9 @@
 + WRASTERCFLAGS = `get-wraster-flags --cflags`
 + WRASTERLFLAGS = `get-wraster-flags --lflags`
 + WRASTERLIBS = `get-wraster-flags --libs`
 +-WINGSLIBS = -lWINGs -lPropList
 +-
 +-STD_INCLUDES = $(WRASTERCFLAGS) $(WSOUNDCFLAGS)
 ++WINGSLIBS = -lWINGs -lXft -L/$(LOCALBASE)/lib -lPropList
 ++  
 ++STD_INCLUDES = $(WRASTERCFLAGS) -I${LOCALBASE}/include 
 -I${X11BASE}/include -I${X11BASE}/include/WINGs
 + DEPLIBS = $(DEPXLIB) 
 + 
 + LOCAL_LIBRARIES =	$(XLIB) $(WINGSLIBS) $(WSOUNDLFLAGS) $(WSOUNDLIBS) 
 $(WRASTERLFLAGS) $(WRASTERLIBS) $(EFENCELIB)
 +@@ -30,7 +30,7 @@
 + SRCS = PLFunctions.c SoundEvents.c SoundPaths.c SystemInfo.c 
 WSoundPrefs.c main.c
 + OBJS = PLFunctions.o SoundEvents.o SoundPaths.o SystemInfo.o 
 WSoundPrefs.o main.o
 + 
 +-ComplexProgramTarget(WSoundPrefs)
 ++ComplexProgramTargetNoMan(WSoundPrefs)
 + 
 + InstallMultiple($(ICONS),$(BINDIR))
 + 
 diff -urN wsoundprefs.orig/files/patch-WSoundPrefs.c 
 wsoundprefs/files/patch-WSoundPrefs.c
 --- wsoundprefs.orig/files/patch-WSoundPrefs.c	Wed Dec 31 19:00:00 1969
 +++ wsoundprefs/files/patch-WSoundPrefs.c	Sun Dec 12 17:25:01 2004
 @@ -0,0 +1,11 @@
 +--- src/WSoundPrefs.c.orig	Sun Dec 12 17:17:37 2004
 ++++ src/WSoundPrefs.c	Sun Dec 12 17:24:29 2004
 +@@ -407,7 +407,7 @@
 + 		WMResizeWidget(panel->copyrightL, 448, 20);
 + 		WMMoveWidget(panel->copyrightL, 8, 178);
 + 		WMSetLabelTextAlignment(panel->copyrightL, WACenter);
 +-		font = WMCreateNormalFont(scr, "-*-helvetica-medium-r-normal-*-10-*-*-
 *-*-*-*-*");
 ++		font = WMCreateFont(scr, "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-
 *-*");
 + 		if (font)
 + 			WMSetLabelText(panel->copyrightL, "Copyright \xa9 1999 The 
 Az\xe5rg-r\xfbh");
 + 		else {
 diff -urN wsoundprefs.orig/files/patch-ab wsoundprefs/files/patch-ab
 --- wsoundprefs.orig/files/patch-ab	Tue Dec 14 10:00:36 2004
 +++ wsoundprefs/files/patch-ab	Wed Dec 31 19:00:00 1969
 @@ -1,36 +0,0 @@
 ---- src/Imakefile.orig	Mon Oct 18 17:35:58 1999
 -+++ src/Imakefile	Sun Dec 10 17:09:01 2000
 -@@ -5,9 +5,9 @@
 - 
 - ICONS = WSoundPrefs.xpm WSoundPrefs.tiff
 - 
 --CC = gcc
 -+XCOMM CC = gcc
 - 
 --BINDIR = /Apps/WSoundPrefs.app
 -+BINDIR = /GNUstep/Apps/WSoundPrefs.app
 - 
 - XCOMM EFENCELIB = -lefence
 - EFENCELIB =
 -@@ -18,9 +18,9 @@
 - WRASTERCFLAGS = `get-wraster-flags --cflags`
 - WRASTERLFLAGS = `get-wraster-flags --lflags`
 - WRASTERLIBS = `get-wraster-flags --libs`
 --WINGSLIBS = -lWINGs -lPropList
 --
 --STD_INCLUDES = $(WRASTERCFLAGS) $(WSOUNDCFLAGS)
 -+WINGSLIBS = -lWINGs -L/$(LOCALBASE)/lib -lPropList
 -+  
 -+STD_INCLUDES = $(WRASTERCFLAGS) -I${LOCALBASE}/include 
 -I${X11BASE}/include -I${X11BASE}/include/WINGs
 - DEPLIBS = $(DEPXLIB) 
 - 
 - LOCAL_LIBRARIES =	$(XLIB) $(WINGSLIBS) $(WSOUNDLFLAGS) $(WSOUNDLIBS) 
 $(WRASTERLFLAGS) $(WRASTERLIBS) $(EFENCELIB)
 -@@ -30,7 +30,7 @@
 - SRCS = PLFunctions.c SoundEvents.c SoundPaths.c SystemInfo.c 
 WSoundPrefs.c main.c
 - OBJS = PLFunctions.o SoundEvents.o SoundPaths.o SystemInfo.o 
 WSoundPrefs.o main.o
 - 
 --ComplexProgramTarget(WSoundPrefs)
 -+ComplexProgramTargetNoMan(WSoundPrefs)
 - 
 - InstallMultiple($(ICONS),$(BINDIR))
 - 
 diff -urN wsoundprefs.orig/files/patch-main.c wsoundprefs/files/patch-main
 .c
 --- wsoundprefs.orig/files/patch-main.c	Wed Dec 31 19:00:00 1969
 +++ wsoundprefs/files/patch-main.c	Sun Dec 12 17:28:12 2004
 @@ -0,0 +1,11 @@
 +--- src/main.c.orig	Sun Dec 12 16:46:36 2004
 ++++ src/main.c	Sun Dec 12 16:46:57 2004
 +@@ -109,7 +109,7 @@
 + 			wwarning(_("could not load image file %s:%s"), path, 
 RMessageForError(RErrorCode));
 + 		else {
 + 			icon = WMCreatePixmapFromRImage(scr, tmp, 0);
 +-			RDestroyImage(tmp);
 ++			RReleaseImage(tmp);
 + 			if (icon) {
 + 				WMSetApplicationIconImage(scr, icon);
 + 				WMReleasePixmap(icon);
 
 



More information about the freebsd-ports-bugs mailing list