File: 01_fix_install.patch

package info (click to toggle)
sfarklib 2.24-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 332 kB
  • sloc: cpp: 2,395; makefile: 106; sh: 50
file content (30 lines) | stat: -rw-r--r-- 1,120 bytes parent folder | download | duplicates (4)
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
Description: Fixes install location
Author: Ruben Undheim <ruben.undheim@gmail.com>
Forwarded: https://github.com/raboof/sfArkLib/pull/10
Last-Update: 2015-09-13
--- sfarklib.orig/Makefile
+++ sfarklib/Makefile
@@ -17,14 +17,16 @@
 INSTALL += -D
 endif
 
-all: libsfark.$(SO)
+all: libsfark.$(SO).0.0.0
 
 clean:
-	-rm *.o libsfark.$(SO)
+	-rm *.o libsfark.$(SO).0.0.0
 
-libsfark.$(SO): $(OBJECTS)
-	$(CXX) -shared $(LDFLAGS) $(OBJECTS) -o libsfark.$(SO)
+libsfark.$(SO).0.0.0: $(OBJECTS)
+	$(CXX) -shared $(LDFLAGS) -Wl,-soname,libsfark.$(SO).0 $(OBJECTS) -o libsfark.$(SO).0.0.0
 
-install: libsfark.$(SO) sfArkLib.h
-	$(INSTALL) libsfark.$(SO) $(DESTDIR)/usr/local/lib/libsfark.$(SO)
-	$(INSTALL) sfArkLib.h $(DESTDIR)/usr/local/include/sfArkLib.h
+install: libsfark.$(SO).0.0.0 sfArkLib.h
+	$(INSTALL) libsfark.$(SO).0.0.0 $(DESTDIR)/usr/lib/${DEB_HOST_MULTIARCH}/libsfark.$(SO).0.0.0
+	$(INSTALL) sfArkLib.h $(DESTDIR)/usr/include/sfArkLib.h
+	ln -s libsfark.$(SO).0.0.0 $(DESTDIR)/usr/lib/${DEB_HOST_MULTIARCH}/libsfark.$(SO).0
+	ln -s libsfark.$(SO).0.0.0 $(DESTDIR)/usr/lib/${DEB_HOST_MULTIARCH}/libsfark.$(SO)