ports/58959: Update port: audio/umix to 1.0.2
KATO Tsuguru
tkato at prontomail.com
Wed Nov 5 14:10:35 UTC 2003
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 05 06:10:20 PST 2003
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list