[packages] liboping: update to 1.6.2
[openwrt/svn-archive/archive.git] / libs / liboping / Makefile
1 #
2 # Copyright (C) 2009-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=liboping
11 PKG_VERSION:=1.6.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://verplant.org/liboping/files
16 PKG_MD5SUM:=64a6f31310093d2517cfe7f05aa011e0
17
18 PKG_FIXUP:=libtool
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/liboping/Default
25 URL:=http://verplant.org/liboping/
26 endef
27
28 define Package/liboping
29 $(call Package/liboping/Default)
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=C library to generate ICMP echo requests.
33 endef
34
35 define Package/oping
36 $(call Package/liboping/Default)
37 SECTION:=net
38 CATEGORY:=Network
39 TITLE:=Send ICMP echo request to network hosts
40 DEPENDS+= +liboping
41 endef
42
43 define Package/noping
44 $(call Package/liboping/Default)
45 SECTION:=net
46 CATEGORY:=Network
47 TITLE:=Ncurses application to send ICMP echo request to network hosts
48 DEPENDS+= +liboping +libncurses
49 endef
50
51 TARGET_CFLAGS += $(FPIC)
52
53 CONFIGURE_ARGS += \
54 --without-perl-bindings \
55 --enable-shared \
56 --enable-static
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/oping.h $(1)/usr/include/
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.{a,so*} $(1)/usr/lib/
63 endef
64
65 define Package/liboping/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.so.* $(1)/usr/lib/
68 endef
69
70 define Package/oping/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oping $(1)/usr/bin/
73 endef
74
75 define Package/noping/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/noping $(1)/usr/bin/
78 endef
79
80 $(eval $(call BuildPackage,liboping))
81 $(eval $(call BuildPackage,oping))
82 $(eval $(call BuildPackage,noping))