1
0

Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:= 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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBNET,libnet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. AUTOTOOL_STYLE:= autoreconf
  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