blob: b52a3056a3af6b2b35960635ea8d3c46ba950e2b (
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
|
DEPENDS = virtual/libc
RDEPENDS = libc6
SRC_URI := ${SOURCEFORGE_MIRROR}/libnet/libnet-0.10.11.tar.gz \
file://${FILESDIR}/compile.patch;patch=1
S := ${WORKDIR}/${PN}
do_configure () {
if [ -e makfiles/${TARGET_OS}.mak ]; then
cp makfiles/${TARGET_OS}.mak port.mak
else
die "Unable to locate default .make file for OS ${TARGET_OS}"
fi
}
CFLAGS_prepend='-I${S}/include '
EXTRA_OEMAKE=
do_compile () {
oe_runmake 'CC=${CC}' 'LD=${LD}' 'AR=${AR}' 'CXX=${CXX}' \
'WARNING_FLAGS=${CFLAGS}'
}
do_stage () {
install -d ${STAGING_LIBDIR} ${STAGING_DIR}/target/include
install -m 0755 lib/libnet.a ${STAGING_LIBDIR}/
install -m 0644 include/libnet.h ${STAGING_DIR}/target/include/
}
do_install () {
install -d ${D}/${libdir} ${D}/${includedir}
install -m 0755 lib/libnet.a ${D}/${libdir}/
install -m 0644 include/libnet.h ${D}/${includedir}/
}
|