summaryrefslogtreecommitdiff
path: root/recipes/dtnrg/dtn_2.5.0.bb
blob: 3604fc69ea124a1449217fce15657df087dcbe9c (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
61
62
63
64
65
66
67
68
69
70
DESCRIPTION = "Delay Tolerant Networking Package"
HOMEPAGE = "http://www.dtnrg.org/wiki"
SECTION = "libs"
DEPENDS = "db openssl python-native xerces-c"
LICENSE = "Apache"
PR = "r5"

# thread code atomic ops do not play with thumb
ARM_INSTRUCTION_SET = "arm"

SRC_URI = "\
  http://www.dtnrg.org/docs/code/dtn_${PV}.tgz \
  file://configure_fix.patch;patch=1 \
"

inherit autotools distutils-base

EXTRA_OECONF = "\
  --with-python=${STAGING_BINDIR_NATIVE}/python \
  --with-db=${STAGING_DIR_HOST}${layout_exec_prefix} \
  --with-tcl=${STAGING_DIR_HOST}${layout_exec_prefix} \
  --without-google-perftools \
  --without-bluez \
  --without-bonjour \
  --with-expat=${STAGING_DIR_HOST}${layout_exec_prefix} \
  --with-xerces-c=${STAGING_DIR_HOST}${layout_exec_prefix} \
  --without-tclreadline \
  --with-zlib=${STAGING_DIR_HOST}${layout_exec_prefix} \
  --without-xsd-tool \
  --with-db=${STAGING_DIR_HOST}${layout_exec_prefix} \
  --enable-ecl \
  --enable-edp \
  --without-mysql \
  --without-postgres \
  --with-openssl=${STAGING_DIR_HOST}${layout_exec_prefix} \
"

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 =+ "${PN}-lib"
FILES_${PN}-lib = "${libdir}/*.so*"
PACKAGES += "python-dtn"
DESCRIPTION_python-dtn = "Python bindings to the DTN API"
PR_python-dtn = "ml4"
FILES_python-dtn = "${libdir}/${PYTHON_DIR}"
RDEPENDS_python-dtn = "python-core dtn-lib"

FILES_${PN}-dbg += "\
  ${PYTHON_SITEPACKAGES_DIR}/.debug \
  ${libdir}/.debug \
  ${bindir}/.debug \
"

FILES_${PN} += "${sysconfdir}"

SRC_URI[md5sum] = "e6e608907a291016a39c9e3442dfd50c"
SRC_URI[sha256sum] = "d8c6dedb4f828c90c1c0f36c35bc4539e81e2220c8b01cd5dc957f9116b4e478"