Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c5e06418a89cc4209f677a776a798fd9
  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/libnet-${PKG_VERSION}/}
  14. include ${TOPDIR}/mk/package.mk
  15. ENDIAN:=lil
  16. ifeq (${CPU_ARCH},mips)
  17. ENDIAN:=big
  18. endif
  19. $(eval $(call PKG_template,LIBNET,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIGURE_ENV+= ac_libnet_have_pf_packet=yes \
  21. ac_cv_libnet_endianess=${ENDIAN} \
  22. LL_INT_TYPE=linux \
  23. ac_cv_lbl_unaligned_fail=no
  24. CONFIGURE_ARGS+= --with-pf_packet=yes
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_LIBNET}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libnet.so* ${IDIR_LIBNET}/usr/lib/
  28. include ${TOPDIR}/mk/pkg-bottom.mk