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