summaryrefslogtreecommitdiff
blob: b832c875475a6361abb45414f917f493eebaf073 (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
Index: opencore-amr/amrnb/Makefile
===================================================================
--- opencore-amr.orig/amrnb/Makefile
+++ opencore-amr/amrnb/Makefile
@@ -2,6 +2,7 @@
 # a detached gsm_amr directory
 OC_BASE = ../opencore
 AMR_BASE = $(OC_BASE)/codecs_v2/audio/gsm_amr
+LIBDIR=lib
 
 # To compile as C instead of C++, define BUILD_AS_C
 ifneq (, $(BUILD_AS_C))
@@ -77,12 +78,12 @@ libopencore-amrnb.a: $(OBJS)
 	ar rcs $@ $+
 
 install: libopencore-amrnb.a $(SHLIB)
-	install -d $(DESTDIR)$(PREFIX)/lib
-	install -m 644 libopencore-amrnb.a $(DESTDIR)$(PREFIX)/lib
-	install $(SHLIB) $(DESTDIR)$(PREFIX)/lib
+	install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
+	install -m 644 libopencore-amrnb.a $(DESTDIR)$(PREFIX)/$(LIBDIR)
+	install $(SHLIB) $(DESTDIR)$(PREFIX)/$(LIBDIR)
 ifneq ($(shell uname), Darwin)
-	ln -sf $(SHLIB) $(DESTDIR)$(PREFIX)/lib/$(SONAME)
-	ln -sf $(SONAME) $(DESTDIR)$(PREFIX)/lib/libopencore-amrnb.so
+	ln -sf $(SHLIB) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(SONAME)
+	ln -sf $(SONAME) $(DESTDIR)$(PREFIX)/$(LIBDIR)/libopencore-amrnb.so
 endif
 	install -d $(DESTDIR)$(PREFIX)/include/opencore-amrnb
 	install -m 644 interf_dec.h $(DESTDIR)$(PREFIX)/include/opencore-amrnb
Index: opencore-amr/amrwb/Makefile
===================================================================
--- opencore-amr.orig/amrwb/Makefile
+++ opencore-amr/amrwb/Makefile
@@ -2,6 +2,7 @@
 # a detached gsm_amr directory
 OC_BASE = ../opencore
 AMR_BASE = $(OC_BASE)/codecs_v2/audio/gsm_amr
+LIBDIR=lib
 
 # To compile as C instead of C++, define BUILD_AS_C
 ifneq (, $(BUILD_AS_C))
@@ -63,12 +64,12 @@ libopencore-amrwb.a: $(OBJS)
 	ar rcs $@ $+
 
 install: libopencore-amrwb.a $(SHLIB)
-	install -d $(DESTDIR)$(PREFIX)/lib
-	install -m 644 libopencore-amrwb.a $(DESTDIR)$(PREFIX)/lib
-	install $(SHLIB) $(DESTDIR)$(PREFIX)/lib
+	install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
+	install -m 644 libopencore-amrwb.a $(DESTDIR)$(PREFIX)/$(LIBDIR)
+	install $(SHLIB) $(DESTDIR)$(PREFIX)/$(LIBDIR)
 ifneq ($(shell uname), Darwin)
-	ln -sf $(SHLIB) $(DESTDIR)$(PREFIX)/lib/$(SONAME)
-	ln -sf $(SONAME) $(DESTDIR)$(PREFIX)/lib/libopencore-amrwb.so
+	ln -sf $(SHLIB) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(SONAME)
+	ln -sf $(SONAME) $(DESTDIR)$(PREFIX)/$(LIBDIR)/libopencore-amrwb.so
 endif
 	install -d $(DESTDIR)$(PREFIX)/include/opencore-amrwb
 	install -m 644 dec_if.h $(DESTDIR)$(PREFIX)/include/opencore-amrwb