blob: 704bb27b92f658596f9be09fbaed82b45142155f [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001SUMMARY = "SWIG - Simplified Wrapper and Interface Generator"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002HOMEPAGE = "http://swig.sourceforge.net/"
3LICENSE = "BSD & GPLv3"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \
5 file://LICENSE-GPL;md5=d32239bcb673463ab874e80d47fae504 \
6 file://LICENSE-UNIVERSITIES;md5=8ce9dcc8f7c994de4a408b205c72ba08"
7
8SECTION = "devel"
9
Patrick Williamsc0f7c042017-02-23 20:41:17 -060010DEPENDS = "libpcre python3"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
13
Patrick Williamsc0f7c042017-02-23 20:41:17 -060014inherit autotools python3native
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16EXTRA_OECONF = " \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060017 --with-python3=${PYTHON} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018 --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 Williamsc124f4f2015-09-15 14:41:29 -050036 --without-r \
37 --without-ruby \
38 --without-tcl \
39"
40
41BBCLASSEXTEND = "native nativesdk"
42
43do_configure() {
44 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/Tools/config
45 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/Tools/config
46 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
47 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
48 oe_runconf
49}
50
51do_install_append_class-nativesdk() {
52 cd ${D}${bindir}
53 ln -s swig swig2.0
54}
55
56def swiglib_relpath(d):
57 swiglib = d.getVar('datadir', True) + "/" + d.getVar('BPN', True) + "/" + d.getVar('PV', True)
58 return os.path.relpath(swiglib, d.getVar('bindir', True))
59
60do_install_append_class-native() {
61 create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)}
62}