Makefile 1.4 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:= libdnet
  5. PKG_VERSION:= 1.11
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 04c394ed8e1e7fc455456e79e908916d
  8. PKG_DESCR:= a low-level networking library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://libdnet.sourceforge.net/
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=$(PKG_NAME)/}
  12. PKG_SUBPKGS:= LIBDNET LIBDNET_DEV
  13. PKGSD_LIBDNET_DEV:= headers for a low-level networking library
  14. PKGSC_LIBDNET_DEV:= devel
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,LIBDNET,libdnet,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,LIBDNET_DEV,libdnet-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBDNET_DEV},${PKGSC_LIBDNET_DEV}))
  18. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  19. CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no
  20. CONFIGURE_ARGS+= --without-check
  21. libdnet-install:
  22. $(INSTALL_DIR) $(IDIR_LIBDNET)/usr/lib
  23. $(CP) $(WRKINST)/usr/lib/libdnet.so* $(IDIR_LIBDNET)/usr/lib
  24. libdnet-dev-install:
  25. $(INSTALL_DIR) $(IDIR_LIBDNET_DEV)/usr/bin
  26. $(CP) $(WRKINST)/usr/bin/dnet-config $(IDIR_LIBDNET_DEV)/usr/bin
  27. $(INSTALL_DIR) $(IDIR_LIBDNET_DEV)/usr/include
  28. $(CP) $(WRKINST)/usr/include/* \
  29. $(IDIR_LIBDNET_DEV)/usr/include
  30. include ${TOPDIR}/mk/pkg-bottom.mk