aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/Makefile1
-rw-r--r--audio/wmrecord/Makefile24
-rw-r--r--audio/wmrecord/distinfo1
-rw-r--r--audio/wmrecord/files/patch-Makefile54
-rw-r--r--audio/wmrecord/files/patch-wmrecord.c30
-rw-r--r--audio/wmrecord/pkg-comment1
-rw-r--r--audio/wmrecord/pkg-descr14
-rw-r--r--audio/wmrecord/pkg-plist1
8 files changed, 126 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index ce1c88601835..10e8b76bbf7d 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 000000000000..d1c2ec5a51fc
--- /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 000000000000..94ed0931f624
--- /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 000000000000..1b278c6a431d
--- /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 000000000000..4a8640d4c422
--- /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 000000000000..02cc69268b4f
--- /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 000000000000..a452d9184e13
--- /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 000000000000..a077bfec5c35
--- /dev/null
+++ b/audio/wmrecord/pkg-plist
@@ -0,0 +1 @@
+bin/wmrecord