Date: Mon, 16 Aug 1999 16:50:47 +0400 (MSD) From: Andrey Zakhvatov <andy@icc.surw.chel.su> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/13173: New port: yiff-0.33 Message-ID: <199908161250.QAA38945@icc.surw.chel.su>
next in thread | raw e-mail | index | archive | help
>Number: 13173 >Category: ports >Synopsis: New port: yiff-0.33 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Aug 16 06:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Andrey Zakhvatov >Release: FreeBSD 3.1-RELEASE i386 >Organization: South Ural Railway ICC >Environment: >Description: This is a port of yiff-0.33, sound server for games and applications. YIFF is a sound server (or sound multi user interface) designed for UNIX programs (perticularly games). It runs in the background like any other server, creates a listening port (default port number is 9433) for client programs to connect to, and opens the recorder. This allows multiple client programs to connect to YIFF and say in blunt langauge `play this sound' or `change that mode setting' and have that acomplished without conflicting multiple uses of the recorder or require any sound device coding. So basically an infinate number of programs (not limited to those running on your computer) can interface with the recorder on a simple and high level basis. Be forwarned: on some operating systems YIFF allows you to take low-level control of your sound card, you will be asked to set some aspects of your sound card (ie refresh cycle, playback syncing, multiplex timming, and buffer fragmentation) that you may not be familiar with. You are strongly encuraged to brush up on what you know about sound cards in general, the majority of sound servers don't let you fine tune your recorder to the level of functionality that YIFF does. WWW: http://www.yiff.org/yiff/ # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # yiff-0.33 # yiff-0.33/Makefile # yiff-0.33/files # yiff-0.33/files/md5 # yiff-0.33/patches # yiff-0.33/patches/patch-aa # yiff-0.33/patches/patch-ba # yiff-0.33/patches/patch-bb # yiff-0.33/patches/patch-bc # yiff-0.33/patches/patch-bd # yiff-0.33/patches/patch-be # yiff-0.33/patches/patch-bf # yiff-0.33/patches/patch-bg # yiff-0.33/patches/patch-bh # yiff-0.33/patches/patch-bi # yiff-0.33/patches/patch-bj # yiff-0.33/patches/patch-bk # yiff-0.33/patches/patch-bl # yiff-0.33/patches/patch-bm # yiff-0.33/patches/patch-bn # yiff-0.33/patches/patch-bo # yiff-0.33/patches/patch-ab # yiff-0.33/patches/patch-ac # yiff-0.33/patches/patch-ca # yiff-0.33/patches/patch-cb # yiff-0.33/patches/patch-cc # yiff-0.33/patches/patch-cd # yiff-0.33/patches/patch-ce # yiff-0.33/patches/patch-cf # yiff-0.33/patches/patch-cg # yiff-0.33/patches/patch-ch # yiff-0.33/patches/patch-ci # yiff-0.33/patches/patch-cj # yiff-0.33/patches/patch-ck # yiff-0.33/patches/patch-cl # yiff-0.33/patches/patch-cm # yiff-0.33/patches/patch-da # yiff-0.33/patches/patch-db # yiff-0.33/patches/patch-dc # yiff-0.33/patches/patch-dd # yiff-0.33/patches/patch-de # yiff-0.33/patches/patch-df # yiff-0.33/patches/patch-dg # yiff-0.33/pkg # yiff-0.33/pkg/PLIST # yiff-0.33/pkg/COMMENT # yiff-0.33/pkg/DESCR # echo c - yiff-0.33 mkdir -p yiff-0.33 > /dev/null 2>&1 echo x - yiff-0.33/Makefile sed 's/^X//' >yiff-0.33/Makefile << 'END-of-yiff-0.33/Makefile' X# New ports collection makefile for: yiff X# Version required: 0.33 X# Date created: 16 August 1999 X# Whom: Andrey Zakhvatov X# X# $Id$ X# X XDISTNAME= yiff33 XPKGNAME= yiff-0.33 XCATEGORIES= audio XMASTER_SITES= ftp://fox.mit.edu/pub/xsw/ XEXTRACT_SUFX= .tgz X XMAINTAINER= andy@icc.surw.chel.su X XLIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm X Xdo-build: X @ cd ${WRKSRC}/yiff; ${MAKE} X @ cd ${WRKSRC}/yiffconfig; ${MAKE} X @ cd ${WRKSRC}/yiffutils; ${MAKE} X Xdo-install: X @ ${INSTALL_PROGRAM} ${WRKSRC}/yiff/yiff ${PREFIX}/sbin X @ ${INSTALL_DATA} ${WRKSRC}/yiff/yiffrc ${PREFIX}/etc/yiffrc.sample X @ if [ ! -f ${PREFIX}/etc/yiffrc ]; then ${INSTALL_DATA} ${WRKSRC}/yiff/yiffrc ${PREFIX}/etc; fi X @ ${INSTALL_PROGRAM} ${WRKSRC}/yiffconfig/yiffconfig ${PREFIX}/bin X @ ${INSTALL_PROGRAM} ${WRKSRC}/yiffutils/yiffhost ${PREFIX}/bin X @ ${INSTALL_PROGRAM} ${WRKSRC}/yiffutils/yiffset ${PREFIX}/bin X @ ${INSTALL_PROGRAM} ${WRKSRC}/yiffutils/yiffshutdown ${PREFIX}/bin X @ ${INSTALL_PROGRAM} ${WRKSRC}/yiffutils/yiffstat ${PREFIX}/bin X Xpost-install: X.if !defined(NOPORTDOCS) X @ ${MKDIR} ${PREFIX}/share/doc/yiff X.for file in INSTALL README X @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/yiff X.endfor X.endif X X.include <bsd.port.mk> END-of-yiff-0.33/Makefile echo c - yiff-0.33/files mkdir -p yiff-0.33/files > /dev/null 2>&1 echo x - yiff-0.33/files/md5 sed 's/^X//' >yiff-0.33/files/md5 << 'END-of-yiff-0.33/files/md5' XMD5 (yiff33.tgz) = cd467af17f71d8a56beb64e0ed0a3944 END-of-yiff-0.33/files/md5 echo c - yiff-0.33/patches mkdir -p yiff-0.33/patches > /dev/null 2>&1 echo x - yiff-0.33/patches/patch-aa sed 's/^X//' >yiff-0.33/patches/patch-aa << 'END-of-yiff-0.33/patches/patch-aa' X--- include/os.h Thu May 6 12:46:25 1999 X+++ /home/andy/tmp/wrk/include/os.h Mon Aug 16 12:23:18 1999 X@@ -99,6 +99,10 @@ X #endif X */ X X+#ifdef __FreeBSD__ X+#include <limits.h> X+#endif X+ X #ifndef NGROUPS_MAX X # define NGROUPS_MAX 32 /* supplemental group IDs are available */ X #endif X@@ -165,6 +169,10 @@ X * X * Byte orderings are in `Intel notation'. X */ X+#ifdef __FreeBSD__ X+#define __BIT_TYPES_DEFINED__ X+#endif X+ X #ifndef __BIT_TYPES_DEFINED__ X #define __BIT_TYPES_DEFINED__ X #warning Bit types not defined, will attempt to define according to i386. END-of-yiff-0.33/patches/patch-aa echo x - yiff-0.33/patches/patch-ba sed 's/^X//' >yiff-0.33/patches/patch-ba << 'END-of-yiff-0.33/patches/patch-ba' X--- yiff/Makefile Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/Makefile Mon Aug 16 13:32:28 1999 X@@ -8,10 +8,15 @@ X # (not installed) by default. X # X X+# X+# Installation prefix X+# X+PREFIX ?= /usr/local X+ X # ######################################################################## X # Libraries: X # X-INC = -I/usr/include X+INC = X LIB = X LIB_DIR = X X@@ -27,14 +32,14 @@ X # SOUND_EXPERIMENTAL For enabling Linux sound fragmenting X # (you probably want this). X # X-CFLAGS = -O2 -funroll-loops -D__USE_BSD -DSOUND_EXPERIMENTAL X+CFLAGS+= -D__USE_BSD -DSOUND_EXPERIMENTAL -DPREFIX=\"${PREFIX}\" X X X # ######################################################################## X # Program source and header files: X # X X-CC = gcc X+CC?= cc X BIN = yiff X BINCONFIGFILE = yiffrc X SRC = afw.c bufmix.c disk.c fio.c mixer.c playstack.c raw.c rcfile.c \ END-of-yiff-0.33/patches/patch-ba echo x - yiff-0.33/patches/patch-bb sed 's/^X//' >yiff-0.33/patches/patch-bb << 'END-of-yiff-0.33/patches/patch-bb' X--- yiff/disk.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/disk.c Mon Aug 16 12:21:29 1999 X@@ -39,7 +39,9 @@ X X #include <stdio.h> X #include <stdlib.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <fcntl.h> X #include <errno.h> END-of-yiff-0.33/patches/patch-bb echo x - yiff-0.33/patches/patch-bc sed 's/^X//' >yiff-0.33/patches/patch-bc << 'END-of-yiff-0.33/patches/patch-bc' X--- yiff/fio.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/fio.c Mon Aug 16 12:21:45 1999 X@@ -11,7 +11,9 @@ X */ X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X #include "../include/fio.h" END-of-yiff-0.33/patches/patch-bc echo x - yiff-0.33/patches/patch-bd sed 's/^X//' >yiff-0.33/patches/patch-bd << 'END-of-yiff-0.33/patches/patch-bd' X--- yiff/mixer.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/mixer.c Mon Aug 16 12:21:56 1999 X@@ -8,6 +8,10 @@ X # include <linux/soundcard.h> X #endif X X+#ifdef __FreeBSD__ X+#include <machine/soundcard.h> X+#endif X+ X #include "mixer.h" X X END-of-yiff-0.33/patches/patch-bd echo x - yiff-0.33/patches/patch-be sed 's/^X//' >yiff-0.33/patches/patch-be << 'END-of-yiff-0.33/patches/patch-be' X--- yiff/playstack.c Thu May 6 12:46:30 1999 X+++ /home/andy/tmp/wrk/yiff/playstack.c Mon Aug 16 12:22:07 1999 X@@ -1,5 +1,7 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X X #include "playstack.h" X END-of-yiff-0.33/patches/patch-be echo x - yiff-0.33/patches/patch-bf sed 's/^X//' >yiff-0.33/patches/patch-bf << 'END-of-yiff-0.33/patches/patch-bf' X--- yiff/rcfile.c Thu May 6 12:46:32 1999 X+++ /home/andy/tmp/wrk/yiff/rcfile.c Mon Aug 16 12:22:18 1999 X@@ -10,7 +10,9 @@ X */ X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X #include "../include/cfgfmt.h" END-of-yiff-0.33/patches/patch-bf echo x - yiff-0.33/patches/patch-bg sed 's/^X//' >yiff-0.33/patches/patch-bg << 'END-of-yiff-0.33/patches/patch-bg' X--- yiff/soundpaths.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/soundpaths.c Mon Aug 16 12:22:25 1999 X@@ -1,5 +1,7 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <sys/stat.h> X END-of-yiff-0.33/patches/patch-bg echo x - yiff-0.33/patches/patch-bh sed 's/^X//' >yiff-0.33/patches/patch-bh << 'END-of-yiff-0.33/patches/patch-bh' X--- yiff/string.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/string.c Mon Aug 16 12:22:31 1999 X@@ -52,7 +52,9 @@ X X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <stdlib.h> X #include <unistd.h> END-of-yiff-0.33/patches/patch-bh echo x - yiff-0.33/patches/patch-bi sed 's/^X//' >yiff-0.33/patches/patch-bi << 'END-of-yiff-0.33/patches/patch-bi' X--- yiff/voc.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/voc.c Mon Aug 16 12:22:40 1999 X@@ -1,5 +1,7 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <stdlib.h> X #include <string.h> X #include <sys/stat.h> END-of-yiff-0.33/patches/patch-bi echo x - yiff-0.33/patches/patch-bj sed 's/^X//' >yiff-0.33/patches/patch-bj << 'END-of-yiff-0.33/patches/patch-bj' X--- yiff/yconnection.c Thu May 6 12:46:30 1999 X+++ /home/andy/tmp/wrk/yiff/yconnection.c Mon Aug 16 12:22:48 1999 X@@ -1,9 +1,11 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X-#include <netinet/in.h> X #include <sys/types.h> X+#include <netinet/in.h> X #include <sys/socket.h> X X #include "yconnection.h" END-of-yiff-0.33/patches/patch-bj echo x - yiff-0.33/patches/patch-bk sed 's/^X//' >yiff-0.33/patches/patch-bk << 'END-of-yiff-0.33/patches/patch-bk' X--- yiff/yhost.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/yhost.c Mon Aug 16 12:22:56 1999 X@@ -1,5 +1,7 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <stdlib.h> X END-of-yiff-0.33/patches/patch-bk echo x - yiff-0.33/patches/patch-bl sed 's/^X//' >yiff-0.33/patches/patch-bl << 'END-of-yiff-0.33/patches/patch-bl' X--- yiff/yiff.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/yiff.c Mon Aug 16 13:29:33 1999 X@@ -41,7 +41,9 @@ X */ X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <unistd.h> X #include <signal.h> X@@ -1027,8 +1029,8 @@ X cycle_ahead_ms = 1.5 * X recorder->audio.compensated_cycle.ms; X } X- } X #endif /* __linux__ */ X+ } X } X X sprintf(sndbuf, "%s\n", YNET_CMD_SYNC); END-of-yiff-0.33/patches/patch-bl echo x - yiff-0.33/patches/patch-bm sed 's/^X//' >yiff-0.33/patches/patch-bm << 'END-of-yiff-0.33/patches/patch-bm' X--- yiff/yiff.h Thu May 6 12:46:30 1999 X+++ /home/andy/tmp/wrk/yiff/yiff.h Mon Aug 16 13:37:12 1999 X@@ -53,7 +53,7 @@ X /* X * Default paths: X */ X-#define DEF_RCFILE_NAME "/usr/etc/yiffrc" X+#define DEF_RCFILE_NAME PREFIX "/etc/yiffrc" X X X /* END-of-yiff-0.33/patches/patch-bm echo x - yiff-0.33/patches/patch-bn sed 's/^X//' >yiff-0.33/patches/patch-bn << 'END-of-yiff-0.33/patches/patch-bn' X--- yiff/ymode.c Thu May 6 12:46:31 1999 X+++ /home/andy/tmp/wrk/yiff/ymode.c Mon Aug 16 13:29:42 1999 X@@ -1,5 +1,7 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X #include "ysound.h" END-of-yiff-0.33/patches/patch-bn echo x - yiff-0.33/patches/patch-bo sed 's/^X//' >yiff-0.33/patches/patch-bo << 'END-of-yiff-0.33/patches/patch-bo' X--- yiff/ysound.c Thu May 6 12:46:30 1999 X+++ /home/andy/tmp/wrk/yiff/ysound.c Mon Aug 16 13:29:49 1999 X@@ -1,5 +1,7 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <sys/ioctl.h> X #include <sys/types.h> X@@ -11,6 +13,10 @@ X # include <linux/soundcard.h> X #endif /* __linux__ */ X X+#ifdef __FreeBSD__ X+# include <machine/soundcard.h> X+#endif X+ X #include "yiff.h" X X X@@ -181,7 +187,11 @@ X /* Set channels. */ X status = ioctl( X audio_ptr->fd, X+#ifndef __FreeBSD__ X SNDCTL_DSP_CHANNELS, X+#else X+ SOUND_PCM_WRITE_CHANNELS, X+#endif X &audio_ptr->channels X ); X if(status == -1) END-of-yiff-0.33/patches/patch-bo echo x - yiff-0.33/patches/patch-ab sed 's/^X//' >yiff-0.33/patches/patch-ab << 'END-of-yiff-0.33/patches/patch-ab' X--- include/tga.h Thu May 6 12:46:25 1999 X+++ /home/andy/tmp/wrk/include/tga.h Mon Aug 16 14:14:35 1999 X@@ -58,6 +58,10 @@ X /* X * Bit types for systems that don't define it: X */ X+#ifdef __FreeBSD__ X+#define __BIT_TYPES_DEFINED__ X+#endif X+ X #ifndef __BIT_TYPES_DEFINED__ X #define __BIT_TYPES_DEFINED__ X #warning Bit types not defined, will attempt to define according to i386. END-of-yiff-0.33/patches/patch-ab echo x - yiff-0.33/patches/patch-ac sed 's/^X//' >yiff-0.33/patches/patch-ac << 'END-of-yiff-0.33/patches/patch-ac' X--- include/widget.h Thu May 6 12:46:26 1999 X+++ /home/andy/tmp/wrk/include/widget.h Mon Aug 16 14:04:46 1999 X@@ -20,7 +20,7 @@ X #include <errno.h> X extern int errno; X X-#if !defined(_AIX_) && !defined(__HPUX__) X+#if !defined(_AIX_) && !defined(__HPUX__) && !defined(__FreeBSD__) X # include <asm/types.h> X #else X # include <sys/types.h> X@@ -1037,7 +1037,7 @@ X int x, y; X unsigned int width, height; X X-#if !defined(_AIX_) X+#if !defined(_AIX_) && !defined(__FreeBSD__) X umode_t mode; /* Type and permissions. */ X #else X mode_t mode; /* Type and permissions. */ END-of-yiff-0.33/patches/patch-ac echo x - yiff-0.33/patches/patch-ca sed 's/^X//' >yiff-0.33/patches/patch-ca << 'END-of-yiff-0.33/patches/patch-ca' X--- yiffconfig/Makefile Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/Makefile Mon Aug 16 14:17:45 1999 X@@ -2,23 +2,33 @@ X # Libraries: X # X X-INC = -I/usr/include X+# X+# X Window System X+# X+X11BASE ?= /usr/X11R6 X+ X+# X+# Installation prefix X+# X+PREFIX ?= /usr/local X+ X+INC = -I${X11BASE}/include X LIB = -lm -lX11 -lXpm -lXext X-LIB_DIR = -L/usr/X11R6/lib X+LIB_DIR = -L${X11BASE}/lib X X X # ######################################################################## X # Compiler Flags: X # X X-CFLAGS = -D__USE_BSD -O2 -funroll-loops -DUSE_XSHM X+CFLAGS+= -D__USE_BSD -DUSE_XSHM -DPREFIX=\"${PREFIX}\" X X X # ######################################################################## X # Program source and header files: X # X X-CC = gcc X+CC ?= cc X BIN = yiffconfig X HDR = X SRC = disk.c dither.c fio.c mode.c osw-x.c rcfile.c soundpaths.c \ END-of-yiff-0.33/patches/patch-ca echo x - yiff-0.33/patches/patch-cb sed 's/^X//' >yiff-0.33/patches/patch-cb << 'END-of-yiff-0.33/patches/patch-cb' X--- yiffconfig/disk.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/disk.c Mon Aug 16 13:58:18 1999 X@@ -39,7 +39,9 @@ X X #include <stdio.h> X #include <stdlib.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <fcntl.h> X #include <errno.h> END-of-yiff-0.33/patches/patch-cb echo x - yiff-0.33/patches/patch-cc sed 's/^X//' >yiff-0.33/patches/patch-cc << 'END-of-yiff-0.33/patches/patch-cc' X--- yiffconfig/fio.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/fio.c Mon Aug 16 13:59:05 1999 X@@ -11,7 +11,9 @@ X */ X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X #include "../include/fio.h" END-of-yiff-0.33/patches/patch-cc echo x - yiff-0.33/patches/patch-cd sed 's/^X//' >yiff-0.33/patches/patch-cd << 'END-of-yiff-0.33/patches/patch-cd' X--- yiffconfig/mode.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/mode.c Mon Aug 16 13:59:41 1999 X@@ -1,5 +1,7 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X #include "../include/yclientio.h" END-of-yiff-0.33/patches/patch-cd echo x - yiff-0.33/patches/patch-ce sed 's/^X//' >yiff-0.33/patches/patch-ce << 'END-of-yiff-0.33/patches/patch-ce' X--- yiffconfig/osw-x.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/osw-x.c Mon Aug 16 14:05:35 1999 X@@ -248,7 +248,9 @@ X */ X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <stdlib.h> X #include <string.h> X #include <db.h> END-of-yiff-0.33/patches/patch-ce echo x - yiff-0.33/patches/patch-cf sed 's/^X//' >yiff-0.33/patches/patch-cf << 'END-of-yiff-0.33/patches/patch-cf' X--- yiffconfig/rcfile.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/rcfile.c Mon Aug 16 14:06:11 1999 X@@ -11,7 +11,9 @@ X */ X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <sys/stat.h> X END-of-yiff-0.33/patches/patch-cf echo x - yiff-0.33/patches/patch-cg sed 's/^X//' >yiff-0.33/patches/patch-cg << 'END-of-yiff-0.33/patches/patch-cg' X--- yiffconfig/soundpaths.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/soundpaths.c Mon Aug 16 14:06:43 1999 X@@ -1,5 +1,7 @@ X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <sys/stat.h> X END-of-yiff-0.33/patches/patch-cg echo x - yiff-0.33/patches/patch-ch sed 's/^X//' >yiff-0.33/patches/patch-ch << 'END-of-yiff-0.33/patches/patch-ch' X--- yiffconfig/string.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/string.c Mon Aug 16 14:07:29 1999 X@@ -52,7 +52,9 @@ X X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <stdlib.h> X #include <unistd.h> END-of-yiff-0.33/patches/patch-ch echo x - yiff-0.33/patches/patch-ci sed 's/^X//' >yiff-0.33/patches/patch-ci << 'END-of-yiff-0.33/patches/patch-ci' X--- yiffconfig/tga.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/tga.c Mon Aug 16 14:23:57 1999 X@@ -42,7 +42,9 @@ X X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <db.h> X #include <sys/stat.h> END-of-yiff-0.33/patches/patch-ci echo x - yiff-0.33/patches/patch-cj sed 's/^X//' >yiff-0.33/patches/patch-cj << 'END-of-yiff-0.33/patches/patch-cj' X--- yiffconfig/wfbrowser.c Thu May 6 12:46:40 1999 X+++ /home/andy/tmp/wrk/yiffconfig/wfbrowser.c Mon Aug 16 14:14:18 1999 X@@ -578,7 +578,7 @@ X char old_name[PATH_MAX + NAME_MAX]; X X char *strptr; X-#if (_AIX_) X+#if (_AIX_) || (__FreeBSD__) X mode_t new_mode; X #else X umode_t new_mode; END-of-yiff-0.33/patches/patch-cj echo x - yiff-0.33/patches/patch-ck sed 's/^X//' >yiff-0.33/patches/patch-ck << 'END-of-yiff-0.33/patches/patch-ck' X--- yiffconfig/yclientio.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/yclientio.c Mon Aug 16 14:13:50 1999 X@@ -73,7 +73,9 @@ X X #include <stdio.h> X #include <stdlib.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <db.h> X #include <errno.h> X@@ -277,7 +279,12 @@ X */ X void YIFF_CHILD_KILL(int s) X { X+#ifdef __FreeBSD__ X+ int wstatus; X+#else X union wait wstatus; X+#endif X+ X while(wait3(&wstatus, WNOHANG, NULL) > 0); X } X END-of-yiff-0.33/patches/patch-ck echo x - yiff-0.33/patches/patch-cl sed 's/^X//' >yiff-0.33/patches/patch-cl << 'END-of-yiff-0.33/patches/patch-cl' X--- yiffconfig/yiffconfig.c Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/yiffconfig.c Mon Aug 16 14:15:16 1999 X@@ -28,7 +28,9 @@ X */ X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <unistd.h> X #include <stdlib.h> END-of-yiff-0.33/patches/patch-cl echo x - yiff-0.33/patches/patch-cm sed 's/^X//' >yiff-0.33/patches/patch-cm << 'END-of-yiff-0.33/patches/patch-cm' X--- yiffconfig/yiffconfig.h Thu May 6 12:46:41 1999 X+++ /home/andy/tmp/wrk/yiffconfig/yiffconfig.h Mon Aug 16 14:16:28 1999 X@@ -35,12 +35,12 @@ X /* X * Default path locations: X */ X-#define DEF_YIFF_CONFIG_NAME "/usr/etc/yiffrc" X+#define DEF_YIFF_CONFIG_NAME PREFIX "/etc/yiffrc" X X /* X * Default path locations: X */ X-#define DEF_YIFF_NAME "/usr/sbin/yiff" X+#define DEF_YIFF_NAME PREFIX "/sbin/yiff" X X X /* END-of-yiff-0.33/patches/patch-cm echo x - yiff-0.33/patches/patch-da sed 's/^X//' >yiff-0.33/patches/patch-da << 'END-of-yiff-0.33/patches/patch-da' X--- yiffutils/Makefile Thu May 6 12:46:36 1999 X+++ /home/andy/tmp/wrk/yiffutils/Makefile Mon Aug 16 14:33:48 1999 X@@ -11,14 +11,14 @@ X # Compiler Flags: X # X X-CFLAGS = -D__USE_BSD -O2 -funroll-loops X+CFLAGS+= -D__USE_BSD X X X # ######################################################################## X # Program source and header files: X # X X-CC = gcc X+CC ?= gcc X STDSRC = strexp.c string.c yclientio.c X X END-of-yiff-0.33/patches/patch-da echo x - yiff-0.33/patches/patch-db sed 's/^X//' >yiff-0.33/patches/patch-db << 'END-of-yiff-0.33/patches/patch-db' X--- yiffutils/string.c Thu May 6 12:46:36 1999 X+++ /home/andy/tmp/wrk/yiffutils/string.c Mon Aug 16 14:33:56 1999 X@@ -52,7 +52,9 @@ X X X #include <stdio.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <stdlib.h> X #include <unistd.h> END-of-yiff-0.33/patches/patch-db echo x - yiff-0.33/patches/patch-dc sed 's/^X//' >yiff-0.33/patches/patch-dc << 'END-of-yiff-0.33/patches/patch-dc' X--- yiffutils/yclientio.c Thu May 6 12:46:36 1999 X+++ /home/andy/tmp/wrk/yiffutils/yclientio.c Mon Aug 16 14:34:07 1999 X@@ -73,7 +73,9 @@ X X #include <stdio.h> X #include <stdlib.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <db.h> X #include <errno.h> X@@ -277,7 +279,11 @@ X */ X void YIFF_CHILD_KILL(int s) X { X+#ifdef __FreeBSD__ X+ int wstatus; X+#else X union wait wstatus; X+#endif X while(wait3(&wstatus, WNOHANG, NULL) > 0); X } X END-of-yiff-0.33/patches/patch-dc echo x - yiff-0.33/patches/patch-dd sed 's/^X//' >yiff-0.33/patches/patch-dd << 'END-of-yiff-0.33/patches/patch-dd' X--- yiffutils/yiffhost.c Thu May 6 12:46:36 1999 X+++ /home/andy/tmp/wrk/yiffutils/yiffhost.c Mon Aug 16 14:35:16 1999 X@@ -1,6 +1,8 @@ X #include <stdio.h> X #include <stdlib.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X #include "../include/string.h" END-of-yiff-0.33/patches/patch-dd echo x - yiff-0.33/patches/patch-de sed 's/^X//' >yiff-0.33/patches/patch-de << 'END-of-yiff-0.33/patches/patch-de' X--- yiffutils/yiffset.c Thu May 6 12:46:36 1999 X+++ /home/andy/tmp/wrk/yiffutils/yiffset.c Mon Aug 16 14:35:27 1999 X@@ -1,6 +1,8 @@ X #include <stdio.h> X #include <stdlib.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X #include "../include/string.h" END-of-yiff-0.33/patches/patch-de echo x - yiff-0.33/patches/patch-df sed 's/^X//' >yiff-0.33/patches/patch-df << 'END-of-yiff-0.33/patches/patch-df' X--- yiffutils/yiffshutdown.c Thu May 6 12:46:36 1999 X+++ /home/andy/tmp/wrk/yiffutils/yiffshutdown.c Mon Aug 16 14:35:55 1999 X@@ -1,6 +1,8 @@ X #include <stdio.h> X #include <stdlib.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X X #include "../include/string.h" END-of-yiff-0.33/patches/patch-df echo x - yiff-0.33/patches/patch-dg sed 's/^X//' >yiff-0.33/patches/patch-dg << 'END-of-yiff-0.33/patches/patch-dg' X--- yiffutils/yiffstat.c Thu May 6 12:46:36 1999 X+++ /home/andy/tmp/wrk/yiffutils/yiffstat.c Mon Aug 16 14:36:36 1999 X@@ -1,6 +1,8 @@ X #include <stdio.h> X #include <stdlib.h> X+#ifndef __FreeBSD__ X #include <malloc.h> X+#endif X #include <string.h> X #include <unistd.h> X END-of-yiff-0.33/patches/patch-dg echo c - yiff-0.33/pkg mkdir -p yiff-0.33/pkg > /dev/null 2>&1 echo x - yiff-0.33/pkg/PLIST sed 's/^X//' >yiff-0.33/pkg/PLIST << 'END-of-yiff-0.33/pkg/PLIST' Xbin/yiffconfig Xbin/yiffhost Xbin/yiffset Xbin/yiffshutdown Xbin/yiffstat Xetc/yiffrc.sample Xsbin/yiff Xshare/doc/yiff/INSTALL Xshare/doc/yiff/README X@dirrm share/doc/yiff END-of-yiff-0.33/pkg/PLIST echo x - yiff-0.33/pkg/COMMENT sed 's/^X//' >yiff-0.33/pkg/COMMENT << 'END-of-yiff-0.33/pkg/COMMENT' XSound server for games and applications END-of-yiff-0.33/pkg/COMMENT echo x - yiff-0.33/pkg/DESCR sed 's/^X//' >yiff-0.33/pkg/DESCR << 'END-of-yiff-0.33/pkg/DESCR' XYIFF is a sound server (or sound multi user interface) designed for XUNIX programs (perticularly games). It runs in the background like Xany other server, creates a listening port (default port number is X9433) for client programs to connect to, and opens the recorder. This Xallows multiple client programs to connect to YIFF and say in blunt Xlangauge `play this sound' or `change that mode setting' and have that Xacomplished without conflicting multiple uses of the recorder or require Xany sound device coding. So basically an infinate number of programs X(not limited to those running on your computer) can interface with the Xrecorder on a simple and high level basis. X XBe forwarned: on some operating systems YIFF allows you to take Xlow-level control of your sound card, you will be asked to set some Xaspects of your sound card (ie refresh cycle, playback syncing, Xmultiplex timming, and buffer fragmentation) that you may not be Xfamiliar with. You are strongly encuraged to brush up on what you Xknow about sound cards in general, the majority of sound servers don't Xlet you fine tune your recorder to the level of functionality that XYIFF does. X XWWW: http://www.yiff.org/yiff/ END-of-yiff-0.33/pkg/DESCR exit >How-To-Repeat: >Fix: Please, check and commit this port. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908161250.QAA38945>