Ticket #4969: Makefile

File Makefile, 1.3 KB (added by ratbug, 9 years ago)

Makefile

Line 
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: Makefile 9349 2007-10-18 18:46:37Z blogic $
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=pcapsipdump
12PKG_VERSION:=0.1.4
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://voxel.dl.sourceforge.net/sourceforge/psipdump/
17PKG_CAT:=zcat
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/pcapsipdump
25  SECTION:=net
26  CATEGORY:=Network
27  DEPENDS:=+libpcap +libstdcpp
28  TITLE:=pcapsipdump
29  URL:=http://sourceforge.net/projects/psipdump/
30endef
31
32define Package/pcapsipdump/description
33pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session (even if there is thousands of concurrect SIP sessions)
34endef
35       
36define Build/Compile
37        $(TARGET_CONFIGURE_OPTS) \
38        $(MAKE) -C $(PKG_BUILD_DIR) CPPFLAGS="-I$(STAGING_DIR)/usr/include" LDFLAGS="-L$(STAGING_DIR)/usr/lib -lpcap -lstdc++"
39endef
40
41define Package/pcapsipdump/install
42        $(INSTALL_DIR) $(1)/usr/bin
43        $(INSTALL_BIN) $(PKG_BUILD_DIR)/pcapsipdump $(1)/usr/bin/
44endef
45
46$(eval $(call BuildPackage,pcapsipdump))