source: packages/libs/liboping/Makefile @ 26944

Last change on this file since 26944 was 26944, checked in by swalker, 6 years ago

[packages] liboping: update to 1.6.1

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