Date: Sun, 13 Feb 2000 17:11:43 +1030 (CST) From: greg@rosevale.com.au To: FreeBSD-gnats-submit@freebsd.org Subject: ports/16693: new port: wavplay 1.4 Message-ID: <200002130641.RAA17418@lemon.rosevale.com.au>
next in thread | raw e-mail | index | archive | help
>Number: 16693 >Category: ports >Synopsis: new port: wavplay 1.4 now with the port! sorry. >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: Sat Feb 12 22:50:02 PST 2000 >Closed-Date: >Last-Modified: >Originator: Greg Robinson >Release: FreeBSD 3.4-STABLE i386 >Organization: none >Environment: requires SB driver on 3.4, but pcm seems ok on 4.0-CURRENT >Description: a soundcard recording and playing program ported from linux >How-To-Repeat: >Fix: # 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: # # /usr/ports/audio/wavplay # /usr/ports/audio/wavplay/Makefile # /usr/ports/audio/wavplay/files # /usr/ports/audio/wavplay/files/md5 # /usr/ports/audio/wavplay/pkg # /usr/ports/audio/wavplay/pkg/COMMENT # /usr/ports/audio/wavplay/pkg/DESCR # /usr/ports/audio/wavplay/pkg/PLIST # /usr/ports/audio/wavplay/patches # /usr/ports/audio/wavplay/patches/patch-aa # /usr/ports/audio/wavplay/patches/patch-ag # /usr/ports/audio/wavplay/patches/patch-af # /usr/ports/audio/wavplay/patches/patch-ae # /usr/ports/audio/wavplay/patches/patch-ad # /usr/ports/audio/wavplay/patches/patch-ac # /usr/ports/audio/wavplay/patches/patch-ab # /usr/ports/audio/wavplay/patches/patch-ah # echo c - /usr/ports/audio/wavplay mkdir -p /usr/ports/audio/wavplay > /dev/null 2>&1 echo x - /usr/ports/audio/wavplay/Makefile sed 's/^X//' >/usr/ports/audio/wavplay/Makefile << 'END-of-/usr/ports/audio/wavplay/Makefile' X# New ports collection makefile for: wavplay X# Version required: 1.4 X# Date created: 14 January 2000 X# Whom: greg X# X# $FreeBSD$ X# X XDISTNAME= wavplay-1.4 XCATEGORIES= audio XMASTER_SITES= http://metalab.unc.edu/pub/Linux/apps/sound/players/ X XMAINTAINER= greg@rosevale.com.au X XMAN1= wavplay.1 XMANCOMPRESSED= no X Xpost-install: X strip ${PREFIX}/bin/wavplay X X.include <bsd.port.mk> END-of-/usr/ports/audio/wavplay/Makefile echo c - /usr/ports/audio/wavplay/files mkdir -p /usr/ports/audio/wavplay/files > /dev/null 2>&1 echo x - /usr/ports/audio/wavplay/files/md5 sed 's/^X//' >/usr/ports/audio/wavplay/files/md5 << 'END-of-/usr/ports/audio/wavplay/files/md5' XMD5 (wavplay-1.4.tar.gz) = 726c58f47c0dbc3b58ff6c42300d518e XMD5 (wavplay14.patches.tar.gz) = a6dba343c980aa7126db57375deaa0f6 END-of-/usr/ports/audio/wavplay/files/md5 echo c - /usr/ports/audio/wavplay/pkg mkdir -p /usr/ports/audio/wavplay/pkg > /dev/null 2>&1 echo x - /usr/ports/audio/wavplay/pkg/COMMENT sed 's/^X//' >/usr/ports/audio/wavplay/pkg/COMMENT << 'END-of-/usr/ports/audio/wavplay/pkg/COMMENT' XA wav player and recorder END-of-/usr/ports/audio/wavplay/pkg/COMMENT echo x - /usr/ports/audio/wavplay/pkg/DESCR sed 's/^X//' >/usr/ports/audio/wavplay/pkg/DESCR << 'END-of-/usr/ports/audio/wavplay/pkg/DESCR' XThis is a port of wavplay from Linux. It can record from your sound Xcard. X XWWW: http://members.home.net/ve3wwg X X- greg Xgreg@rosevale.com.au END-of-/usr/ports/audio/wavplay/pkg/DESCR echo x - /usr/ports/audio/wavplay/pkg/PLIST sed 's/^X//' >/usr/ports/audio/wavplay/pkg/PLIST << 'END-of-/usr/ports/audio/wavplay/pkg/PLIST' Xbin/wavplay Xbin/wavrec END-of-/usr/ports/audio/wavplay/pkg/PLIST echo c - /usr/ports/audio/wavplay/patches mkdir -p /usr/ports/audio/wavplay/patches > /dev/null 2>&1 echo x - /usr/ports/audio/wavplay/patches/patch-aa sed 's/^X//' >/usr/ports/audio/wavplay/patches/patch-aa << 'END-of-/usr/ports/audio/wavplay/patches/patch-aa' X*** Makefile.orig Sat Dec 4 10:36:42 1999 X--- Makefile Sun Feb 13 15:29:59 2000 X*************** X*** 59,65 **** X # This parameter indicates where the program binaries should be X # placed (wavplay, wavrec, and xltwavplay) X # X! INSTDIR=/usr/local/bin X X #---------------------------------------------------------------------- X # Uncomment this line if you want to install the xltwavplay.res resource X--- 59,67 ---- X # This parameter indicates where the program binaries should be X # placed (wavplay, wavrec, and xltwavplay) X # X! PREFIX=/usr/local X! INSTDIR=$(PREFIX)/bin X! MANDIR=$(PREFIX)/man/man1 X X #---------------------------------------------------------------------- X # Uncomment this line if you want to install the xltwavplay.res resource X*************** X*** 81,94 **** X # to disable the EDITRES facility. If you're not compiling xltwavplay X # then this setting can be left asis. X # X! #NOEDITRES=-DNO_EDITRES X X #---------------------------------------------------------------------- X # If you COMMENTED OUT the NOEDITRES line, then UNCOMMENT this line. X # If you UNCOMMENTED the NOEDITRES line, then COMMENT out this line. X # (ie. do the opposite of NOEDITRES) X # X! LIBXMU=-lXmu X X #---------------------------------------------------------------------- X # These are the non X load options (for wavplay/wavrec) X--- 83,96 ---- X # to disable the EDITRES facility. If you're not compiling xltwavplay X # then this setting can be left asis. X # X! NOEDITRES=-DNO_EDITRES X X #---------------------------------------------------------------------- X # If you COMMENTED OUT the NOEDITRES line, then UNCOMMENT this line. X # If you UNCOMMENTED the NOEDITRES line, then COMMENT out this line. X # (ie. do the opposite of NOEDITRES) X # X! #LIBXMU=-lXmu X X #---------------------------------------------------------------------- X # These are the non X load options (for wavplay/wavrec) X*************** X*** 106,112 **** X # only the standard getopt() routine. When commented out, the long options like --help X # are recognized, with the help of the getopt_long() routine. X # X! #STDGETOPTS= -DUSE_GETOPT_STD X X #---------------------------------------------------------------------- X # The next option specifies the pathname that the xltwavplay X client should exec X--- 108,120 ---- X # only the standard getopt() routine. When commented out, the long options like --help X # are recognized, with the help of the getopt_long() routine. X # X! STDGETOPTS= -DUSE_GETOPT_STD X! X! #---------------------------------------------------------------------- X! # X! # Uncomment this when compiling on FreeBSD. X! X! EXTRAOPTS=-DFREEBSD -D__GNU_LIBRARY__ X X #---------------------------------------------------------------------- X # The next option specifies the pathname that the xltwavplay X client should exec X*************** X*** 133,139 **** X # Environment variable DSPPATH will override this value at runtime, if X # present. X # X! #DSPPATH= -DAUDIODEV=\"/dev/dsp\" X X #---------------------------------------------------------------------- X # Semaphore IPC Key for the Play & Record locks (Default is 0x33333333) X--- 141,147 ---- X # Environment variable DSPPATH will override this value at runtime, if X # present. X # X! DSPPATH= -DAUDIODEV=\"/dev/audio\" X X #---------------------------------------------------------------------- X # Semaphore IPC Key for the Play & Record locks (Default is 0x33333333) X*************** X*** 155,161 **** X # Only for unusual sites would you change this: the name of the X # install program. (has no impact if you choose to manually install) X # X! INSTALL=install X X #---------------------------------------------------------------------- X # If you have any custom include directories, like for X or X--- 163,169 ---- X # Only for unusual sites would you change this: the name of the X # install program. (has no impact if you choose to manually install) X # X! INSTALL=install -c X X #---------------------------------------------------------------------- X # If you have any custom include directories, like for X or X*************** X*** 163,176 **** X # this should be unecessary if the appropriate symlinks are X # installed). X # X! #CUSTINCL= -I/usr/X11R6/include/X11 -I/usr/local/lesstif/include/Xm X X #---------------------------------------------------------------------- X # Normally, you shouldn't need to change anything beyond this point: X #---------------------------------------------------------------------- X .SUFFIXES: .c .cc .h .o X X! CUSTMOPTS=$(STDGETOPTS) $(PLAYPATH) $(DSPMIN) $(DSPMAX) $(DSPPATH) $(DSPLOCKS) $(USERES) $(NOEDITRES) $(SCHED_PRIORITY) X ELF= # -fPIC X INCL= -I. $(CUSTINCL) X CCFLAGS= -c $(DEBUG)$(OPT) $(CPU) $(ELF) -fhandle-exceptions $(CUSTMOPTS) -Wall -Wstrict-prototypes X--- 171,184 ---- X # this should be unecessary if the appropriate symlinks are X # installed). X # X! #CUSTINCL= -I/usr/X11R6/include/X11 -I/usr/local/lesstif/include/Xm -I/usr/X11R6/include X X #---------------------------------------------------------------------- X # Normally, you shouldn't need to change anything beyond this point: X #---------------------------------------------------------------------- X .SUFFIXES: .c .cc .h .o X X! CUSTMOPTS=$(STDGETOPTS) $(EXTRAOPTS) $(PLAYPATH) $(DSPMIN) $(DSPMAX) $(DSPPATH) $(DSPLOCKS) $(USERES) $(NOEDITRES) $(SCHED_PRIORITY) X ELF= # -fPIC X INCL= -I. $(CUSTINCL) X CCFLAGS= -c $(DEBUG)$(OPT) $(CPU) $(ELF) -fhandle-exceptions $(CUSTMOPTS) -Wall -Wstrict-prototypes X*************** X*** 189,197 **** X .c.o: X $(CC) $(CFLAGS) $(INCL) $< X X! all: wavplay wavrec xltwavplay X X! no_x: wavplay wavrec X X # wavdump: $(WVDMPO) X # $(CP) $(WVDMPO) $(LDOPTS) $(DEBUG) -o wavdump -lRIFF X--- 197,205 ---- X .c.o: X $(CC) $(CFLAGS) $(INCL) $< X X! all: wavplay wavrec X X! with_x: wavplay wavrec xltwavplay X X # wavdump: $(WVDMPO) X # $(CP) $(WVDMPO) $(LDOPTS) $(DEBUG) -o wavdump -lRIFF X*************** X*** 209,226 **** X $(STRIP) xltwavplay X ls -l xltwavplay X X! install: install_wavplay install_xltwavplay X X! install_no_x: install_wavplay X X install_wavplay: wavplay wavrec X! @[ ! -d "$(INSTDIR)" ] && echo "You do not have a directory $(INSTDIR); Check INSTDIR in make file." && exit 13 || : X! $(INSTALL) -o root -g root -m 555 wavplay $(INSTDIR) X rm -f $(INSTDIR)/wavrec X ln $(INSTDIR)/wavplay $(INSTDIR)/wavrec X- @[ ! -z "$(SCHED_PRIORITY)" ] && echo "*** DO 'make setuid_root' IF YOU WANT REAL TIME SCHEDULING ***" || : X @echo X X xltwavplay_test: wavplay xltwavplay X WAVPLAYPATH=./wavplay ./xltwavplay X X--- 217,237 ---- X $(STRIP) xltwavplay X ls -l xltwavplay X X! install: install_wavplay install_man X X! install_with_x: install_wavplay install_xltwavplay install_man X X install_wavplay: wavplay wavrec X! mkdir -p $(INSTDIR) X! $(INSTALL) -o root -g wheel -m 555 wavplay $(INSTDIR) X rm -f $(INSTDIR)/wavrec X ln $(INSTDIR)/wavplay $(INSTDIR)/wavrec X @echo X X+ install_man: wavplay.1 X+ mkdir -p $(MANDIR) X+ $(INSTALL) -o root -g wheel -m 444 wavplay.1 $(MANDIR) X+ X xltwavplay_test: wavplay xltwavplay X WAVPLAYPATH=./wavplay ./xltwavplay X X*************** X*** 234,242 **** X @echo X X install_xltwavplay: xltwavplay X! $(INSTALL) -o root -g root -m 555 xltwavplay $(INSTDIR) X @[ ! -z "$(USERES)" ] \ X! && $(INSTALL) -o root -g root -m 555 xltwavplay.res $(RESDIR)/xltwavplay \ X && ls -dlL $(RESDIR)/xltwavplay/xltwavplay.res \ X || rm -f $(RESDIR)/xltwavplay X X--- 245,253 ---- X @echo X X install_xltwavplay: xltwavplay X! $(INSTALL) -o root -g wheel -m 555 xltwavplay $(INSTDIR) X @[ ! -z "$(USERES)" ] \ X! && $(INSTALL) -o root -g wheel -m 555 xltwavplay.res $(RESDIR)/xltwavplay \ X && ls -dlL $(RESDIR)/xltwavplay/xltwavplay.res \ X || rm -f $(RESDIR)/xltwavplay X END-of-/usr/ports/audio/wavplay/patches/patch-aa echo x - /usr/ports/audio/wavplay/patches/patch-ag sed 's/^X//' >/usr/ports/audio/wavplay/patches/patch-ag << 'END-of-/usr/ports/audio/wavplay/patches/patch-ag' X*** server.c.orig Sat Jan 15 12:59:19 2000 X--- server.c Sat Jan 15 13:17:07 2000 X*************** X*** 65,71 **** X--- 65,73 ---- X #include <unistd.h> X #include <errno.h> X #include <fcntl.h> X+ #ifndef FREEBSD X #include <malloc.h> X+ #endif X #include <string.h> X #include <memory.h> X #include <signal.h> X*************** X*** 79,85 **** X--- 81,91 ---- X #ifdef SCHED_PRIORITY X #include <sched.h> X #endif X+ #ifndef FREEBSD X #include <linux/soundcard.h> X+ #else X+ #include <machine/soundcard.h> X+ #endif X #include "wavplay.h" X #include "server.h" X END-of-/usr/ports/audio/wavplay/patches/patch-ag echo x - /usr/ports/audio/wavplay/patches/patch-af sed 's/^X//' >/usr/ports/audio/wavplay/patches/patch-af << 'END-of-/usr/ports/audio/wavplay/patches/patch-af' X*** recplay.c.orig Sat Jan 15 12:56:46 2000 X--- recplay.c Sat Jan 15 13:16:42 2000 X*************** X*** 52,63 **** X--- 52,69 ---- X #include <stdio.h> X #include <stdarg.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> X #include <sys/stat.h> X+ #ifndef FREEBSD X #include <linux/soundcard.h> X+ #else X+ #include <machine/soundcard.h> X+ #endif X #include "wavplay.h" X #include "server.h" X END-of-/usr/ports/audio/wavplay/patches/patch-af echo x - /usr/ports/audio/wavplay/patches/patch-ae sed 's/^X//' >/usr/ports/audio/wavplay/patches/patch-ae << 'END-of-/usr/ports/audio/wavplay/patches/patch-ae' X*** msg.c.orig Sat Jan 15 12:58:40 2000 X--- msg.c Sat Jan 15 13:16:12 2000 X*************** X*** 47,53 **** X--- 47,55 ---- X #include <unistd.h> X #include <errno.h> X #include <fcntl.h> X+ #ifndef FREEBSD X #include <malloc.h> X+ #endif X #include <string.h> X #include <memory.h> X #include <signal.h> X*************** X*** 56,62 **** X--- 58,68 ---- X #include <sys/msg.h> X #include <sys/ioctl.h> X #include <assert.h> X+ #ifndef FREEBSD X #include <linux/soundcard.h> X+ #else X+ #include <machine/soundcard.h> X+ #endif X #include "wavplay.h" X X /* END-of-/usr/ports/audio/wavplay/patches/patch-ae echo x - /usr/ports/audio/wavplay/patches/patch-ad sed 's/^X//' >/usr/ports/audio/wavplay/patches/patch-ad << 'END-of-/usr/ports/audio/wavplay/patches/patch-ad' X*** main.c.orig Sat Jan 15 12:51:14 2000 X--- main.c Sat Jan 15 14:14:54 2000 X*************** X*** 56,62 **** X--- 56,64 ---- X #include <unistd.h> X #include <stdarg.h> X #include <string.h> X+ #ifndef FREEBSD X #include <getopt.h> X+ #endif X #include <fcntl.h> X #include <sys/types.h> X #include <sys/ipc.h> X*************** X*** 82,88 **** X--- 84,94 ---- X else printf("Usage:\t%s [options] [files...]\n\n",cmd); X X puts("Options:"); X+ #ifndef FREEBSD X printf("\t-%c\tThis info (or use --help)\n",OPF_HELP); X+ #else X+ printf("\t-%c\tThis info\n",OPF_HELP); X+ #endif X printf("\t-%c\tQuiet mode (no messages)\n",OPF_QUIET); X printf("\t-%c rate\tSampling rate\n",OPF_SAMPRATE); X printf("\t-%c\tDebug mode\n",OPF_DEBUG); X*************** X*** 105,111 **** X--- 111,121 ---- X if ( opr_mode != OprRecord ) X printf("\t-%c\tDisplay info about wav file(s) only\n",OPF_INFO); X X+ #ifndef FREEBSD X printf("\n\t-%c\tDisplay version and Copyright info (or use --version)\n\n",OPF_VERSION); X+ #else X+ printf("\n\t-%c\tDisplay version and Copyright info\n\n",OPF_VERSION); X+ #endif X X puts("\nWAV parameters are normally taken from the input file(s),\n" X "but command line options can override them if required."); X*************** X*** 208,213 **** X--- 218,225 ---- X int rc; /* Return code */ X int fd; /* Temporary file descriptor */ X double d; /* Temporary double value */ X+ char *cp; /* Used for env var */ X+ uid_t uid; X static char cmdopts[] = { X OPF_INFO, OPF_HELP, OPF_QUIET, OPF_SAMPRATE,':', OPF_STEREO, OPF_MONO, X OPF_TIME,':', OPF_DATABITS,':', OPF_IPCKEY,':', OPF_RESET, END-of-/usr/ports/audio/wavplay/patches/patch-ad echo x - /usr/ports/audio/wavplay/patches/patch-ac sed 's/^X//' >/usr/ports/audio/wavplay/patches/patch-ac << 'END-of-/usr/ports/audio/wavplay/patches/patch-ac' X*** file.c.orig Sat Jan 15 12:55:46 2000 X--- file.c Sat Jan 15 13:15:38 2000 X*************** X*** 56,62 **** X--- 56,64 ---- X #include <unistd.h> X #include <errno.h> X #include <fcntl.h> X+ #ifndef FREEBSD X #include <malloc.h> X+ #endif X #include <string.h> X #include <memory.h> X #include <signal.h> X*************** X*** 64,70 **** X--- 66,76 ---- X #include <sys/ipc.h> X #include <sys/ioctl.h> X #include <assert.h> X+ #ifndef FREEBSD X #include <linux/soundcard.h> X+ #else X+ #include <machine/soundcard.h> X+ #endif X #include "wavplay.h" X X extern int clntIPC; /* Needed for message passing in PlayDSP */ END-of-/usr/ports/audio/wavplay/patches/patch-ac echo x - /usr/ports/audio/wavplay/patches/patch-ab sed 's/^X//' >/usr/ports/audio/wavplay/patches/patch-ab << 'END-of-/usr/ports/audio/wavplay/patches/patch-ab' X*** client.c.orig Sat Jan 15 13:05:07 2000 X--- client.c Sat Jan 15 13:08:42 2000 X*************** X*** 47,53 **** X--- 47,55 ---- X #include <unistd.h> X #include <errno.h> X #include <time.h> X+ #ifndef FREEBSD X #include <malloc.h> X+ #endif X #include <string.h> X #include <memory.h> X #include <signal.h> X*************** X*** 57,63 **** X--- 59,69 ---- X #include <sys/wait.h> X #include <sys/stat.h> X #include <assert.h> X+ #ifndef FREEBSD X #include <linux/soundcard.h> X+ #else X+ #include <machine/soundcard.h> X+ #endif X #include "wavplay.h" X #include "client.h" X END-of-/usr/ports/audio/wavplay/patches/patch-ab echo x - /usr/ports/audio/wavplay/patches/patch-ah sed 's/^X//' >/usr/ports/audio/wavplay/patches/patch-ah << 'END-of-/usr/ports/audio/wavplay/patches/patch-ah' X*** xltwavplay.c.orig Sat Jan 15 13:12:38 2000 X--- xltwavplay.c Sat Jan 15 13:13:02 2000 X*************** X*** 59,65 **** X--- 59,67 ---- X #include <time.h> X #include <signal.h> X #include <string.h> X+ #ifndef FREEBSD X #include <getopt.h> X+ #endif X #include <errno.h> X #include <sys/types.h> X #include <sys/ipc.h> END-of-/usr/ports/audio/wavplay/patches/patch-ah exit >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?200002130641.RAA17418>