summaryrefslogtreecommitdiff
path: root/audio/snd/patches/patch-ab
blob: 32585526068db798184974045fbe735c6aaf3236 (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
$NetBSD: patch-ab,v 1.4 2009/08/18 16:47:18 joerg Exp $

--- makefile.in.orig	2009-08-18 18:34:38.000000000 +0200
+++ makefile.in
@@ -190,14 +190,14 @@ audinfo: $(SNDLIB_HEADERS)
 	$(CC) $(LDFLAGS) $(CFLAGS) headers.o io.o audio.o sound.o audinfo.o -o audinfo $(JACK_LIBS) $(AUDIO_LIB) $(LIBS)
 
 install: snd
-	${SHELL} ${top_srcdir}/mkinstalldirs ${bindir}
-	${SHELL} ${top_srcdir}/mkinstalldirs ${mandir}
-	${SHELL} ${top_srcdir}/mkinstalldirs ${mandir}/man1
-	${SHELL} ${top_srcdir}/mkinstalldirs ${pkgdatadir}
+	${SHELL} ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
+	${SHELL} ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}
+	${SHELL} ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
+	${SHELL} ${top_srcdir}/mkinstalldirs ${DESTDIR}${pkgdatadir}
 	(cd po && $(MAKE) install)
-	$(INSTALL) snd ${bindir}/snd
-	$(INSTALL) ${top_srcdir}/snd.1 ${mandir}/man1
-	(cd ${top_srcdir} && for f in ${SND_SCRIPTS}; do ${INSTALL_DATA} ${top_srcdir}/$${f} ${pkgdatadir}/$${f}; done)
+	$(BSD_INSTALL_PROGRAM) snd ${DESTDIR}${bindir}/snd
+	$(INSTALL) ${top_srcdir}/snd.1 ${DESTDIR}${mandir}/man1
+	(cd ${top_srcdir} && for f in ${SND_SCRIPTS}; do ${INSTALL_DATA} ${top_srcdir}/$${f} ${DESTDIR}${pkgdatadir}/$${f}; done)
 
 uninstall:
 	rm -f ${bindir}/snd