source: packages/libs/liboping/Makefile @ 22291

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

[packages] liboping: update to 1.4.0, add a noping package for the ncurses app

File size: 1.9 KB
Line 
1#
2# Copyright (C) 2009-2010 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.4.0
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://verplant.org/liboping/files
16PKG_MD5SUM:=b3d3ef82c8b963266e0ce8db1509cac4
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/host-build.mk
22include $(INCLUDE_DIR)/package.mk
23
24define Package/liboping/Default
25  URL:=http://verplant.org/liboping/
26endef
27
28define Package/liboping
29$(call Package/liboping/Default)
30  SECTION:=libs
31  CATEGORY:=Libraries
32  TITLE:=C library to generate ICMP echo requests.
33endef
34
35define 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
41endef
42
43define 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
49endef
50
51TARGET_CFLAGS += $(FPIC)
52
53CONFIGURE_ARGS += \
54        --without-perl-bindings \
55        --enable-shared \
56        --enable-static
57
58define 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/
63endef
64
65define Package/liboping/install
66        $(INSTALL_DIR) $(1)/usr/lib
67        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.so.* $(1)/usr/lib/
68endef
69
70define Package/oping/install
71        $(INSTALL_DIR) $(1)/usr/bin
72        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oping $(1)/usr/bin/
73endef
74
75define Package/noping/install
76        $(INSTALL_DIR) $(1)/usr/bin
77        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/noping $(1)/usr/bin/
78endef
79
80$(eval $(call BuildPackage,liboping))
81$(eval $(call BuildPackage,oping))
82$(eval $(call BuildPackage,noping))
Note: See TracBrowser for help on using the repository browser.