2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://verplant.org
/liboping
/files
16 PKG_MD5SUM
:=f549c6f1f4d1dbef4dc7cc823badc20b
20 include $(INCLUDE_DIR
)/host-build.mk
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/liboping
26 TITLE
:=liboping is a C library to generate ICMP echo requests.
27 URL
:=http
://verplant.org
/liboping
/
31 TARGET_CFLAGS
+= $(FPIC
)
34 --without-perl-bindings \
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 DESTDIR
="$(PKG_INSTALL_DIR)" \
44 define Build
/InstallDev
45 $(INSTALL_DIR
) $(1)/usr
/include
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/oping.h
$(1)/usr
/include/
47 $(INSTALL_DIR
) $(1)/usr
/lib
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/liboping.
{a
,so
*} $(1)/usr
/lib
/
51 define Package
/liboping
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/liboping.so
* $(1)/usr
/lib
/
56 $(eval
$(call BuildPackage
,liboping
))