swig: backport swig.inc from dylan to fix non-deterministic builds
[opendreambox.git] / meta-opendreambox / recipes-devtools / swig / swig.inc
1 DESCRIPTION = "SWIG - Simplified Wrapper and Interface Generator"
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 INC_PR = "r3"
10
11 DEPENDS = "libpcre python"
12
13 SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
14
15 inherit autotools
16
17 EXTRA_OECONF = " \
18     --with-python=${STAGING_BINDIR_NATIVE}/python \
19     --without-allegrocl \
20     --without-android \
21     --without-boost \
22     --without-chicken \
23     --without-clisp \
24     --without-csharp \
25     --without-d \
26     --without-gcj \
27     --without-go \
28     --without-guile \
29     --without-java \
30     --without-lua \
31     --without-mzscheme \
32     --without-ocaml \
33     --without-octave \
34     --without-perl5 \
35     --without-pike \
36     --without-php \
37     --without-python3 \
38     --without-r \
39     --without-ruby \
40     --without-tcl \
41 "
42
43 BBCLASSEXTEND = "native"
44
45 do_configure() {
46     install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/Tools/config
47     install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/Tools/config
48     install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
49     install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
50     oe_runconf
51 }
52