summaryrefslogtreecommitdiff
path: root/audio/gramofile
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-07-09 12:02:04 +0000
committerxtraeme <xtraeme>2004-07-09 12:02:04 +0000
commita9b2662839dd1f8609ca475763674952d0948c10 (patch)
treed47c8e5aad8c9a82f47d6b09e302fb619089408e /audio/gramofile
parent0825c4d17fb1217e93544d0a6a8946ce7e872c09 (diff)
downloadpkgsrc-a9b2662839dd1f8609ca475763674952d0948c10.tar.gz
* Enable pkgviews installation.
* Use subst.mk instead of patching the files for the audio device.
Diffstat (limited to 'audio/gramofile')
-rw-r--r--audio/gramofile/Makefile12
-rw-r--r--audio/gramofile/distinfo3
-rw-r--r--audio/gramofile/patches/patch-ac16
3 files changed, 12 insertions, 19 deletions
diff --git a/audio/gramofile/Makefile b/audio/gramofile/Makefile
index b9aab6aca19..bce1cfff2e8 100644
--- a/audio/gramofile/Makefile
+++ b/audio/gramofile/Makefile
@@ -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 @@ MAINTAINER= tech-pkg@NetBSD.org
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 --git a/audio/gramofile/distinfo b/audio/gramofile/distinfo
index 515abe5dace..d592316e6f3 100644
--- a/audio/gramofile/distinfo
+++ b/audio/gramofile/distinfo
@@ -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 --git a/audio/gramofile/patches/patch-ac b/audio/gramofile/patches/patch-ac
deleted file mode 100644
index 5027df9f88d..00000000000
--- a/audio/gramofile/patches/patch-ac
+++ /dev/null
@@ -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;