summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/swig/swig.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/swig/swig.inc')
-rw-r--r--meta/recipes-devtools/swig/swig.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/swig/swig.inc b/meta/recipes-devtools/swig/swig.inc
index 292bca393d..eb8d723158 100644
--- a/meta/recipes-devtools/swig/swig.inc
+++ b/meta/recipes-devtools/swig/swig.inc
@@ -49,11 +49,11 @@ BBCLASSEXTEND = "native nativesdk"
49 49
50# necessary together with bison dependency until a new upstream version after 50# necessary together with bison dependency until a new upstream version after
51# 3.0.12 includes 0001-Fix-generated-code-for-constant-expressions-containi.patch 51# 3.0.12 includes 0001-Fix-generated-code-for-constant-expressions-containi.patch
52do_configure_append() { 52do_configure:append() {
53 mkdir -p ${B}/Source/CParse 53 mkdir -p ${B}/Source/CParse
54} 54}
55 55
56do_install_append_class-nativesdk() { 56do_install:append:class-nativesdk() {
57 cd ${D}${bindir} 57 cd ${D}${bindir}
58 ln -s swig swig2.0 58 ln -s swig swig2.0
59} 59}
@@ -62,6 +62,6 @@ def swiglib_relpath(d):
62 swiglib = d.getVar('datadir') + "/" + d.getVar('BPN') + "/" + d.getVar('PV') 62 swiglib = d.getVar('datadir') + "/" + d.getVar('BPN') + "/" + d.getVar('PV')
63 return os.path.relpath(swiglib, d.getVar('bindir')) 63 return os.path.relpath(swiglib, d.getVar('bindir'))
64 64
65do_install_append_class-native() { 65do_install:append:class-native() {
66 create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)} 66 create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)}
67} 67}