busybox: use C library crypt functions by default
[openadk.git] / package / libnet / Makefile
blob060448b3aec4455aca34df52756cd890cbeffce8
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
6 PKG_NAME:= libnet
7 PKG_VERSION:= 1.1.6
8 PKG_RELEASE:= 1
9 PKG_HASH:= d392bb5825c4b6b672fc93a0268433c86dc964e1500c279dc6d0711ea6ec467a
10 PKG_DESCR:= low-level packet creation library
11 PKG_SECTION:= libs/net
12 PKG_DEPENDS:= libpcap
13 PKG_BUILDDEP:= libpcap
14 PKG_NEEDS:= c++
15 PKG_URL:= http://sourceforge.net/projects/libnet-dev/
16 PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libnet-dev/}
17 PKG_OPTS:= 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
26 ENDIAN:=lil
27 ifeq (${ADK_TARGET_CPU_ARCH},mips)
28 ENDIAN:=big
29 endif
30 ifeq (${ADK_TARGET_CPU_ARCH},mips64)
31 ENDIAN:=big
32 endif
33 ifeq (${ADK_TARGET_CPU_ARCH},ppc)
34 ENDIAN:=big
35 endif
37 CONFIGURE_ENV+= ac_cv_libnet_endianess=${ENDIAN} \
38 ac_cv_lbl_unaligned_fail=no
40 libnet-install:
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