florian 502c47bb5a httping: fix build with NLS
v2: INTL support was not at default DEPENDS (broke nossl)

libintl.h was not found when CONFIG_BUILD_NLS was selected
explicit -lintl fixes
undefined reference to `libintl_gettext'

fixes ticket #15816

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@40701 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-05 19:31:03 +00:00

85 lines
1.9 KiB
Makefile

#
# Copyright (C) 2006-2014 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:=httping
PKG_VERSION:=2.3.4
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.vanheusden.com/httping
PKG_MD5SUM:=7a71ed513f9f22fe331b783a3d36767e
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/httping/Default
SECTION:=net
CATEGORY:=Network
TITLE:=Httping is like 'ping' but for http-requests
URL:=http://www.vanheusden.com/httping/
DEPENDS:=$(INTL_DEPENDS)
endef
define Package/httping/Default/description
Give it an url, and it'll show you how long it takes to connect, send a
request and retrieve the reply (only the headers). Be aware that the
transmission across the network also takes time!
endef
define Package/httping
$(call Package/httping/Default)
DEPENDS+= +libopenssl
TITLE+= (with SSL support)
VARIANT:=ssl
endef
define Package/httping/description
$(call Package/httping/Default/description)
This package is built with SSL support.
endef
define Package/httping-nossl
$(call Package/httping/Default)
TITLE+= (without SSL support)
VARIANT:=nossl
endef
define Package/httping-nossl/description
$(call Package/httping/Default/description)
This package is built without SSL support.
endef
define Build/Configure
endef
TARGET_LDFLAGS += $(INTL_LDFLAGS) $(if $(INTL_FULL),-lintl)
MAKE_FLAGS += \
DEBUG="no" \
FW="no" \
NC="no" \
TFO="no"
ifeq ($(BUILD_VARIANT),nossl)
MAKE_FLAGS += SSL="no"
endif
define Package/httping/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/httping $(1)/usr/bin/
endef
Package/httping-nossl/install = $(Package/httping/install)
$(eval $(call BuildPackage,httping))
$(eval $(call BuildPackage,httping-nossl))