Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (C) 2015 Lubomir Rintel <lkundrak@v3.sk>
  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:=libndp
  9. PKG_VERSION:=1.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://libndp.org/files
  13. PKG_INSTALL:=1
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_LICENSE:=LGPL-2.1+
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libndp
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=Library for Neighbor Discovery Protocol
  21. URL:=http://libndp.org/
  22. endef
  23. define Package/libndp/description
  24. This package contains a library which provides a wrapper for IPv6 Neighbor
  25. Discovery Protocol. It also provides a tool named ndptool for sending and
  26. receiving NDP messages.
  27. endef
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/ndp.h $(1)/usr/include/
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libndp.{a,so*} $(1)/usr/lib/
  33. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libndp.pc $(1)/usr/lib/pkgconfig/
  35. endef
  36. define Package/libndp/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libndp.so.* $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ndptool $(1)/usr/bin/
  41. endef
  42. $(eval $(call BuildPackage,libndp))