Makefile 1.1 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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= libnet
  5. PKG_VERSION:= 1.1.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 710296fe424a49344e5fcc0d09e53317
  8. PKG_DESCR:= a low-level packet creation library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libpcap
  11. PKG_BUILDDEP:= libpcap autotool
  12. PKG_URL:= http://sourceforge.net/projects/libnet-dev/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libnet-dev/}
  14. PKG_NEED_CXX:= 1
  15. PKG_OPTS:= dev
  16. include ${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. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  20. ENDIAN:=lil
  21. ifeq (${CPU_ARCH},mips)
  22. ENDIAN:=big
  23. endif
  24. ifeq (${CPU_ARCH},mips64)
  25. ENDIAN:=big
  26. endif
  27. ifeq (${CPU_ARCH},ppc)
  28. ENDIAN:=big
  29. endif
  30. CONFIGURE_ENV+= ac_cv_libnet_endianess=${ENDIAN} \
  31. ac_cv_lbl_unaligned_fail=no
  32. libnet-install:
  33. ${INSTALL_DIR} ${IDIR_LIBNET}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libnet.so* ${IDIR_LIBNET}/usr/lib
  35. include ${TOPDIR}/mk/pkg-bottom.mk