pkgsrc/audio/gramofile/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

35 lines
964 B
Makefile

# $NetBSD: Makefile,v 1.20 2018/07/04 13:40:08 jperkin Exp $
#
DISTNAME= gramofile-1.6
PKGREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://www.opensourcepartners.nl/~costar/gramofile/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.opensourcepartners.nl/~costar/gramofile/
COMMENT= Tool for ripping audio from vinyl
LICENSE= gnu-gpl-v2
BUILD_TARGET= gramofile makebplay
USE_TOOLS+= gmake
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gramofile \
${DESTDIR}${PREFIX}/bin/gramofile
${INSTALL_PROGRAM} ${WRKSRC}/bplaysrc/bplay \
${DESTDIR}${PREFIX}/bin/bplay_gramo
cd ${DESTDIR}${PREFIX}/bin && ${LN} -s bplay_gramo brec_gramo
SUBST_CLASSES+= snd
SUBST_STAGE.snd= pre-configure
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/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"