[packages] ditg libc++ fix
[openwrt/svn-archive/archive.git] / net / ditg / Makefile
1 #
2 # Copyright (C) 2010-2011 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:=ditg
11 PKG_VERSION:=2.8.0-rc1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=D-ITG-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.grid.unina.it/software/ITG/codice
16 PKG_MD5SUM:=609736113de729df833ac691d1c44ead
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/D-ITG-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/uclibc++.mk
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ditg
24 TITLE:=D-ITG (Distributed Internet Traffic Generator)
25 SECTION:=net
26 CATEGORY:=Network
27 URL:=http://www.grid.unina.it/software/ITG/
28 MAINTAINER:=Giovanni Di Stasi <giovanni.distasi@unina.it>
29 DEPENDS:=+libpthread $(CXX_DEPENDS)
30 endef
31
32 define Package/ditg/description
33 D-ITG (Distributed Internet Traffic Generator) is a platform capable
34 to produce traffic at packet level accurately replicating appropriate
35 stochastic processes for both IDT (Inter Departure Time) and PS
36 (Packet Size) random variables (exponential, uniform, cauchy, normal,
37 pareto, ...). D-ITG supports both IPv4 and IPv6 traffic generation and
38 it is capable to generate traffic at network, transport, and
39 application layer. We believe that D-ITG shows interesting properties
40 when compared to other traffic generators.
41 endef
42
43 MAKE_PATH := src
44
45 MAKE_FLAGS += \
46 CXXOPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DMULTIPORT -DARM"
47
48 define Package/ditg/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/ITG{Send,Recv,Log,Dec} $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,ditg))