File: 1002-fix_gnu_kfreebsd_build.patch

package info (click to toggle)
lilv 0.24.2~dfsg0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,804 kB
  • ctags: 3,139
  • sloc: python: 16,205; ansic: 10,191; cpp: 255; makefile: 191; xml: 176; sh: 11
file content (33 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download | duplicates (2)
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
From: Steven Chamberlain <steven@pyro.eu.org>
Subject: Fix build on GNU/kFreeBSD

* Still need to link with -ldl, unlike regular BSD
* Remove extraneous -llilv, which swig2.0 on BSD-like systems would
  fopen() even though it is a directory
Forwarded: David Robillard <d@drobilla.net>
---
 wscript |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: lilv/wscript
===================================================================
--- lilv.orig/wscript
+++ lilv/wscript
@@ -221,7 +221,7 @@ def build(bld):
     if bld.env.MSVC_COMPILER:
         libflags = []
         defines  = ['snprintf=_snprintf']
-    elif bld.env.DEST_OS.find('bsd') > 0:
+    elif bld.env.DEST_OS.find('bsd') > 0 and sys.platform.find('gnu') < 0:
         lib = []
 
     # Pkgconfig file
@@ -398,7 +398,7 @@ def build(bld):
                   source     = 'bindings/lilv.i',
                   target     = 'bindings/_lilv',
                   includes   = ['..'],
-                  swig_flags = '-c++ -python %s -Wall -I.. -llilv -features autodoc=1' %
+                  swig_flags = '-c++ -python %s -Wall -I.. -features autodoc=1' %
                                ("-py3" if sys.version_info >= (3,0,0) else ""),
                   use        = 'liblilv')
         autowaf.use_lib(bld, obj, 'LILV')