Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_BUILDDEP+= libpcap
  8. PKG_MD5SUM:= c5e06418a89cc4209f677a776a798fd9
  9. PKG_DESCR:= a low-level packet creation library
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= 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_STYLE:= gnu
  21. CONFIGURE_ENV+= ac_libnet_have_pf_packet=yes \
  22. ac_cv_libnet_endianess=${ENDIAN} \
  23. LL_INT_TYPE=linux \
  24. ac_cv_lbl_unaligned_fail=no
  25. CONFIGURE_ARGS+= --with-pf_packet=yes
  26. BUILD_STYLE:= auto
  27. INSTALL_STYLE:= auto
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_LIBNET}/usr/lib
  30. ${CP} ${WRKINST}/usr/lib/libnet.so* ${IDIR_LIBNET}/usr/lib/
  31. include ${TOPDIR}/mk/pkg-bottom.mk