Makefile revision 3984
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# CDDL HEADER START
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# The contents of this file are subject to the terms of the
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# Common Development and Distribution License (the "License").
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# You may not use this file except in compliance with the License.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# or http://www.opensolaris.org/os/licensing.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# See the License for the specific language governing permissions
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# and limitations under the License.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# When distributing Covered Code, include this CDDL HEADER in each
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# If applicable, add the following below this CDDL HEADER, with the
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# fields enclosed by brackets "[]" replaced with your own identifying
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# information: Portions Copyright [yyyy] [name of copyright owner]
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# CDDL HEADER END
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
a395dd575518d9e5280fc5d5d5ef47c61b174647ludovicp#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/shared-macros.mk
53247d28ba99538f841a13ea2cde01c3faa3ef36kenneth_suter
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_NAME= nmap
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_VERSION= 6.25
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_PROJECT_URL= http://nmap.org/
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_ARCHIVE_HASH= \
b4851fc75ef4634840dcbadec085d586d36b434dneil_a_wilson sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
53247d28ba99538f841a13ea2cde01c3faa3ef36kenneth_suterCOMPONENT_BUGDB= utility/nmap
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonTPNO= 9217
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/prep.mk
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/configure.mk
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/ips.mk
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# Can't use the Studio compilers as they don't support the GNU
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# __attribute__ extension
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPILER = gcc3
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_PRE_CONFIGURE_ACTION = \
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson ($(CLONEY) $(SOURCE_DIR) $(@D))
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonPYTHON_VERSION = 2.6
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonPKG_MACROS += PYVER=$(PYTHON_VERSION)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += CXX="$(CXX)"
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_32)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --localstatedir=/var
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --without-localdirs
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --with-zenmap
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --with-openssl
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --with-libpcap
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --with-libpcre
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --with-liblua
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --with-ncat
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCONFIGURE_OPTIONS += --with-ndiff
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# pkgdepend doesn't like the first line of a Python script to be:
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_POST_INSTALL_ACTION += \
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson $(GSED) -i -e 's?env python?python2.6?' \
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson $(PROTOUSRBINDIR)/uninstall_zenmap
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonASLR_MODE = $(ASLR_ENABLE)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# common targets
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonbuild: $(BUILD_32)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninstall: $(INSTALL_32)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsontest: $(NO_TESTS)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/depend.mk
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson