From tkato@prontomail.com  Wed Nov  5 06:01:51 2003
Return-Path: <tkato@prontomail.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8299616A4CE
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed,  5 Nov 2003 06:01:20 -0800 (PST)
Received: from hfep05.dion.ne.jp (hfep05.dion.ne.jp [203.181.105.71])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9810143F3F
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed,  5 Nov 2003 06:01:17 -0800 (PST)
	(envelope-from tkato@prontomail.com)
Received: from localhost ([61.198.217.81]) by hfep05.dion.ne.jp with SMTP
          id <20031105140112832.QNAW@hfep05.dion.ne.jp>
          for <FreeBSD-gnats-submit@FreeBSD.org>;
          Wed, 5 Nov 2003 23:01:12 +0900
Message-Id: <20031105230011.7e6ac67c.tkato@prontomail.com>
Date: Wed, 5 Nov 2003 23:00:11 +0900
From: KATO Tsuguru <tkato@prontomail.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: audio/umix to 1.0.2

>Number:         58959
>Category:       ports
>Synopsis:       Update port: audio/umix to 1.0.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 05 06:10:20 PST 2003
>Closed-Date:    Wed Nov 05 08:40:44 PST 2003
>Last-Modified:  Wed Nov 05 08:40:44 PST 2003
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 1.0.2

New file:
files/patch-src::driver_oss.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/audio/umix/Makefile audio/umix/Makefile
--- /usr/ports/audio/umix/Makefile	Mon Nov  3 20:11:11 2003
+++ audio/umix/Makefile	Mon Nov  3 20:38:06 2003
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	umix
-PORTVERSION=	0.5
-PORTREVISION=	2
+PORTVERSION=	1.0.2
 CATEGORIES=	audio
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,11 +14,15 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Advanced tool for adjusting soundcard mixers, replacement for aumix
 
-LIB_DEPENDS=	intl.5:${PORTSDIR}/devel/gettext
-
+USE_GETOPT_LONG=	yes
+USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CC="${CC} -I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib -lintl"
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 MAN1=		umix.1
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|="/etc"|="$${prefix}/etc"|g' ${WRKSRC}/configure
 
 .include <bsd.port.mk>
diff -urN /usr/ports/audio/umix/distinfo audio/umix/distinfo
--- /usr/ports/audio/umix/distinfo	Sun Mar 18 01:39:10 2001
+++ audio/umix/distinfo	Mon Nov  3 20:23:45 2003
@@ -1 +1 @@
-MD5 (umix-0.5.tar.gz) = 6495628535bcdc01da1a787db9056eda
+MD5 (umix-1.0.2.tar.gz) = e38fc288273cc8b5b34f8769f06b32ee
diff -urN /usr/ports/audio/umix/files/patch-src::driver_oss.c audio/umix/files/patch-src::driver_oss.c
--- /usr/ports/audio/umix/files/patch-src::driver_oss.c	Thu Jan  1 09:00:00 1970
+++ audio/umix/files/patch-src::driver_oss.c	Mon Nov  3 20:29:44 2003
@@ -0,0 +1,53 @@
+--- src/driver_oss.c.orig	Sun Aug 31 22:32:02 2003
++++ src/driver_oss.c	Mon Nov  3 20:29:34 2003
+@@ -253,8 +253,10 @@
+  * oss_open() before initializing. */
+ int oss_init(void)
+ {
++#ifdef SOUND_MIXER_INFO
+ 	/* this is an OSS structure, defined in soundcard.h */
+ 	struct mixer_info oss_info;
++#endif
+ 	int old_mixer;
+ 	int ch;
+ 	int i;
+@@ -288,9 +290,11 @@
+ 	mixer_ptr->numchan = SOUND_MIXER_NRDEVICES;
+ 	mixer_ptr->numchan = CLAMP(mixer_ptr->numchan,0,SOUND_MIXER_NRDEVICES);
+ 
++#ifdef SOUND_MIXER_INFO
+ 	/* get the mixer name */
+ 	eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);
+ 	strncpy(mixer_ptr->name, oss_info.name, sizeof(mixer_ptr->name));
++#endif
+ 	
+ 	mixer_ptr->curr_chan = 0;
+ #ifdef UMIX_DEBUG
+@@ -329,9 +333,11 @@
+ 		oss_set_curr_chan(i);
+ 		oss_update(OSS_UPD_READ);
+ 	}
++#ifdef SOUND_MIXER_INFO
+ 	/* init the modify counter */
+ 	eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);
+ 	mixer_ptr->modifycount = oss_info.modify_counter;
++#endif
+ 
+ #ifdef UMIX_DEBUG
+ 	err_msg("oss_init: initialized #%d with %d channels",
+@@ -388,6 +394,7 @@
+  * the device and compares it to the old */
+ static int oss_check_update(void)
+ {
++#ifdef SOUND_MIXER_INFO
+ 	struct mixer_info oss_info;
+ 
+ 	eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);
+@@ -396,6 +403,7 @@
+ 		mixer_ptr->modifycount = oss_info.modify_counter;
+ 		return 1;
+ 	}
++#endif
+ 
+ 	return 0;
+ }
diff -urN /usr/ports/audio/umix/pkg-plist audio/umix/pkg-plist
--- /usr/ports/audio/umix/pkg-plist	Sun Mar 18 01:39:11 2001
+++ audio/umix/pkg-plist	Mon Nov  3 20:30:44 2003
@@ -1,2 +1 @@
 bin/umix
-share/locale/fi/LC_MESSAGES/umix.mo
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Wed Nov 5 08:40:35 PST 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58959 
>Unformatted:
