summaryrefslogtreecommitdiff
path: root/libnet/libnet_1.1.0.oe
blob: 862ceaa32c2846f2c9124686e5420134a02164b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DEPENDS = virtual/libc
RDEPENDS = libc6

SRC_URI := http://www.packetfactory.net/libnet/dist/libnet.tar.gz \
	   file://${FILESDIR}/configure.patch;patch=1
S := ${WORKDIR}/libnet

inherit autotools

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

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
}