diff options
author | will <will@FreeBSD.org> | 2001-04-07 13:04:42 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-04-07 13:04:42 +0800 |
commit | 106e211907678ef4e6770a3210cd14668c308fe3 (patch) | |
tree | d7bc62fe20bcb9990a3aa39ac238ec2a16d8fa13 | |
parent | 96a41c7bc2711e5286dd59830658bfabdb0027bf (diff) | |
download | freebsd-ports-graphics-106e211907678ef4e6770a3210cd14668c308fe3.tar.gz freebsd-ports-graphics-106e211907678ef4e6770a3210cd14668c308fe3.tar.zst freebsd-ports-graphics-106e211907678ef4e6770a3210cd14668c308fe3.zip |
Add wmrecord 1.0.5, a general purpose audio recording utility for the
WindowMaker dock.
PR: 26282
Submitted by: Konstantinos Konstantinidis <kkonstan@daemon.gr>
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/wmrecord/Makefile | 24 | ||||
-rw-r--r-- | audio/wmrecord/distinfo | 1 | ||||
-rw-r--r-- | audio/wmrecord/files/patch-Makefile | 54 | ||||
-rw-r--r-- | audio/wmrecord/files/patch-wmrecord.c | 30 | ||||
-rw-r--r-- | audio/wmrecord/pkg-comment | 1 | ||||
-rw-r--r-- | audio/wmrecord/pkg-descr | 14 | ||||
-rw-r--r-- | audio/wmrecord/pkg-plist | 1 |
8 files changed, 126 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index ce1c8860183..10e8b76bbf7 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -184,6 +184,7 @@ SUBDIR += wmix SUBDIR += wmmixer SUBDIR += wmmp3 + SUBDIR += wmrecord SUBDIR += wmsmixer SUBDIR += wmtune SUBDIR += wmusic diff --git a/audio/wmrecord/Makefile b/audio/wmrecord/Makefile new file mode 100644 index 00000000000..d1c2ec5a51f --- /dev/null +++ b/audio/wmrecord/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: wmrecord +# Date created: 2 April 2001 +# Whom: Konstantinos Konstantinidis <kkonstan@daemon.gr> +# +# $FreeBSD$ +# + +PORTNAME= wmrecord +PORTVERSION= 1.0.5 +CATEGORIES= audio windowmaker +MASTER_SITES= http://www.bruhaha.co.uk/ + +MAINTAINER= kkonstan@daemon.gr + +USE_XPM= YES +USE_X_PREFIX= YES + +MAN1= wmrecord.1 + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/wmrecord ${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/man/wmrecord.1 ${PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/audio/wmrecord/distinfo b/audio/wmrecord/distinfo new file mode 100644 index 00000000000..94ed0931f62 --- /dev/null +++ b/audio/wmrecord/distinfo @@ -0,0 +1 @@ +MD5 (wmrecord-1.0.5.tar.gz) = 1859d012488931c9806e9b4542dd4986 diff --git a/audio/wmrecord/files/patch-Makefile b/audio/wmrecord/files/patch-Makefile new file mode 100644 index 00000000000..1b278c6a431 --- /dev/null +++ b/audio/wmrecord/files/patch-Makefile @@ -0,0 +1,54 @@ +*** Makefile.orig Mon Apr 2 03:42:10 2001 +--- Makefile Mon Apr 2 03:44:45 2001 +*************** +*** 1,28 **** +! BINDIR = /usr/local/bin +! MANDIR = /usr/local/man/man1 +! LIBDIR = -L/usr/X11R6/lib +! LIBS = -lXpm -lX11 -lXext +! CFLAGS = -O2 -Wall + CC = cc + RM = rm -f + + all:: wmrecord + + wmrecord: wmrecord.o wmgeneral.o +! $(CC) -o $@ wmrecord.o wmgeneral.o $(LIBDIR) $(LIBS) + + wmrecord.o: wmrecord.c wmrecord.xpm +! $(CC) -c $(CFLAGS) wmrecord.c + + wmgeneral.o: wmgeneral/wmgeneral.c +! $(CC) -c $(CFLAGS) wmgeneral/wmgeneral.c + + clean: + $(RM) *.o wmrecord core + + tidy: + $(RM) *.o core +- +- install: wmrecord +- install -s -o root -g root -m 0755 wmrecord $(BINDIR) +- install -o root -g root -m 0644 man/wmrecord.1 $(MANDIR) +--- 1,21 ---- +! LDFLAGS= -L/usr/local/lib -L/usr/X11R6/lib -lXpm -lX11 -lXext +! CFLAGS+= -Wall -I/usr/local/include -I/usr/X11R6/include + CC = cc + RM = rm -f + + all:: wmrecord + + wmrecord: wmrecord.o wmgeneral.o +! $(CC) $(LDFLAGS) -o $@ wmrecord.o wmgeneral.o + + wmrecord.o: wmrecord.c wmrecord.xpm +! $(CC) $(CFLAGS) -c wmrecord.c + + wmgeneral.o: wmgeneral/wmgeneral.c +! $(CC) $(CFLAGS) -c wmgeneral/wmgeneral.c + + clean: + $(RM) *.o wmrecord core + + tidy: + $(RM) *.o core diff --git a/audio/wmrecord/files/patch-wmrecord.c b/audio/wmrecord/files/patch-wmrecord.c new file mode 100644 index 00000000000..4a8640d4c42 --- /dev/null +++ b/audio/wmrecord/files/patch-wmrecord.c @@ -0,0 +1,30 @@ +*** wmrecord.c.orig Mon Apr 2 03:48:28 2001 +--- wmrecord.c Mon Apr 2 03:49:58 2001 +*************** +*** 320,326 **** +--- 320,330 ---- + sprintf(q, "%s%s%02d.wav",pd->pw_dir, BASEFILE, tracknum); + /* Open the source file, where the recording has been stored. */ + p = (char *)malloc(sizeof(char)*4); ++ #ifdef __FreeBSD__ ++ if ((fd=open(q, O_RDONLY))==-1) ++ #else + if ((fd=open(q, O_RDONLY|O_SYNC))==-1) ++ #endif + sprintf(p, "000"); + else { + datalen = wmGetWavSettings(fd); +*************** +*** 755,761 **** +--- 759,769 ---- + pw = getpwuid(uid); + fres=(char *)malloc(sizeof(char)*(strlen(pw->pw_dir)+strlen(BASEFILE)+7)); + sprintf(fres, "%s%s%02d.wav",pw->pw_dir, BASEFILE, tracknum); ++ #ifdef __FreeBSD__ ++ if ((fd=open(fres,O_RDONLY))==-1) { ++ #else + if ((fd=open(fres,O_RDONLY|O_SYNC))==-1) { ++ #endif + fprintf(stderr, "WMRECORD: Could not open source file.\n"); + free(fres); + copyXPMArea (btn[2].x, btn[2].y, btn[2].w, btn[2].h, diff --git a/audio/wmrecord/pkg-comment b/audio/wmrecord/pkg-comment new file mode 100644 index 00000000000..02cc69268b4 --- /dev/null +++ b/audio/wmrecord/pkg-comment @@ -0,0 +1 @@ +General purpose audio recording utility for the WindowMaker dock diff --git a/audio/wmrecord/pkg-descr b/audio/wmrecord/pkg-descr new file mode 100644 index 00000000000..a452d9184e1 --- /dev/null +++ b/audio/wmrecord/pkg-descr @@ -0,0 +1,14 @@ +WMRecord is a general purpose audio recordin utility that is designed to +work in conjuction with WindowMaker's Dock or AfterStep's Wharf. + +It was originally conceived as a tool for recording memos, interviews +and meetings, and this approach is reflected somewhat in the interface. +Recordings are made to one of 99 numbered sots or tracks which the user +may browse through. There is no limit (other than the constraints of the +file system) to the size of the recordings you make. Recordings are +automatically saved to disk, but may be erased or recorded over as +necessary. + +WWW: http://www.bruhaha.co.uk/ + +-- K. Konstantinidis <kkonstan@daemon.gr> diff --git a/audio/wmrecord/pkg-plist b/audio/wmrecord/pkg-plist new file mode 100644 index 00000000000..a077bfec5c3 --- /dev/null +++ b/audio/wmrecord/pkg-plist @@ -0,0 +1 @@ +bin/wmrecord |