summaryrefslogtreecommitdiff
blob: da843c69c199373e652d62c756edb78007e00960 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
diff -uprN sox-12.17.7.orig/Makefile.in sox-12.17.7/Makefile.in
--- sox-12.17.7.orig/Makefile.in	2005-02-18 17:42:00.437529456 +0100
+++ sox-12.17.7/Makefile.in	2005-02-18 17:46:40.584940576 +0100
@@ -32,22 +32,22 @@ PLAY_INSTALL_1  = install-play
 
 install: $(PLAY_INSTALL_$(PLAY_SUPPORT))
 	cd src && $(MAKE) $@
-	$(srcdir)/mkinstalldirs $(mandir)/man1
-	$(INSTALL) -c -m 644 $(srcdir)/sox.1 $(mandir)/man1
-	if [ -f $(mandir)/man1/soxmix.1 ] ; then $(RM) $(mandir)/man1/soxmix.1; fi
-	cd $(mandir)/man1 && $(LN_S) sox.1 soxmix.1
-	$(INSTALL) -c -m 644 $(srcdir)/soxexam.1 $(mandir)/man1
+	$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1
+	$(INSTALL) -c -m 644 $(srcdir)/sox.1 $(DESTDIR)$(mandir)/man1
+	if [ -f $(DESTDIR)$(mandir)/man1/soxmix.1 ] ; then $(RM) $(DESTDIR)$(mandir)/man1/soxmix.1; fi
+	cd $(DESTDIR)$(mandir)/man1 && $(LN_S) sox.1 soxmix.1
+	$(INSTALL) -c -m 644 $(srcdir)/soxexam.1 $(DESTDIR)$(mandir)/man1
 
 install-play:
-	if [ -f $(mandir)/man1/rec.1 ]; then $(RM) $(mandir)/man1/rec.1; fi
-	$(srcdir)/mkinstalldirs $(mandir)/man1
-	$(INSTALL) -c -m 644 $(srcdir)/play.1 $(mandir)/man1
-	cd $(mandir)/man1 && $(LN_S) play.1 rec.1
+	if [ -f $(DESTDIR)$(mandir)/man1/rec.1 ]; then $(RM) $(DESTDIR)$(mandir)/man1/rec.1; fi
+	$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1
+	$(INSTALL) -c -m 644 $(srcdir)/play.1 $(DESTDIR)$(mandir)/man1
+	cd $(DESTDIR)$(mandir)/man1 && $(LN_S) play.1 rec.1
 
 install-lib:
 	cd src && $(MAKE) $@
-	$(srcdir)/mkinstalldirs $(mandir)/man3
-	$(INSTALL) -c -m 644 $(srcdir)/libst.3 $(mandir)/man3
+	$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man3
+	$(INSTALL) -c -m 644 $(srcdir)/libst.3 $(DESTDIR)$(mandir)/man3
 
 
 PLAY_UNINSTALL_0    =
diff -uprN sox-12.17.7.orig/src/gsm/Makefile.in sox-12.17.7/src/gsm/Makefile.in
--- sox-12.17.7.orig/src/gsm/Makefile.in	2005-02-18 17:42:00.406534168 +0100
+++ sox-12.17.7/src/gsm/Makefile.in	2005-02-18 17:49:41.294468552 +0100
@@ -77,12 +77,12 @@ libgsm.a: $(LIBOBJS)
 	$(RANLIB) libgsm.a
 
 install-lib: libgsm.a
-	$(top_srcdir)/mkinstalldirs $(libdir)
-	$(top_srcdir)/mkinstalldirs $(mandir)/man3
-	$(INSTALL) -c -m 644 libgsm.a $(libdir)
-	$(RANLIB) $(libdir)/libgsm.a
-	$(INSTALL) -c -m 644 gsm.3 $(mandir)/man3
-	$(INSTALL) -c -m 644 gsm_option.3 $(mandir)/man3
+	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
+	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man3
+	$(INSTALL) -c -m 644 libgsm.a $(DESTDIR)$(libdir)
+	$(RANLIB) $(DESTDIR)$(libdir)/libgsm.a
+	$(INSTALL) -c -m 644 gsm.3 $(DESTDIR)$(mandir)/man3
+	$(INSTALL) -c -m 644 gsm_option.3 $(DESTDIR)$(mandir)/man3
 
 uninstall-lib:
 	$(RM) $(libdir)/libgsm.a
diff -uprN sox-12.17.7.orig/src/Makefile.in sox-12.17.7/src/Makefile.in
--- sox-12.17.7.orig/src/Makefile.in	2005-02-18 17:42:00.430530520 +0100
+++ sox-12.17.7/src/Makefile.in	2005-02-18 17:48:52.486888432 +0100
@@ -103,24 +103,24 @@ PLAY_INSTALL_0    =
 PLAY_INSTALL_1    = install-play
 
 install: sox soxmix $(PLAY_INSTALL_$(PLAY_SUPPORT))
-	$(top_srcdir)/mkinstalldirs $(bindir)
-	$(INSTALL) -c -m 755 sox $(bindir)
-	$(INSTALL) -c -m 755 soxmix $(bindir)
+	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
+	$(INSTALL) -c -m 755 sox $(DESTDIR)$(bindir)
+	$(INSTALL) -c -m 755 soxmix $(DESTDIR)$(bindir)
 
 install-play:
-	if [ -f $(bindir)/rec ] ; then $(RM) $(bindir)/rec; fi
-	$(top_srcdir)/mkinstalldirs $(bindir)
-	$(INSTALL) -c -m 755 play $(bindir)
-	cd $(bindir) && $(LN_S) play rec
+	if [ -f $(DESTDIR)$(bindir)/rec ] ; then $(RM) $(DESTDIR)$(bindir)/rec; fi
+	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
+	$(INSTALL) -c -m 755 play $(DESTDIR)$(bindir)
+	cd $(DESTDIR)$(bindir) && $(LN_S) play rec
 
 install-lib: libst.a
-	$(top_srcdir)/mkinstalldirs $(libdir)
-	$(top_srcdir)/mkinstalldirs $(includedir)
-	$(INSTALL) -c -m 755 libst-config $(bindir)
-	$(INSTALL) -c -m 644 libst.a $(libdir)
-	$(RANLIB) $(libdir)/libst.a
-	$(INSTALL) -c -m 644 $(srcdir)/st.h $(includedir)
-	$(INSTALL) -c -m 644 ststdint.h $(includedir)
+	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
+	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
+	$(INSTALL) -c -m 755 libst-config $(DESTDIR)$(bindir)
+	$(INSTALL) -c -m 644 libst.a $(DESTDIR)$(libdir)
+	$(RANLIB) $(DESTDIR)$(libdir)/libst.a
+	$(INSTALL) -c -m 644 $(srcdir)/st.h $(DESTDIR)$(includedir)
+	$(INSTALL) -c -m 644 ststdint.h $(DESTDIR)$(includedir)
 
 PLAY_UNINSTALL_0    =
 PLAY_UNINSTALL_1    = uninstall-play