blob: 0b4043bbc2053309cac2b9d57ae5b7f10b45b595 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
DESCRIPTION = "Delay Tolerant Networking Package"
HOMEPAGE = "http://www.dtnrg.org/wiki"
SECTION = "libs"
DEPENDS = "db openssl python-native xerces-c"
LICENSE = "Apache"
SRC_URI = "http://www.dtnrg.org/docs/code/dtn_${PV}.tgz"
inherit autotools
EXTRA_OECONF = "\
--with-python=${STAGING_BINDIR_NATIVE}/python \
--with-db=${STAGING_DIR} \
--with-tcl=${STAGING_DIR} \
--without-google-perftools \
--without-bluez \
--without-bonjour \
--with-expat=${STAGING_DIR} \
--with-xerces-c=${STAGING_DIR} \
--without-tclreadline \
--with-zlib=${STAGING_DIR} \
--without-xsd-tool \
--with-db=${STAGING_DIR} \
--enable-ecl \
--enable-edp \
--without-mysql \
--without-postgres \
--with-openssl=${STAGING_DIR} \
"
def python_dir(d):
import os, bb
staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 )
if os.path.exists( "%s/python2.5" % staging_incdir ): return "python2.5"
if os.path.exists( "%s/python2.4" % staging_incdir ): return "python2.4"
if os.path.exists( "%s/python2.3" % staging_incdir ): return "python2.3"
raise "No Python in STAGING_INCDIR. Forgot to build python-native ?"
PYTHON_DIR = "${@python_dir(d)}"
export BUILD_SYS
export HOST_SYS
do_configure_prepend() {
for i in aclocal/*.ac oasys/aclocal/*.ac; do
install -m 0644 $i ${STAGING_DATADIR}/aclocal/`basename $i`.m4
done
autotools_do_configure
}
do_install_append() {
cd applib/python
INCDIR=../.. LIBDIR=.. VERSION=${PV} python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${datadir}
}
PACKAGES += "python-dtn"
DESCRIPTION_python-dtn = "Python bindings to the DTN API"
PR_python-dtn = "ml1"
FILES_python-dtn = "${libdir}/${PYTHON_DIR}"
RDEPENDS_python-dtn = "python-core"
FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug"
|