1
0

Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #
  2. # Copyright (C) 2009-2014 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:=liboping
  9. PKG_VERSION:=1.9.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  12. PKG_LICENSE:=LGPL-2.1+
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  14. PKG_SOURCE_URL:=https://noping.cc/files
  15. PKG_MD5SUM:=9c9f65bfd297d7e7092c7f219c31f66a
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/liboping/Default
  20. URL:=http://verplant.org/liboping/
  21. endef
  22. define Package/liboping
  23. $(call Package/liboping/Default)
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=C library to generate ICMP echo requests.
  27. endef
  28. define Package/oping
  29. $(call Package/liboping/Default)
  30. SECTION:=net
  31. CATEGORY:=Network
  32. TITLE:=Send ICMP echo request to network hosts
  33. DEPENDS+= +liboping
  34. endef
  35. define Package/noping
  36. $(call Package/liboping/Default)
  37. SECTION:=net
  38. CATEGORY:=Network
  39. TITLE:=Ncurses application to send ICMP echo request to network hosts
  40. DEPENDS+= +liboping +libncurses
  41. endef
  42. TARGET_CFLAGS += $(FPIC)
  43. CONFIGURE_ARGS += \
  44. --without-perl-bindings \
  45. --enable-shared \
  46. --enable-static
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/include
  49. $(CP) $(PKG_INSTALL_DIR)/usr/include/oping.h $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.{a,so*} $(1)/usr/lib/
  52. endef
  53. define Package/liboping/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.so.* $(1)/usr/lib/
  56. endef
  57. define Package/oping/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oping $(1)/usr/bin/
  60. endef
  61. define Package/noping/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/noping $(1)/usr/bin/
  64. endef
  65. $(eval $(call BuildPackage,liboping))
  66. $(eval $(call BuildPackage,oping))
  67. $(eval $(call BuildPackage,noping))