aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nrlolsr/nrlolsr_7.8.1.bb
blob: bb3c1a8e67ba17ed13cee090035d6eada6fd4bf0 (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
DESCRIPTION = "NRL OLSR - added to OE to support the Maniac Challenge (http://www.maniacchallenge.org/)"
SECTION = "applications"
LICENSE = "PD"

PR = "r1"

S="${WORKDIR}/nrlolsr/"

SRC_URI = "http://downloads.pf.itd.nrl.navy.mil/olsr/nrlolsrdv7.8.1.tgz \
           file://nrlolsr-cross.patch \
          "

do_compile () {
	cd ${S}/unix

	sed -i -e 's:-I/usr/X11R6/include:-I${STAGING_INCDIR}:g' Makefile.linux
	sed -i -e 's:-L/usr/X11R6/lib:-L${STAGING_LIBDIR}:g' Makefile.linux
	sed -i -e 's:/usr/local/bin:${STAGING_BINDIR}:g' Makefile.linux
	sed -i -e 's:make -f Makefile:make -e -f Makefile:g' Makefile.common

#	EXTRA_OEMAKE="-f Makefile.linux"
	oe_runmake -f Makefile.linux

}

do_install () {
	install -d ${D}/${bindir}
	install unix/nrlolsrd ${D}/${bindir}
}

SRC_URI[md5sum] = "46291de38362acdcd335bcf259055046"
SRC_URI[sha256sum] = "0e6b18e3bf77dd20395881535e3e7043bcd5171c220728310215d708f44f3b1c"