1
0

Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a9bc1d75a610efcfee200d3e28d8eb8f
  8. PKG_DESCR:= a low-level packet creation library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libpcap
  11. PKG_BUILDDEP:= libpcap
  12. PKG_URL:= http://sourceforge.net/projects/libnet-dev/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libnet-dev/}
  14. include ${TOPDIR}/mk/package.mk
  15. ENDIAN:=lil
  16. ifeq (${CPU_ARCH},mips)
  17. ENDIAN:=big
  18. endif
  19. ifeq (${CPU_ARCH},mips64)
  20. ENDIAN:=big
  21. endif
  22. ifeq (${CPU_ARCH},ppc)
  23. ENDIAN:=big
  24. endif
  25. $(eval $(call PKG_template,LIBNET,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. CONFIGURE_ENV+= ac_cv_libnet_endianess=${ENDIAN} \
  27. ac_cv_lbl_unaligned_fail=no
  28. #CONFIGURE_ARGS+= --with-pf_packet=yes
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_LIBNET}/usr/lib
  31. ${CP} ${WRKINST}/usr/lib/libnet.so* ${IDIR_LIBNET}/usr/lib/
  32. include ${TOPDIR}/mk/pkg-bottom.mk