aboutsummaryrefslogtreecommitdiff
path: root/recipes/linux-atm/linux-atm_2.4.1.bb
blob: 60a9a26613df9186a93b46ebba36402d88cb7dbd (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
DESCRIPTION = "Drivers and tools to support ATM networking under Linux"
HOMEPAGE = "http://linux-atm.sourceforge.net/"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "virtual/kernel"
PR = "r1"
LICENSE = "GPL LGPL"

SRC_URI = "http://heanet.dl.sourceforge.net/sourceforge/linux-atm/linux-atm-${PV}.tar.gz \
           file://gcc-3.4-fix;apply=yes \
           file://qgen-cross;apply=yes"
S = "${WORKDIR}/linux-atm-${PV}"

inherit autotools pkgconfig flow-lossage


headers_include="atmd.h atm.h atmsap.h"
headers_arpd="atmarp.h atmarpd.h"

binarys_sbin="maint/atmaddr maint/atmloop lane/bus ilmid/ilmid mpoad/mpcd arpd/atmarp sigd/atmsigd maint/enitune lane/lecs led/zeppelin arpd/atmarpd maint/atmtcp maint/esi lane/les maint/zntune"
binarys_bin="test/aread maint/atmdiag maint/atmdump test/awrite maint/saaldump maint/sonetdiag test/ttcp_atm"


do_compile_prepend() {
	oe_runmake -C ${S}/src/qgen AR='${BUILD_AR}' CPP='${BUILD_CPP}' CC='${BUILD_CC}' CFLAGS='${BUILD_CFLAGS}' DEFS='-I${S}/src -I. -I../.. -DHAVE_CONFIG_H' CPPFLAGS='${BUILD_CPPFLAGS}' LD='${BUILD_LD}' LDFLAGS='${BUILD_LDFLAGS}' qgen q.dump
	oe_runmake -C ${S}/src/qgen DEFS='-I${S}/src -I. -I../.. -DHAVE_CONFIG_H' all
}

do_stage () {
	oe_libinstall -so -C src/lib libatm ${STAGING_LIBDIR}

	for i in ${headers_include}; do
		install -m 0644 src/include/$i ${STAGING_INCDIR}/$i
	done

	for i in ${headers_arpd}; do
		install -m 0644 src/arpd/$i ${STAGING_INCDIR}/$i
	done

	for i in ${binarys_sbin}; do
		install -m 0755 src/$i ${STAGING_BINDIR}/`basename $i`
	done

	for i in ${binarys_bin}; do
		install -m 0755 src/$i ${STAGING_BINDIR}/`basename $i`
	done
}



SRC_URI[md5sum] = "84fef49cc39ff2605204246666f65864"
SRC_URI[sha256sum] = "a812816ee1742bf3bf8977a391b369a7351f54a1917dc90b27e666679dd1742a"