316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi#
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# CDDL HEADER START
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi#
f49f1c5fa6a9a55a194e5ada042df134907278f4Aki Tuomi# The contents of this file are subject to the terms of the
f49f1c5fa6a9a55a194e5ada042df134907278f4Aki Tuomi# Common Development and Distribution License (the "License").
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# You may not use this file except in compliance with the License.
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi#
285bfe946c2d54928b272270dd5eef9041b24271Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b3a968f434cbb9e374ea3da0a7d493e20231a4aeAki Tuomi# or http://www.opensolaris.org/os/licensing.
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# See the License for the specific language governing permissions
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# and limitations under the License.
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi#
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# When distributing Covered Code, include this CDDL HEADER in each
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# If applicable, add the following below this CDDL HEADER, with the
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# fields enclosed by brackets "[]" replaced with your own identifying
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# information: Portions Copyright [yyyy] [name of copyright owner]
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi#
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# CDDL HEADER END
cd24dc2196f7480d4793ca5d5f9f8d70741bc103Aki Tuomi#
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi
452d0005a47c6872590346f5ea8b247974689ac9Aki Tuomi#
c6108c1bfa10d5fcd1def9c6a23ebcd5204d1775Timo Sirainen# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
345f36ebc7dd445cfa3dbf157342d110cc74d7c7Aki Tuomi#
c6108c1bfa10d5fcd1def9c6a23ebcd5204d1775Timo Sirainen
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomiinclude ../../make-rules/shared-macros.mk
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCOMPONENT_NAME= iftop
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCOMPONENT_VERSION= 0.17
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCOMPONENT_PROJECT_URL= http://www.ex-parrot.com/~pdw/iftop/
17fbd200b78112bd0d89e89598aa01cea72a74e5Martti RannanjärviCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCOMPONENT_ARCHIVE_HASH= \
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi sha256:d032547c708307159ff5fd0df23ebd3cfa7799c31536fa0aea1820318a8e0eac
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCOMPONENT_ARCHIVE_URL= http://www.ex-parrot.com/~pdw/iftop/download/$(COMPONENT_ARCHIVE)
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCOMPONENT_BUGDB= utility/iftop
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiTPNO= 9256
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomiinclude $(WS_MAKE_RULES)/prep.mk
de1c645a79d42c37dffb7f52e9c643b6251fdcd0Aki Tuomiinclude $(WS_MAKE_RULES)/configure.mk
7c9a9ac8cd5652f0e12a24b07c8559a7be0f5554Timo Siraineninclude $(WS_MAKE_RULES)/ips.mk
de1c645a79d42c37dffb7f52e9c643b6251fdcd0Aki Tuomi
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCOMPONENT_PRE_CONFIGURE_ACTION = \
7e1a69e513739a7c12e3c5ec53dff1eb01b90524Aki Tuomi ($(CLONEY) $(SOURCE_DIR) $(@D))
7e1a69e513739a7c12e3c5ec53dff1eb01b90524Aki Tuomi
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiPATCH_LEVEL= 0
149299c7d5136a8fb425ef3cf8953026a1358002Timo Sirainen
7e1a69e513739a7c12e3c5ec53dff1eb01b90524Aki Tuomi# without this we bus error on sparc. sadly I don't see any patches
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# that might relate from the upstream (though maybe that's really
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi# "happily", as this is simpler)
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomistudio_ALIGN.sparc.32= -xmemalign=1i
ff95c6488eb3239654ed7fd51ed787a6b2c44506Timo Sirainen
f089a10e4816e772992346c9837ec10db3894c65Timo Sirainen
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiIFTOP_LIBDIR= /usr/gnu/lib
ff95c6488eb3239654ed7fd51ed787a6b2c44506Timo SirainenLDFLAGS += -L$(IFTOP_LIBDIR) -R$(IFTOP_LIBDIR)
ff95c6488eb3239654ed7fd51ed787a6b2c44506Timo SirainenCPPFLAGS += -I/usr/gnu/include -I/usr/include/ncurses
ff95c6488eb3239654ed7fd51ed787a6b2c44506Timo SirainenCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
316cbe323513a0f20d1cf519fe9405e231d633e2Aki TuomiCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi
ff95c6488eb3239654ed7fd51ed787a6b2c44506Timo Sirainen
86ad487452c763152f3ff4dd4650512f3cecdc55Aki Tuomi# common targets
86ad487452c763152f3ff4dd4650512f3cecdc55Aki Tuomibuild: $(BUILD_32)
86ad487452c763152f3ff4dd4650512f3cecdc55Aki Tuomi
b3a968f434cbb9e374ea3da0a7d493e20231a4aeAki Tuomiinstall: $(INSTALL_32)
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomitest: $(NO_TESTS)
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi
ff95c6488eb3239654ed7fd51ed787a6b2c44506Timo Sirainen
86ad487452c763152f3ff4dd4650512f3cecdc55Aki TuomiREQUIRED_PACKAGES += library/ncurses
86ad487452c763152f3ff4dd4650512f3cecdc55Aki TuomiREQUIRED_PACKAGES += system/library
86ad487452c763152f3ff4dd4650512f3cecdc55Aki TuomiREQUIRED_PACKAGES += system/library/libpcap
b3a968f434cbb9e374ea3da0a7d493e20231a4aeAki TuomiREQUIRED_PACKAGES += system/library/math
316cbe323513a0f20d1cf519fe9405e231d633e2Aki Tuomi