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