From owner-freebsd-ports Sat Feb 12 22:50: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by builder.freebsd.org (Postfix) with ESMTP id D57F940D4 for ; Sat, 12 Feb 2000 22:49:57 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA05459; Sat, 12 Feb 2000 22:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from sad.rosevale.com.au (gregro.lnk.telstra.net [139.130.137.117]) by builder.freebsd.org (Postfix) with ESMTP id BAE504013 for ; Sat, 12 Feb 2000 22:41:29 -0800 (PST) Received: from lemon.rosevale.com.au (root@lemon.rosevale.com.au [203.38.193.67]) by sad.rosevale.com.au (8.9.3/8.9.3) with ESMTP id RAA04839 for ; Sun, 13 Feb 2000 17:11:28 +1030 (CST) Received: (from greg@localhost) by lemon.rosevale.com.au (8.9.3/8.9.3) id RAA17418; Sun, 13 Feb 2000 17:11:43 +1030 (CST) (envelope-from greg) Message-Id: <200002130641.RAA17418@lemon.rosevale.com.au> Date: Sun, 13 Feb 2000 17:11:43 +1030 (CST) From: greg@rosevale.com.au To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/16693: new port: wavplay 1.4 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 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 X #include X #include X+ #ifndef FREEBSD X #include X+ #endif X #include X #include X #include X*************** X*** 79,85 **** X--- 81,91 ---- X #ifdef SCHED_PRIORITY X #include X #endif X+ #ifndef FREEBSD X #include X+ #else X+ #include 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 X #include X #include X+ #ifndef FREEBSD X #include X+ #endif X #include X #include X #include X #include X+ #ifndef FREEBSD X #include X+ #else X+ #include 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 X #include X #include X+ #ifndef FREEBSD X #include X+ #endif X #include X #include X #include X*************** X*** 56,62 **** X--- 58,68 ---- X #include X #include X #include X+ #ifndef FREEBSD X #include X+ #else X+ #include 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 X #include X #include X+ #ifndef FREEBSD X #include X+ #endif X #include X #include X #include 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 X #include X #include X+ #ifndef FREEBSD X #include X+ #endif X #include X #include X #include X*************** X*** 64,70 **** X--- 66,76 ---- X #include X #include X #include X+ #ifndef FREEBSD X #include X+ #else X+ #include 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 X #include X #include X+ #ifndef FREEBSD X #include X+ #endif X #include X #include X #include X*************** X*** 57,63 **** X--- 59,69 ---- X #include X #include X #include X+ #ifndef FREEBSD X #include X+ #else X+ #include 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 X #include X #include X+ #ifndef FREEBSD X #include X+ #endif X #include X #include X #include 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