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