From: florian Date: Sun, 26 Jul 2009 10:39:51 +0000 (+0000) Subject: [package] add liboping, patch from poelzi X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=94d956b6e9f47530cc93db461cddf38ff1f52fe8;p=packages.git [package] add liboping, patch from poelzi git-svn-id: svn://svn.openwrt.org/openwrt/packages@16998 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/libs/liboping/Makefile b/libs/liboping/Makefile new file mode 100644 index 000000000..665eab0a2 --- /dev/null +++ b/libs/liboping/Makefile @@ -0,0 +1,56 @@ +# +# Copyright (C) 2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=liboping +PKG_VERSION:=1.3.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://verplant.org/liboping/files +PKG_MD5SUM:=2fb7bdc4162cc3d0b2ef40b53653f945 + +PKG_FIXUP = libtool + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/package.mk + +define Package/liboping + SECTION:=libs + CATEGORY:=Libraries + TITLE:=liboping is a C library to generate ICMP echo requests. + URL:=http://verplant.org/liboping/ +endef + + +TARGET_CFLAGS += $(FPIC) + +CONFIGURE_ARGS += \ + --without-perl-bindings \ + --enable-shared \ + --enable-static + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/oping.h $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.{a,so*} $(1)/usr/lib/ +endef + +define Package/liboping/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,liboping))