replace lots of manual install commands with INSTALL_* variables
[packages.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
15 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/sipp
17 PKG_MD5SUM:=8866e9af0d3bc29e91ebb6eab89a7f1f
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:=\
30         SIPp is a free Open Source test tool / traffic generator for the SIP protocol.\\\
31         It includes a few basic SipStone user agent scenarios (UAC and UAS) and\\\
32         establishes and releases multiple calls with the INVITE and BYE methods.\\\
33   URL:=http://sipp.sourceforge.net
34 endef
35
36 define Build/Compile    
37         $(MAKE) -C $(PKG_BUILD_DIR) \
38                 $(TARGET_CONFIGURE_OPTS) \
39                 CC_linux="$(TARGET_CC)" \
40                 CPP_linux="$(TARGET_CC)" \
41                 CCLINK_linux="$(TARGET_CC)" \
42                 CFLAGS="$(TARGET_CFLAGS)" \
43                 CPPFLAGS_linux="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -nostdinc++" \
44                 LFLAGS_linux="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
45                 LIBS="-luClibc++ -lc -lm -lgcc -lpthread -ldl -lncurses" \
46                 all
47 endef
48
49 define Package/sipp/install     
50         $(INSTALL_DIR) $(1)/usr/sbin
51         $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,sipp))