Makefile revision 844
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# CDDL HEADER START
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# The contents of this file are subject to the terms of the
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Common Development and Distribution License (the "License").
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# You may not use this file except in compliance with the License.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# or http://www.opensolaris.org/os/licensing.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# See the License for the specific language governing permissions
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# and limitations under the License.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# When distributing Covered Code, include this CDDL HEADER in each
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# If applicable, add the following below this CDDL HEADER, with the
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# fields enclosed by brackets "[]" replaced with your own identifying
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# information: Portions Copyright [yyyy] [name of copyright owner]
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# CDDL HEADER END
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinclude ../../make-rules/shared-macros.mk
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_NAME= iftop
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_VERSION= 0.17
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5c45bb188ab729e501e48732842cb9de6a9813beAlex ValavanisCOMPONENT_PROJECT_URL= http://www.ex-parrot.com/~pdw/iftop/
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
a4142717644b885998f4de2b27be4e8648315decMarkus EngelCOMPONENT_ARCHIVE_HASH= \
9ba77856a8823f85b53c0a861d220cd0347f2754Liam P. White sha256:d032547c708307159ff5fd0df23ebd3cfa7799c31536fa0aea1820318a8e0eac
a4142717644b885998f4de2b27be4e8648315decMarkus EngelCOMPONENT_ARCHIVE_URL= http://www.ex-parrot.com/~pdw/iftop/download/$(COMPONENT_ARCHIVE)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
9836787d16b657453784c30809d330f50d9bc6d8Liam P. Whiteinclude ../../make-rules/prep.mk
9836787d16b657453784c30809d330f50d9bc6d8Liam P. Whiteinclude ../../make-rules/configure.mk
9836787d16b657453784c30809d330f50d9bc6d8Liam P. Whiteinclude ../../make-rules/ips.mk
a4142717644b885998f4de2b27be4e8648315decMarkus Engel
a4142717644b885998f4de2b27be4e8648315decMarkus EngelCOMPONENT_PRE_CONFIGURE_ACTION = \
a4142717644b885998f4de2b27be4e8648315decMarkus Engel ($(CLONEY) $(SOURCE_DIR) $(@D))
a4142717644b885998f4de2b27be4e8648315decMarkus Engel
a4142717644b885998f4de2b27be4e8648315decMarkus EngelPATCH_LEVEL= 0
a4142717644b885998f4de2b27be4e8648315decMarkus Engel
a4142717644b885998f4de2b27be4e8648315decMarkus Engel# without this we bus error on sparc. sadly I don't see any patches
652485ad88d2a42f827c7e355220efeb3b2e37afLiam P. White# that might relate from the upstream (though maybe that's really
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# "happily", as this is simpler)
0b78b3f935d2de75ef952f2bafd0030aca9a077cMatthew Petroffstudio_ALIGN.sparc.32= -xmemalign=1i
a4142717644b885998f4de2b27be4e8648315decMarkus Engel
a4142717644b885998f4de2b27be4e8648315decMarkus Engel
a4142717644b885998f4de2b27be4e8648315decMarkus EngelIFTOP_LIBDIR= /usr/gnu/lib
a4142717644b885998f4de2b27be4e8648315decMarkus EngelLDFLAGS += -L$(IFTOP_LIBDIR) -R$(IFTOP_LIBDIR)
a4142717644b885998f4de2b27be4e8648315decMarkus EngelCPPFLAGS += -I/usr/gnu/include -I/usr/include/ncurses
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
0b78b3f935d2de75ef952f2bafd0030aca9a077cMatthew PetroffCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# common targets
0b78b3f935d2de75ef952f2bafd0030aca9a077cMatthew Petroffbuild: $(BUILD_32)
0b78b3f935d2de75ef952f2bafd0030aca9a077cMatthew Petroff
fc2e20aa610641335a34aa9b6604c3c4ec0ae7c4Matthew Petroffinstall: $(INSTALL_32)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithtest: $(NO_TESTS)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinclude ../../make-rules/depend.mk
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith