You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libdnet
  9. PKG_VERSION:=1.14
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/ofalk/libdnet/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
  13. PKG_HASH:=592599c54a57102a177270f3a2caabda2c2ac7768b977d7458feba97da923dfe
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libdnet
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Low-level network library
  25. URL:=https://github.com/ofalk/libdnet
  26. endef
  27. define Package/libdnet/description
  28. libdnet is a library of simplified, portable interface to several low-level
  29. networking routines.
  30. endef
  31. CONFIGURE_ARGS += \
  32. --without-check \
  33. --without-python \
  34. --without-wpdpack
  35. CONFIGURE_VARS += \
  36. ac_cv_dnet_bsd_bpf=no \
  37. ac_cv_dnet_linux_pf_packet=yes
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(1)/usr/bin/
  41. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/dnet-config
  42. $(INSTALL_DIR) $(2)/bin
  43. $(LN) ../../usr/bin/dnet-config $(2)/bin/
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(INSTALL_DATA)\
  46. $(PKG_INSTALL_DIR)/usr/include/dnet.h \
  47. $(1)/usr/include/
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/include/dnet \
  50. $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libdnet.{la,a,so*} \
  54. $(1)/usr/lib/
  55. endef
  56. define Package/libdnet/install
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* \
  60. $(1)/usr/lib/
  61. endef
  62. $(eval $(call BuildPackage,libdnet))