summaryrefslogtreecommitdiff
path: root/packages/nonworking/libnet/libnet_1.1.2.1.bb
blob: 58d13c9be1c2942d25d4b8f75f18ea421b8284a8 (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
#FIXME: Does not compile against linux-libc-headers 2.6
BROKEN = "1"
DESCRIPTION = "A packet dissection and creation library"
SRC_URI = "http://www.packetfactory.net/libnet/dist/libnet.tar.gz \
           file://configure.patch;patch=1 \
           file://compile-fix.patch;patch=1"
S = "${WORKDIR}/libnet"

inherit autotools

CPPFLAGS_prepend = "-I${S}/libnet/include "

do_configure() {
	oe_runconf
}

do_stage () {
	install -m 0755 libnet-config ${STAGING_BINDIR}/
	oe_runmake -C src 'DESTDIR=${STAGING_DIR}/target' \
			  'libdir=/lib' install-libLIBRARIES
	oe_runmake -C include 'DESTDIR=${STAGING_DIR}/target' \
			      'includedir=/include' install-includeHEADERS
	oe_runmake -C include/libnet 'DESTDIR=${STAGING_DIR}/target' \
			      'includedir=/include' install-libnetincludeHEADERS
}