packages/net/mgen/Makefile
nbd 34f552b714 mgen: replace uclibc++ hacks with g++-uc wrapper
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32355 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-14 16:17:08 +00:00

53 lines
1.3 KiB
Makefile

#
# Copyright (C) 2006-2010 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:=1
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)/package.mk
define Package/mgen
TITLE:=Multi-Generator
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread +uclibcxx
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 \
CC="g++-uc" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
SYSTEM_LIBS="-ldl -lpthread -luClibc++" \
-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))