fix busybox applet lookup (thanks, Stefan Weil)
[openwrt.git] / openwrt / package / httping / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=httping
6 PKG_VERSION:=1.0.10
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=998b00b8babeb3196d28c20ad87d9c15
9
10 PKG_SOURCE_URL:=http://www.vanheusden.com/httping/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 PKG_DEPEND=libopenssl
17 ifneq ($(BR2_PACKAGE_HTTPING_WITH_SSL),y)
18 SSL_ENABLE:=".nossl"
19 PKG_DEPEND:=""
20 endif
21
22 include $(TOPDIR)/package/rules.mk
23
24 $(eval $(call PKG_template,HTTPING,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
25
26 $(PKG_BUILD_DIR)/.configured:
27 touch $@
28
29 $(PKG_BUILD_DIR)/.built:
30 $(MAKE) -C $(PKG_BUILD_DIR) -f $(PKG_BUILD_DIR)/Makefile$(SSL_ENABLE) \
31 CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR)
32 touch $@
33
34 $(IPKG_HTTPING):
35 mkdir -p $(IDIR_HTTPING)/usr/sbin
36 echo "Depends: $(PKG_DEPEND)" >> $(IDIR_HTTPING)/CONTROL/control
37 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_HTTPING)/usr/sbin/
38 $(STRIP) $(IDIR_HTTPING)/usr/sbin/*
39 $(IPKG_BUILD) $(IDIR_HTTPING) $(PACKAGE_DIR)
40
41 mostlyclean:
42 $(MAKE) -C $(PKG_BUILD_DIR) clean
43 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.039583 seconds and 5 git commands to generate.