1
0

Makefile 1.3 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:= 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. CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no
  19. CONFIGURE_ARGS+= --without-check
  20. libdnet-install:
  21. $(INSTALL_DIR) $(IDIR_LIBDNET)/usr/lib
  22. $(CP) $(WRKINST)/usr/lib/libdnet.so* $(IDIR_LIBDNET)/usr/lib
  23. libdnet-dev-install:
  24. $(INSTALL_DIR) $(IDIR_LIBDNET_DEV)/usr/bin
  25. $(CP) $(WRKINST)/usr/bin/dnet-config $(IDIR_LIBDNET_DEV)/usr/bin
  26. $(INSTALL_DIR) $(IDIR_LIBDNET_DEV)/usr/include
  27. $(CP) $(WRKINST)/usr/include/* \
  28. $(IDIR_LIBDNET_DEV)/usr/include
  29. include ${TOPDIR}/mk/pkg-bottom.mk