| SUMMARY = "SWIG - Simplified Wrapper and Interface Generator" |
| DESCRIPTION = "SWIG is a compiler that makes it easy to integrate C and C++ \ |
| code with other languages including Perl, Tcl, Ruby, Python, Java, Guile, \ |
| Mzscheme, Chicken, OCaml, Pike, and C#." |
| HOMEPAGE = "http://swig.sourceforge.net/" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \ |
| file://LICENSE-GPL;md5=d32239bcb673463ab874e80d47fae504 \ |
| file://LICENSE-UNIVERSITIES;md5=8ce9dcc8f7c994de4a408b205c72ba08" |
| DEPENDS = "libpcre bison-native" |
| SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" |
| inherit autotools python3native pkgconfig |
| --with-python3=${PYTHON} \ |
| EXTRA_AUTORECONF += "-I Tools/config" |
| BBCLASSEXTEND = "native nativesdk" |
| # necessary together with bison dependency until a new upstream version after |
| # 3.0.12 includes 0001-Fix-generated-code-for-constant-expressions-containi.patch |
| mkdir -p ${B}/Source/CParse |
| do_install_append_class-nativesdk() { |
| swiglib = d.getVar('datadir') + "/" + d.getVar('BPN') + "/" + d.getVar('PV') |
| return os.path.relpath(swiglib, d.getVar('bindir')) |
| do_install_append_class-native() { |
| create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)} |