Makefile revision 3984
203N/A
203N/A# CDDL HEADER START
203N/A#
203N/A# The contents of this file are subject to the terms of the
203N/A# Common Development and Distribution License (the "License").
203N/A# You may not use this file except in compliance with the License.
203N/A#
203N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
203N/A# or http://www.opensolaris.org/os/licensing.
203N/A# See the License for the specific language governing permissions
203N/A# and limitations under the License.
203N/A#
203N/A# When distributing Covered Code, include this CDDL HEADER in each
203N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
203N/A# If applicable, add the following below this CDDL HEADER, with the
203N/A# fields enclosed by brackets "[]" replaced with your own identifying
203N/A# information: Portions Copyright [yyyy] [name of copyright owner]
203N/A#
203N/A# CDDL HEADER END
203N/A#
2629N/A
203N/A#
203N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
203N/A#
203N/A
203N/Ainclude ../../make-rules/shared-macros.mk
618N/A
203N/ACOMPONENT_NAME= nmap
203N/ACOMPONENT_VERSION= 6.25
844N/ACOMPONENT_PROJECT_URL= http://nmap.org/
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
203N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1273N/ACOMPONENT_ARCHIVE_HASH= \
203N/A sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
278N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
278N/ACOMPONENT_BUGDB= utility/nmap
203N/A
203N/ATPNO= 9217
203N/A
203N/Ainclude ../../make-rules/prep.mk
203N/Ainclude ../../make-rules/configure.mk
203N/Ainclude ../../make-rules/ips.mk
206N/A
203N/A# Can't use the Studio compilers as they don't support the GNU
2629N/A# __attribute__ extension
203N/ACOMPILER = gcc3
203N/A
1701N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1701N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
203N/A
203N/APYTHON_VERSION = 2.6
203N/A
203N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
203N/A
203N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2629N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
203N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
203N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
203N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
203N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
203N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
203N/ACONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_32)
203N/ACONFIGURE_OPTIONS += --localstatedir=/var
203N/ACONFIGURE_OPTIONS += --without-localdirs
203N/ACONFIGURE_OPTIONS += --with-zenmap
203N/ACONFIGURE_OPTIONS += --with-openssl
203N/ACONFIGURE_OPTIONS += --with-libpcap
203N/ACONFIGURE_OPTIONS += --with-libpcre
203N/ACONFIGURE_OPTIONS += --with-liblua
203N/ACONFIGURE_OPTIONS += --with-ncat
813N/ACONFIGURE_OPTIONS += --with-ndiff
206N/A
2629N/A# pkgdepend doesn't like the first line of a Python script to be:
2629N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
203N/ACOMPONENT_POST_INSTALL_ACTION += \
203N/A $(GSED) -i -e 's?env python?python2.6?' \
203N/A $(PROTOUSRBINDIR)/uninstall_zenmap
203N/A
203N/AASLR_MODE = $(ASLR_ENABLE)
203N/A
2629N/A# common targets
2629N/Abuild: $(BUILD_32)
2629N/A
2629N/Ainstall: $(INSTALL_32)
2629N/A
203N/Atest: $(NO_TESTS)
203N/A
203N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
203N/A
203N/Ainclude ../../make-rules/depend.mk
203N/A