1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= d392bb5825c4b6b672fc93a0268433c86dc964e1500c279dc6d0711ea6ec467a
10 PKG_DESCR
:= low-level packet creation library
11 PKG_SECTION
:= libs
/net
13 PKG_BUILDDEP
:= libpcap
15 PKG_URL
:= http
://sourceforge.net
/projects
/libnet-dev
/
16 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=libnet-dev
/}
19 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
21 include ${ADK_TOPDIR}/mk
/package.mk
23 $(eval
$(call PKG_template
,LIBNET
,libnet
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
25 AUTOTOOL_STYLE
:= autoreconf
27 ifeq (${ADK_TARGET_CPU_ARCH},mips
)
30 ifeq (${ADK_TARGET_CPU_ARCH},mips64
)
33 ifeq (${ADK_TARGET_CPU_ARCH},ppc
)
37 CONFIGURE_ENV
+= ac_cv_libnet_endianess
=${ENDIAN} \
38 ac_cv_lbl_unaligned_fail
=no
41 ${INSTALL_DIR} ${IDIR_LIBNET}/usr
/lib
42 ${CP} ${WRKINST}/usr
/lib
/libnet.so
* ${IDIR_LIBNET}/usr
/lib
44 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk