jamvm: moved to github
[openwrt.org/packages.git] / net / mgen / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=mgen
PKG_VERSION:=5.01b
PKG_RELEASE:=3
 
PKG_SOURCE:=src-$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://downloads.pf.itd.nrl.navy.mil/mgen/
PKG_MD5SUM:=1e467131446d649c8a0aebdcd8e5f2a9
 
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
 
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
 
define Package/mgen
  TITLE:=Multi-Generator
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libpthread $(CXX_DEPENDS)
  URL:=http://cs.itd.nrl.navy.mil/work/mgen/
endef
 
define Package/mgen/Description
       The Multi-Generator (MGEN) is open source software developed by
       the Naval Research Laboratory (NRL) PROTocol Engineering Advanced
       Networking (PROTEAN) Research Group. MGEN provides the ability to
       perform IP network performance tests and measurements using UDP/IP
       traffic (TCP is currently being developed).
endef
 
define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/unix \
                $(TARGET_CONFIGURE_OPTS) \
                CC="$(TARGET_CXX)" \
                SYSTEM_INCLUDES="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
                SYSTEM_LDFLAGS="$(TARGET_LDFLAGS)" \
                SYSTEM_LIBS="-ldl -lpthread" \
                -f Makefile.linux mgen
endef
 
define Package/mgen/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_BUILD_DIR)/unix/mgen $(1)/usr/bin/mgen
endef
 
$(eval $(call BuildPackage,mgen))
 
comments