Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Apr 2001 04:17:34 +0300 (EEST)
From:      kkonstan@duth.gr
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26282: New port: audio/wmrecord: General purpose audio recording utility for the WindowMaker dock
Message-ID:  <200104020117.f321HYV51965@emily.cc.duth.gr>

next in thread | raw e-mail | index | archive | help

>Number:         26282
>Category:       ports
>Synopsis:       New port: audio/wmrecord: General purpose audio recording utility for the WindowMaker dock
>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:   Sun Apr 01 18:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Konstantinos Konstantinidis
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Demokritos University of Thrace
>Environment:

>Description:

	General purpose audio recording utility for the WindowMaker dock

>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:
#
#	wmrecord
#	wmrecord/pkg-comment
#	wmrecord/Makefile
#	wmrecord/pkg-plist
#	wmrecord/distinfo
#	wmrecord/pkg-descr
#	wmrecord/files
#	wmrecord/files/patch-aa
#	wmrecord/files/patch-ab
#
echo c - wmrecord
mkdir -p wmrecord > /dev/null 2>&1
echo x - wmrecord/pkg-comment
sed 's/^X//' >wmrecord/pkg-comment << 'END-of-wmrecord/pkg-comment'
XGeneral purpose audio recording utility for the WindowMaker dock
END-of-wmrecord/pkg-comment
echo x - wmrecord/Makefile
sed 's/^X//' >wmrecord/Makefile << 'END-of-wmrecord/Makefile'
X# New ports collection makefile for:   wmrecord
X# Date created:        2 April 2001
X# Whom:                Konstantinos Konstantinidis <kkonstan@daemon.gr>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wmrecord
XPORTVERSION=	1.0.5
XCATEGORIES=	audio windowmaker
XMASTER_SITES=	http://www.bruhaha.co.uk/
X
XMAINTAINER=	kkonstan@daemon.gr
X
XUSE_XPM=	YES
XUSE_X_PREFIX=	YES
X
XMAN1=		wmrecord.1
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/wmrecord ${PREFIX}/bin
X	@${INSTALL_MAN} ${WRKSRC}/man/wmrecord.1 ${PREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-wmrecord/Makefile
echo x - wmrecord/pkg-plist
sed 's/^X//' >wmrecord/pkg-plist << 'END-of-wmrecord/pkg-plist'
Xbin/wmrecord
END-of-wmrecord/pkg-plist
echo x - wmrecord/distinfo
sed 's/^X//' >wmrecord/distinfo << 'END-of-wmrecord/distinfo'
XMD5 (wmrecord-1.0.5.tar.gz) = 1859d012488931c9806e9b4542dd4986
END-of-wmrecord/distinfo
echo x - wmrecord/pkg-descr
sed 's/^X//' >wmrecord/pkg-descr << 'END-of-wmrecord/pkg-descr'
XWMRecord is a general purpose audio recordin utility that is designed to
Xwork in conjuction with WindowMaker's Dock or AfterStep's Wharf.
X
XIt was originally conceived as a tool for recording memos, interviews
Xand meetings, and this approach is reflected somewhat in the interface.
XRecordings are made to one of 99 numbered sots or tracks which the user
Xmay browse through. There is no limit (other than the constraints of the
Xfile system) to the size of the recordings you make. Recordings are
Xautomatically saved to disk, but may be erased or recorded over as
Xnecessary.
X
XWWW: http://www.bruhaha.co.uk/
X
X-- K. Konstantinidis <kkonstan@daemon.gr>
END-of-wmrecord/pkg-descr
echo c - wmrecord/files
mkdir -p wmrecord/files > /dev/null 2>&1
echo x - wmrecord/files/patch-aa
sed 's/^X//' >wmrecord/files/patch-aa << 'END-of-wmrecord/files/patch-aa'
X*** Makefile.orig	Mon Apr  2 03:42:10 2001
X--- Makefile	Mon Apr  2 03:44:45 2001
X***************
X*** 1,28 ****
X! BINDIR = /usr/local/bin
X! MANDIR = /usr/local/man/man1
X! LIBDIR = -L/usr/X11R6/lib
X! LIBS = -lXpm -lX11 -lXext
X! CFLAGS = -O2 -Wall
X  CC = cc
X  RM = rm -f
X  
X  all:: wmrecord
X  
X  wmrecord: wmrecord.o wmgeneral.o
X! 	$(CC) -o $@ wmrecord.o wmgeneral.o $(LIBDIR) $(LIBS)
X  
X  wmrecord.o: wmrecord.c wmrecord.xpm
X! 	$(CC) -c $(CFLAGS) wmrecord.c
X  
X  wmgeneral.o: wmgeneral/wmgeneral.c
X! 	$(CC) -c $(CFLAGS) wmgeneral/wmgeneral.c
X  
X  clean:
X  	$(RM) *.o wmrecord core
X  
X  tidy:
X  	$(RM) *.o core
X- 
X- install: wmrecord
X- 	install -s -o root -g root -m 0755 wmrecord $(BINDIR)
X- 	install -o root -g root -m 0644 man/wmrecord.1 $(MANDIR)
X--- 1,21 ----
X! LDFLAGS= -L/usr/local/lib -L/usr/X11R6/lib -lXpm -lX11 -lXext
X! CFLAGS+= -Wall -I/usr/local/include -I/usr/X11R6/include
X  CC = cc
X  RM = rm -f
X  
X  all:: wmrecord
X  
X  wmrecord: wmrecord.o wmgeneral.o
X! 	$(CC) $(LDFLAGS) -o $@ wmrecord.o wmgeneral.o 
X  
X  wmrecord.o: wmrecord.c wmrecord.xpm
X! 	$(CC) $(CFLAGS) -c wmrecord.c
X  
X  wmgeneral.o: wmgeneral/wmgeneral.c
X! 	$(CC) $(CFLAGS) -c wmgeneral/wmgeneral.c
X  
X  clean:
X  	$(RM) *.o wmrecord core
X  
X  tidy:
X  	$(RM) *.o core
END-of-wmrecord/files/patch-aa
echo x - wmrecord/files/patch-ab
sed 's/^X//' >wmrecord/files/patch-ab << 'END-of-wmrecord/files/patch-ab'
X*** wmrecord.c.orig	Mon Apr  2 03:48:28 2001
X--- wmrecord.c	Mon Apr  2 03:49:58 2001
X***************
X*** 320,326 ****
X--- 320,330 ----
X    sprintf(q, "%s%s%02d.wav",pd->pw_dir, BASEFILE, tracknum);
X    /* Open the source file, where the recording has been stored. */
X    p = (char *)malloc(sizeof(char)*4);
X+ #ifdef __FreeBSD__
X+   if ((fd=open(q, O_RDONLY))==-1)
X+ #else
X    if ((fd=open(q, O_RDONLY|O_SYNC))==-1)
X+ #endif
X      sprintf(p, "000");
X    else {
X      datalen = wmGetWavSettings(fd);
X***************
X*** 755,761 ****
X--- 759,769 ----
X    pw = getpwuid(uid);
X    fres=(char *)malloc(sizeof(char)*(strlen(pw->pw_dir)+strlen(BASEFILE)+7));
X    sprintf(fres, "%s%s%02d.wav",pw->pw_dir, BASEFILE, tracknum);
X+ #ifdef __FreeBSD__
X+   if ((fd=open(fres,O_RDONLY))==-1) {
X+ #else
X    if ((fd=open(fres,O_RDONLY|O_SYNC))==-1) {
X+ #endif
X      fprintf(stderr, "WMRECORD: Could not open source file.\n");
X      free(fres);
X      copyXPMArea (btn[2].x, btn[2].y, btn[2].w, btn[2].h,
END-of-wmrecord/files/patch-ab
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?200104020117.f321HYV51965>