Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. PKG_NEED_CXX:= 1
  15. PKG_SUBPKGS:= LIBNET LIBNET_DEV
  16. PKGSC_LIBNET_DEV:= devel
  17. PKGSD_LIBNET_DEV:= libnet headers
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LIBNET,libnet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LIBNET_DEV,libnet-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNET_DEV},${PKGSC_LIBNET_DEV}))
  21. ENDIAN:=lil
  22. ifeq (${CPU_ARCH},mips)
  23. ENDIAN:=big
  24. endif
  25. ifeq (${CPU_ARCH},mips64)
  26. ENDIAN:=big
  27. endif
  28. ifeq (${CPU_ARCH},ppc)
  29. ENDIAN:=big
  30. endif
  31. CONFIGURE_ENV+= ac_cv_libnet_endianess=${ENDIAN} \
  32. ac_cv_lbl_unaligned_fail=no
  33. libnet-install:
  34. ${INSTALL_DIR} ${IDIR_LIBNET}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libnet.so* ${IDIR_LIBNET}/usr/lib
  36. libnet-dev-install:
  37. ${INSTALL_DIR} ${IDIR_LIBNET_DEV}/usr/include
  38. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBNET_DEV}/usr/include
  39. ${INSTALL_DIR} ${IDIR_LIBNET_DEV}/usr/bin
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/libnet-config \
  41. ${IDIR_LIBNET_DEV}/usr/bin
  42. include ${TOPDIR}/mk/pkg-bottom.mk