Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= libnet
  5. PKG_VERSION:= 1.1.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 710296fe424a49344e5fcc0d09e53317
  8. PKG_DESCR:= low-level packet creation library
  9. PKG_SECTION:= libs/net
  10. PKG_DEPENDS:= libpcap libstdcxx
  11. PKG_BUILDDEP:= libpcap
  12. PKG_URL:= http://sourceforge.net/projects/libnet-dev/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libnet-dev/}
  14. PKG_OPTS:= dev
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. include ${ADK_TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LIBNET,libnet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  18. AUTOTOOL_STYLE:= autoreconf
  19. ENDIAN:=lil
  20. ifeq (${ADK_TARGET_CPU_ARCH},mips)
  21. ENDIAN:=big
  22. endif
  23. ifeq (${ADK_TARGET_CPU_ARCH},mips64)
  24. ENDIAN:=big
  25. endif
  26. ifeq (${ADK_TARGET_CPU_ARCH},ppc)
  27. ENDIAN:=big
  28. endif
  29. CONFIGURE_ENV+= ac_cv_libnet_endianess=${ENDIAN} \
  30. ac_cv_lbl_unaligned_fail=no
  31. libnet-install:
  32. ${INSTALL_DIR} ${IDIR_LIBNET}/usr/lib
  33. ${CP} ${WRKINST}/usr/lib/libnet.so* ${IDIR_LIBNET}/usr/lib
  34. include ${ADK_TOPDIR}/mk/pkg-bottom.mk