summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/swig/swig.inc
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2015-08-21 01:38:58 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-24 23:47:05 +0100
commit20c6c72ad37df8c2bac118c93705874870dff6b3 (patch)
treeafbe5a2f35b8e7f3e03f4dde6d603b5ae05ba3c1 /meta/recipes-devtools/swig/swig.inc
parent6b0768e4384967bad1f58e4c9c5c161abc22dba7 (diff)
downloadpoky-20c6c72ad37df8c2bac118c93705874870dff6b3.tar.gz
swig: add package 3.0.6
Ackage from meta-oe to oe-core: meta-oe commit: 9cc54e10efa5ca70d9980f833a8e5a310e5ad21d It's required for libcap-ng to build python bindings. With adding it to oe-core, the copies from following layers could be removed: * meta-oe, meta-selinux, meta-intel-iot-middleware ... (From OE-Core rev: 66923c6776da13bd4513a73c3f7c5e60d74eb0f3) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/swig/swig.inc')
-rw-r--r--meta/recipes-devtools/swig/swig.inc63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-devtools/swig/swig.inc b/meta/recipes-devtools/swig/swig.inc
new file mode 100644
index 0000000000..9821fa560b
--- /dev/null
+++ b/meta/recipes-devtools/swig/swig.inc
@@ -0,0 +1,63 @@
1DESCRIPTION = "SWIG - Simplified Wrapper and Interface Generator"
2HOMEPAGE = "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
10DEPENDS = "libpcre python"
11
12SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
13
14inherit autotools pythonnative
15
16EXTRA_OECONF = " \
17 --with-python=${PYTHON} \
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 \
36 --without-python3 \
37 --without-r \
38 --without-ruby \
39 --without-tcl \
40"
41
42BBCLASSEXTEND = "native nativesdk"
43
44do_configure() {
45 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/Tools/config
46 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/Tools/config
47 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
48 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
49 oe_runconf
50}
51
52do_install_append_class-nativesdk() {
53 cd ${D}${bindir}
54 ln -s swig swig2.0
55}
56
57def swiglib_relpath(d):
58 swiglib = d.getVar('datadir', True) + "/" + d.getVar('BPN', True) + "/" + d.getVar('PV', True)
59 return os.path.relpath(swiglib, d.getVar('bindir', True))
60
61do_install_append_class-native() {
62 create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)}
63}