Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | SUMMARY = "SWIG - Simplified Wrapper and Interface Generator" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 2 | HOMEPAGE = "http://swig.sourceforge.net/" |
| 3 | LICENSE = "BSD & GPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \ |
| 5 | file://LICENSE-GPL;md5=d32239bcb673463ab874e80d47fae504 \ |
| 6 | file://LICENSE-UNIVERSITIES;md5=8ce9dcc8f7c994de4a408b205c72ba08" |
| 7 | |
| 8 | SECTION = "devel" |
| 9 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | DEPENDS = "libpcre bison-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" |
| 13 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | inherit autotools python3native pkgconfig |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
| 16 | EXTRA_OECONF = " \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 17 | --with-python3=${PYTHON} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | --without-allegrocl \ |
| 19 | --without-android \ |
| 20 | --without-boost \ |
| 21 | --without-chicken \ |
| 22 | --without-clisp \ |
| 23 | --without-csharp \ |
| 24 | --without-d \ |
| 25 | --without-gcj \ |
| 26 | --without-go \ |
| 27 | --without-guile \ |
| 28 | --without-java \ |
| 29 | --without-lua \ |
| 30 | --without-mzscheme \ |
| 31 | --without-ocaml \ |
| 32 | --without-octave \ |
| 33 | --without-perl5 \ |
| 34 | --without-pike \ |
| 35 | --without-php \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | --without-r \ |
| 37 | --without-ruby \ |
| 38 | --without-tcl \ |
| 39 | " |
| 40 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 41 | EXTRA_AUTORECONF += "-I Tools/config" |
| 42 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | BBCLASSEXTEND = "native nativesdk" |
| 44 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 45 | # necessary together with bison dependency until a new upstream version after |
| 46 | # 3.0.12 includes 0001-Fix-generated-code-for-constant-expressions-containi.patch |
| 47 | do_configure_append() { |
| 48 | mkdir -p ${B}/Source/CParse |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | do_install_append_class-nativesdk() { |
| 52 | cd ${D}${bindir} |
| 53 | ln -s swig swig2.0 |
| 54 | } |
| 55 | |
| 56 | def swiglib_relpath(d): |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 57 | swiglib = d.getVar('datadir') + "/" + d.getVar('BPN') + "/" + d.getVar('PV') |
| 58 | return os.path.relpath(swiglib, d.getVar('bindir')) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 59 | |
| 60 | do_install_append_class-native() { |
| 61 | create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)} |
| 62 | } |