4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_VERSION
= 2.0.9
31 COMPONENT_FMRI
= benchmark
/iperf
32 COMPONENT_SUMMARY
= iperf
- tool for measuring maximum TCP and UDP bandwidth performance
33 COMPONENT_CLASSIFICATION
=Applications
/System Utilities
34 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
35 COMPONENT_PROJECT_URL
= http
://sourceforge.net
/projects
/iperf
/
36 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
37 COMPONENT_ARCHIVE_HASH
= \
38 sha256
:db02911f35686e808ed247160dfa766e08ae3f59d1e7dcedef0ffb2a6643f0bf
39 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/iperf2
/files
/$(COMPONENT_ARCHIVE
)
40 COMPONENT_LICENSE
= BSD
42 include $(WS_MAKE_RULES
)/common.mk
44 COMPONENT_PRE_CONFIGURE_ACTION
= \
45 ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
47 CONFIGURE_OPTIONS
+= PTHREAD_CFLAGS
=-pthreads
49 # these default to unnecessary gcc options, which
50 # are all that prevents us from using studio. so null them.
51 COMPONENT_BUILD_ARGS
+= AM_CXXFLAGS
=""
52 COMPONENT_BUILD_ARGS
+= AM_CFLAGS
=""
54 # Enable ASLR for this component
55 ASLR_MODE
= $(ASLR_ENABLE
)
57 # Auto-generated dependencies
58 REQUIRED_PACKAGES
+= system
/library
59 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
60 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
61 REQUIRED_PACKAGES
+= system
/library
/math