don't depend in libiconv, depend on libpthread, cleanup
[openwrt/svn-archive/archive.git] / net / sipp / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sipp
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=8866e9af0d3bc29e91ebb6eab89a7f1f
15
16 PKG_SOURCE_URL:=@SF/sipp
17 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/sipp
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+uclibcxx +libpthread +libncurses
28 TITLE:=test tool / traffic generator for the SIP protocol
29 DESCRIPTION:=SIPp is a free Open Source test tool / traffic generator for the SIP protocol.\\\
30 It includes a few basic SipStone user agent scenarios (UAC and UAS) and\\\
31 establishes and releases multiple calls with the INVITE and BYE methods.\\\
32 URL:=http://sipp.sourceforge.net
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 $(TARGET_CONFIGURE_OPTS) \
38 CC_linux="$(TARGET_CC)" \
39 CPP_linux="$(TARGET_CC)" \
40 CCLINK_linux="$(TARGET_CC)" \
41 CFLAGS="$(TARGET_CFLAGS)" \
42 CPPFLAGS_linux="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -nostdinc++" \
43 LFLAGS_linux="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
44 LIBS="-luClibc++ -lc -lm -lgcc -lpthread -ldl -lncurses" \
45 all
46 endef
47
48 define Package/sipp/install
49 mkdir -p $(1)/usr/sbin
50 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,sipp))