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.

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