summaryrefslogtreecommitdiff
path: root/audio/eawpatches/Makefile
blob: 3a5eb13c02374027fddc14ea564cd41bab14da12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: Makefile,v 1.14 2004/12/03 14:20:03 ben Exp $
#

DISTNAME=	eawpats12_full
PKGNAME=	eawpatches-12
PKGREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	http://www.stardate.bc.ca/eawpatches/
EXTRACT_SUFX=	.rar

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://www.stardate.bc.ca/eawpatches/html/
COMMENT=	Eric A. Welsh' patches (audio samples) for TiMidity

BUILD_DEPENDS=  unrar-[0-9]*:../../archivers/unrar

EXTRACT_ONLY=	# empty
NO_CONFIGURE=	yes
NO_BUILD=	yes
MESSAGE_SUBST+=	PKG_SYSCONFDIR=${PKG_SYSCONFDIR}

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/eawpatches
	cd ${PREFIX}/share/eawpatches && \
	unrar x -o+ -inul ${DISTDIR}/${DISTNAME}
	${CHMOD} 644 ${PREFIX}/share/eawpatches/*.* \
		${PREFIX}/share/eawpatches/*/*.*
	${SED}  -e "s@c:.timidity@${PREFIX}/share/eawpatches@" \
		-e "s@dir c:.eawpats@@" \
		< ${PREFIX}/share/eawpatches/timidity.cfg > /tmp/timidity.tmp
	${MV} /tmp/timidity.tmp ${PREFIX}/share/eawpatches/timidity.cfg

.include "../../mk/bsd.pkg.mk"