add patch from #873
[openwrt/svn-archive/archive.git] / net / sipsak / 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:=sipsak
12 PKG_VERSION:=0.9.6
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=c4eb8e282902e75f4f040f09ea9d99d5
15
16 PKG_SOURCE_URL:=http://download.berlios.de/sipsak/ \
17 http://ftp.iptel.org/pub/sipsak/
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/sipsak
27 SECTION:=net
28 CATEGORY:=Network
29 DEPEDNDS:=+libopenssl
30 TITLE:=SIP (Session Initiation Protocol) stress and diagnostics utility
31 DESCRIPTION:=A SIP (Session Initiation Protocol) stress and diagnostics utility
32 URL:=http://www.sipsak.org/
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default,--enable-shared \
37 --disable-static \
38 --disable-gnutls,ac_cv_func_malloc_0_nonnull=yes)
39 endef
40
41 define Build/Compile
42 rm -rf $(PKG_INSTALL_DIR)
43 mkdir -p $(PKG_INSTALL_DIR)
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Package/sipsak/install
50 install -d -m0755 $(1)/usr/bin
51 $(CP) $(PKG_INSTALL_DIR)/usr/bin/sipsak $(1)/usr/bin/
52 endef
53
54 $(eval $(call BuildPackage,sipsak))