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.

75 lines
1.7 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:=1
  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. define Build/InstallDev
  36. $(INSTALL_DIR) $(2)/bin
  37. $(INSTALL_BIN) \
  38. $(PKG_INSTALL_DIR)/usr/bin/dnet-config \
  39. $(2)/bin/
  40. $(SED) \
  41. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  42. $(2)/bin/dnet-config
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(INSTALL_DATA)\
  45. $(PKG_INSTALL_DIR)/usr/include/dnet.h \
  46. $(1)/usr/include/
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/include/dnet \
  49. $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libdnet.{la,a,so*} \
  53. $(1)/usr/lib/
  54. endef
  55. define Package/libdnet/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) \
  58. $(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* \
  59. $(1)/usr/lib/
  60. endef
  61. $(eval $(call BuildPackage,libdnet))