pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/gramofile * Enable pkgviews installation.
details: https://anonhg.NetBSD.org/pkgsrc/rev/b108cc7ab487
branches: trunk
changeset: 477786:b108cc7ab487
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Fri Jul 09 12:02:04 2004 +0000
description:
* Enable pkgviews installation.
* Use subst.mk instead of patching the files for the audio device.
diffstat:
audio/gramofile/Makefile | 12 +++++++++++-
audio/gramofile/distinfo | 3 +--
audio/gramofile/patches/patch-ac | 16 ----------------
3 files changed, 12 insertions(+), 19 deletions(-)
diffs (68 lines):
diff -r 460132b46bca -r b108cc7ab487 audio/gramofile/Makefile
--- a/audio/gramofile/Makefile Fri Jul 09 10:48:06 2004 +0000
+++ b/audio/gramofile/Makefile Fri Jul 09 12:02:04 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/07/08 18:33:06 agc Exp $
+# $NetBSD: Makefile,v 1.4 2004/07/09 12:02:04 xtraeme Exp $
#
DISTNAME= gramofile-1.6
@@ -10,16 +10,26 @@
HOMEPAGE= http://panic.et.tudelft.nl/~costar/gramofile/
COMMENT= Tool for ripping audio from vinyl
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
ALL_TARGET= gramofile makebplay
USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
+INSTALLATION_DIRS= bin
+
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
+SUBST_CLASSES= snd
+SUBST_STAGE.snd= post-patch
+SUBST_FILES.snd= bplaysrc/sndfunc.c
+SUBST_SED.snd= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
+SUBST_MESSAGE.snd= "Fixing harcoded audio device."
+
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 460132b46bca -r b108cc7ab487 audio/gramofile/distinfo
--- a/audio/gramofile/distinfo Fri Jul 09 10:48:06 2004 +0000
+++ b/audio/gramofile/distinfo Fri Jul 09 12:02:04 2004 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.2 2004/07/08 18:33:07 agc Exp $
+$NetBSD: distinfo,v 1.3 2004/07/09 12:02:04 xtraeme Exp $
SHA1 (gramofile-1.6.tar.gz) = 6e5365d9e04801725be694fefcff5fc10ea2f912
Size (gramofile-1.6.tar.gz) = 108596 bytes
SHA1 (patch-aa) = 0e3912dc5c5470f5ca9cb5916467af7ffa8b52fb
SHA1 (patch-ab) = cdb6ed27cb4e4f6fc91a34a12369caa2a52e94d9
-SHA1 (patch-ac) = f6d8bafe59fa5ab55d14999436edb28cc1c01c29
diff -r 460132b46bca -r b108cc7ab487 audio/gramofile/patches/patch-ac
--- a/audio/gramofile/patches/patch-ac Fri Jul 09 10:48:06 2004 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$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