pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/gramofile Install bplay and brec as well as gram...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b36dabba2158
branches:  trunk
changeset: 477757:b36dabba2158
user:      agc <agc%pkgsrc.org@localhost>
date:      Thu Jul 08 18:33:06 2004 +0000

description:
Install bplay and brec as well as gramofile.
Use /dev/sound on NetBSD.
Bring in ossaudio via buildlink3.
Bump PKGREVISION.

Fixes the problems reported in PR 26206 by Ole Hellqvist

diffstat:

 audio/gramofile/Makefile         |   8 ++++++--
 audio/gramofile/PLIST            |   4 +++-
 audio/gramofile/distinfo         |   6 ++++--
 audio/gramofile/patches/patch-aa |  10 +++++-----
 audio/gramofile/patches/patch-ab |  34 ++++++++++++++++++++++++++++++++++
 audio/gramofile/patches/patch-ac |  16 ++++++++++++++++
 6 files changed, 68 insertions(+), 10 deletions(-)

diffs (149 lines):

diff -r 34aa916ee6bd -r b36dabba2158 audio/gramofile/Makefile
--- a/audio/gramofile/Makefile  Thu Jul 08 18:33:04 2004 +0000
+++ b/audio/gramofile/Makefile  Thu Jul 08 18:33:06 2004 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2004/07/04 22:40:11 agc Exp $
+# $NetBSD: Makefile,v 1.3 2004/07/08 18:33:06 agc Exp $
 #
 
 DISTNAME=      gramofile-1.6
+PKGREVISION=   1
 CATEGORIES=    audio
 MASTER_SITES=  http://panic.et.tudelft.nl/~costar/gramofile/
 
@@ -9,13 +10,16 @@
 HOMEPAGE=      http://panic.et.tudelft.nl/~costar/gramofile/
 COMMENT=       Tool for ripping audio from vinyl
 
-ALL_TARGET=    gramofile
+ALL_TARGET=    gramofile makebplay
 
 USE_BUILDLINK3=        yes
 USE_GNU_TOOLS+=        make
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/gramofile ${PREFIX}/bin/gramofile
+       ${INSTALL_PROGRAM} ${WRKSRC}/bplaysrc/bplay ${PREFIX}/bin/bplay_gramo
+       cd ${PREFIX}/bin && ${LN} -s bplay_gramo brec_gramo
 
 .include "../../mk/curses.buildlink3.mk"
+.include "../../mk/ossaudio.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 34aa916ee6bd -r b36dabba2158 audio/gramofile/PLIST
--- a/audio/gramofile/PLIST     Thu Jul 08 18:33:04 2004 +0000
+++ b/audio/gramofile/PLIST     Thu Jul 08 18:33:06 2004 +0000
@@ -1,2 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2004/07/04 22:40:11 agc Exp $
+@comment $NetBSD: PLIST,v 1.3 2004/07/08 18:33:07 agc Exp $
 bin/gramofile
+bin/bplay_gramo
+bin/brec_gramo
diff -r 34aa916ee6bd -r b36dabba2158 audio/gramofile/distinfo
--- a/audio/gramofile/distinfo  Thu Jul 08 18:33:04 2004 +0000
+++ b/audio/gramofile/distinfo  Thu Jul 08 18:33:06 2004 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/07/04 22:35:40 agc Exp $
+$NetBSD: distinfo,v 1.2 2004/07/08 18:33:07 agc Exp $
 
 SHA1 (gramofile-1.6.tar.gz) = 6e5365d9e04801725be694fefcff5fc10ea2f912
 Size (gramofile-1.6.tar.gz) = 108596 bytes
-SHA1 (patch-aa) = 204d1879eca0d2ae9a8426d3f06f8b4f2a97b213
+SHA1 (patch-aa) = 0e3912dc5c5470f5ca9cb5916467af7ffa8b52fb
+SHA1 (patch-ab) = cdb6ed27cb4e4f6fc91a34a12369caa2a52e94d9
+SHA1 (patch-ac) = f6d8bafe59fa5ab55d14999436edb28cc1c01c29
diff -r 34aa916ee6bd -r b36dabba2158 audio/gramofile/patches/patch-aa
--- a/audio/gramofile/patches/patch-aa  Thu Jul 08 18:33:04 2004 +0000
+++ b/audio/gramofile/patches/patch-aa  Thu Jul 08 18:33:06 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/07/04 22:35:40 agc Exp $
+$NetBSD: patch-aa,v 1.2 2004/07/08 18:33:07 agc Exp $
 
 --- Makefile   2004/07/02 20:20:40     1.1
 +++ Makefile   2004/07/02 20:24:26
@@ -8,7 +8,7 @@
  
 +OS= $(shell uname -s)
 +
-+ifeq ($(OS), "Linux")
++ifeq ($(OS), Linux)
  # For Linux (and maybe others), use these:
  CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER
  DEPS = $(OBJS) makebplay
@@ -16,16 +16,16 @@
  COPY_A = -a
 -
 +else
-+ifeq ($(OS), "NetBSD")
++ifeq ($(OS), NetBSD)
  # For FreeBSD (and maybe others), use these:
 -#CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER
 -#DEPS = $(OBJS) makebplay
 -#LIBS = -lncurses -lm
 -#COPY_A = -p
 -
-+CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER
++CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER -DOLD_CURSES
 +DEPS = $(OBJS) makebplay
-+LIBS = -lncurses -lm
++LIBS = -lcurses -lm
 +COPY_A = -p
 +else
  # For IRIX (and maybe others), use these:
diff -r 34aa916ee6bd -r b36dabba2158 audio/gramofile/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/gramofile/patches/patch-ab  Thu Jul 08 18:33:06 2004 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ab,v 1.1 2004/07/08 18:33:07 agc Exp $
+
+--- bplaysrc/Makefile  2004/07/08 15:10:58     1.1
++++ bplaysrc/Makefile  2004/07/08 15:12:18
+@@ -6,18 +6,24 @@
+         ../clrscr.o ../secshms.o
+ #SRCS = bplay.c sndfunc.o shmbuf.c
+ 
+-CC = gcc
+-LDFLAGS = 
++#CC = gcc
++#LDFLAGS = 
+ 
+ ########## CHOOSE YOUR ARCHITECTURE:    (NOTE: also see ../Makefile!)
+ 
++OS= $(shell uname -s)
++
++ifeq (${OS}, Linux)
+ # For Linux (and maybe others), use these:
+ CFLAGS = -Wall -O2 -DUSEBUFFLOCK -DREDHAT50 -DLP2CD -DVUMETER # -DDEBUG
+ LIBS = -lncurses
+-
++else
++ifeq (${OS}, NetBSD)
+ # For FreeBSD (and maybe others), use these:
+-#CFLAGS = -Wall -O2 -DLP2CD -DVUMETER # -DDEBUG
+-#LIBS = -lncurses
++CFLAGS = -Wall -O2 -DLP2CD -DVUMETER -DOLD_CURSES -D_SEM_SEMUN_UNDEFINED # -DDEBUG
++LIBS = -lcurses ${LIBOSSAUDIO}
++endif
++endif
+ 
+ # -DOLD_CURSES can be used here, too.
+ 
diff -r 34aa916ee6bd -r b36dabba2158 audio/gramofile/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/gramofile/patches/patch-ac  Thu Jul 08 18:33:06 2004 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1 2004/07/08 18:33:07 agc Exp $
+
+--- bplaysrc/sndfunc.c 2004/07/08 18:26:58     1.1
++++ bplaysrc/sndfunc.c 2004/07/08 18:27:22
+@@ -18,7 +18,11 @@
+ #include <machine/soundcard.h>
+ #endif
+ 
++#ifdef __NetBSD__
++#define AUDIO "/dev/sound"
++#else
+ #define AUDIO "/dev/dsp"
++#endif
+ 
+ /* Globals */
+ int audio, abuf_size, fmt_mask;



Home | Main Index | Thread Index | Old Index