Makefile revision 3477
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# CDDL HEADER START
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder#
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# The contents of this file are subject to the terms of the
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# Common Development and Distribution License (the "License").
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# You may not use this file except in compliance with the License.
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder#
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# or http://www.opensolaris.org/os/licensing.
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# See the License for the specific language governing permissions
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# and limitations under the License.
f8a1ab8012a1f36060d6ce9b63399fa4a8a2981cChristian Maeder#
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
32a2f5f00ff72c095b39629101043db4407974f9Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f8a1ab8012a1f36060d6ce9b63399fa4a8a2981cChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
b603f34b79bc0992e5d74f484e5bdc9f9c2346c6Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
f8a1ab8012a1f36060d6ce9b63399fa4a8a2981cChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
b603f34b79bc0992e5d74f484e5bdc9f9c2346c6Christian Maeder#
b603f34b79bc0992e5d74f484e5bdc9f9c2346c6Christian Maeder# CDDL HEADER END
395efaeb5bf61bc2bf355c1c029dffa09bc1d1edChristian Maeder#
4954b30d3c209d7dee4e43016cee8189daf646e8Christian Maeder
c1124c6303c288db3fcb40518d38169cd7baaa4cChristian Maeder#
645b0104b011ed77fd0173c156cadc98324f336aChristian Maeder# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
c18e9c3c6d5039618f1f2c05526ece84c7794ea3Christian Maeder#
c18e9c3c6d5039618f1f2c05526ece84c7794ea3Christian Maeder
c18e9c3c6d5039618f1f2c05526ece84c7794ea3Christian Maederinclude ../../make-rules/shared-macros.mk
c18e9c3c6d5039618f1f2c05526ece84c7794ea3Christian Maeder
c18e9c3c6d5039618f1f2c05526ece84c7794ea3Christian MaederCOMPONENT_NAME= nmap
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian MaederCOMPONENT_VERSION= 6.25
4954b30d3c209d7dee4e43016cee8189daf646e8Christian MaederCOMPONENT_PROJECT_URL= http://nmap.org/
8425adcfd77c8f90e6b76c7b40d39f878ee86d44Christian MaederCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
14b47f7dabb39996a31c7286810a5897587aed3aChristian MaederCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian MaederCOMPONENT_ARCHIVE_HASH= \
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian Maeder sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian MaederCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian MaederCOMPONENT_BUGDB= utility/nmap
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian Maeder
4954b30d3c209d7dee4e43016cee8189daf646e8Christian MaederTPNO= 9217
5dca8f36562463e6f691d4d50efe5716d5299801Christian Maeder
5dca8f36562463e6f691d4d50efe5716d5299801Christian Maederinclude ../../make-rules/prep.mk
5dca8f36562463e6f691d4d50efe5716d5299801Christian Maederinclude ../../make-rules/configure.mk
4d5d65e4f55ba8eaa02a4dab14348abeda75cf6bChristian Maederinclude ../../make-rules/ips.mk
5dca8f36562463e6f691d4d50efe5716d5299801Christian Maeder
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian Maeder# Can't use the Studio compilers as they don't support the GNU
5dca8f36562463e6f691d4d50efe5716d5299801Christian Maeder# __attribute__ extension
5dca8f36562463e6f691d4d50efe5716d5299801Christian MaederCOMPILER = gcc
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian Maeder
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian MaederCOMPONENT_PRE_CONFIGURE_ACTION = \
5dca8f36562463e6f691d4d50efe5716d5299801Christian Maeder ($(CLONEY) $(SOURCE_DIR) $(@D))
d48085f765fca838c1d972d2123601997174583dChristian Maeder
5dca8f36562463e6f691d4d50efe5716d5299801Christian MaederCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5dca8f36562463e6f691d4d50efe5716d5299801Christian MaederCONFIGURE_OPTIONS += CXX="$(CXX)"
5dca8f36562463e6f691d4d50efe5716d5299801Christian MaederCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
5dca8f36562463e6f691d4d50efe5716d5299801Christian MaederCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
fa1cbc8327acea14fc0117e8e48c5fad2b7fd3fdChristian MaederCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) -m64"
5dca8f36562463e6f691d4d50efe5716d5299801Christian MaederCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
5dca8f36562463e6f691d4d50efe5716d5299801Christian MaederCONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
5dca8f36562463e6f691d4d50efe5716d5299801Christian MaederCONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_64)
d48085f765fca838c1d972d2123601997174583dChristian MaederCONFIGURE_OPTIONS += --localstatedir=/var
CONFIGURE_OPTIONS += --without-localdirs
CONFIGURE_OPTIONS += --with-zenmap
CONFIGURE_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
configure: $(CONFIGURE_64)
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk