add lvm2 cross compile fix
[packages.git] / net / pcapsipdump / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pcapsipdump
11 PKG_VERSION:=0.1.4
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/psipdump
16 PKG_MD5SUM:=95ed26caf66237a654cae2cacdaa3386
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/pcapsipdump
21   SECTION:=net
22   CATEGORY:=Network
23   SUBMENU:=Telephony
24   DEPENDS:=+libpcap +uclibcxx
25   TITLE:=SIP sessions dumping tool
26   URL:=http://sourceforge.net/projects/pcapsipdump/
27 endef
28
29 define Package/pcapsipdump/description
30         pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a
31         fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session
32         (even if there is thousands of concurrect SIP sessions).
33 endef
34
35 define Build/Compile
36         $(TARGET_CONFIGURE_OPTS) \
37                 $(MAKE) -C $(PKG_BUILD_DIR) \
38                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++"  \
39                 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
40                 LIBS="-lpcap -luClibc++"
41 endef
42
43 define Package/pcapsipdump/install
44         $(INSTALL_DIR) $(1)/usr/bin
45         $(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
46 endef
47
48 $(eval $(call BuildPackage,pcapsipdump))