Package: sndobj / 2.6.6.1-3

01_shlib.patch Patch series | download
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
Origin: Debian
Description: Fix library's soname and install it properly.
---
 SConstruct |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

--- SndObj-2.6.6.orig/SConstruct
+++ SndObj-2.6.6/SConstruct
@@ -80,13 +80,14 @@ opt.AddOptions(
         ('customLIBPATH','',''),
         ('customSHLINKFLAGS','',''),
         ('customSWIGFLAGS','',''),
-        ('version', 'library version','2.6.5')
+        ('version', 'library version','2.6')
 	)
 
 opt.Update(env)
 opt.Save('options.cache',env)
 Help(opt.GenerateHelpText(env))
 version = env['version']
+major = '2'
 print "SndObj Library version is " + version
  
 customCPPPATH = env['customCPPPATH']
@@ -268,7 +269,7 @@ cffisndobj = env.Clone()
 examples = env.Clone()
 
 if getPlatform() == 'linux':
-      env.Append(SHLINKFLAGS=['-Wl,-soname=libsndobj.so.%s'% version])
+      env.Append(SHLINKFLAGS=['-Wl,-soname=libsndobj.so.%s'% major])
 ######################################################################
 #
 # sources
@@ -349,9 +350,10 @@ if getPlatform() != 'win':
    env.Append(LINKFLAGS=['-install_name', env['install_name']])
    sndobjlib = env.SharedLibrary(env['install_name'], sources)
   else:
-   sndobjlib = env.SharedLibrary('lib/libsndobj.so' + '.' + version, sources, SHLIBPREFIX = '', SHLIBSUFFIX = '')
+   sndobjlib = env.SharedLibrary('lib/libsndobj.so' + '.' + major + '.' + version, sources, SHLIBPREFIX = '', SHLIBSUFFIX = '')
    os.spawnvp(os.P_WAIT, 'rm', ['rm', '-f', 'lib/libsndobj.so'])
-   os.symlink('libsndobj.so' + '.' + version, 'lib/libsndobj.so')
+   os.symlink('libsndobj.so' + '.' + major + '.' + version, 'lib/libsndobj.so' + '.' + major)
+   os.symlink('libsndobj.so' + '.' + major + '.' + version, 'lib/libsndobj.so')
    sndobjlink = 'lib/libsndobj.so'
   deplibs = [sndobjlib]
   baselibs = ['sndobj']