Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / libnet / libnet_1.0.2a.oe
1 SECTION = "libs"
2 DESCRIPTION = "Libnet is a collection of routines to help with \
3 the construction and handling of network packets. It provides a \
4 portable framework for low-level network packet shaping, \
5 handling, and injection."
6
7 SRC_URI = "http://www.packetfactory.net/libnet/dist/deprecated/libnet-${PV}.tar.gz \
8            file://configure.patch;patch=1"
9 S = "${WORKDIR}/Libnet-${PV}"
10
11 inherit autotools
12
13 CPPFLAGS_prepend = "-I${S}/libnet/include -DHAVE_PF_PACKET "
14 EXTRA_OEMAKE = "'LIB_PREFIX=${libdir}/' 'MAN_PREFIX=${mandir}/' \
15                 'BIN_PREFIX=${bindir}/' 'INC_PREFIX=${includedir}/'"
16
17 do_stage () {
18         install -m 0755 libnet-config ${STAGING_BINDIR}/
19         install -m 0644 include/libnet.h ${STAGING_INCDIR}/
20         install -d ${STAGING_INCDIR}/libnet
21         install -m 0644 include/libnet/libnet-headers.h ${STAGING_INCDIR}/libnet/
22         install -m 0644 include/libnet/libnet-functions.h ${STAGING_INCDIR}/libnet/
23         install -m 0644 include/libnet/libnet-structures.h ${STAGING_INCDIR}/libnet/
24         install -m 0644 include/libnet/libnet-macros.h ${STAGING_INCDIR}/libnet/
25         install -m 0644 include/libnet/libnet-asn1.h ${STAGING_INCDIR}/libnet/
26         install -m 0644 include/libnet/libnet-ospf.h ${STAGING_INCDIR}/libnet/
27         oe_libinstall -a -C lib libnet ${STAGING_LIBDIR}
28 }