Makefile revision 7008
294N/A
294N/A# CDDL HEADER START
294N/A#
294N/A# The contents of this file are subject to the terms of the
294N/A# Common Development and Distribution License (the "License").
294N/A# You may not use this file except in compliance with the License.
294N/A#
294N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
294N/A# or http://www.opensolaris.org/os/licensing.
294N/A# See the License for the specific language governing permissions
294N/A# and limitations under the License.
294N/A#
294N/A# When distributing Covered Code, include this CDDL HEADER in each
294N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
294N/A# If applicable, add the following below this CDDL HEADER, with the
294N/A# fields enclosed by brackets "[]" replaced with your own identifying
294N/A# information: Portions Copyright [yyyy] [name of copyright owner]
294N/A#
294N/A# CDDL HEADER END
294N/A#
294N/A
294N/A#
294N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
294N/A#
294N/A
294N/A# Can't use the Studio compilers as they don't support the GNU
294N/A# __attribute__ extension
294N/ACOMPILER = gcc3
294N/A
586N/Ainclude ../../make-rules/shared-macros.mk
294N/A
294N/ACOMPONENT_NAME= nmap
294N/ACOMPONENT_VERSION= 6.25
586N/ACOMPONENT_PROJECT_URL= http://nmap.org/
294N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
294N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
294N/ACOMPONENT_ARCHIVE_HASH= \
294N/A sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
294N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
294N/ACOMPONENT_BUGDB= utility/nmap
294N/A
294N/ATPNO= 9217
294N/A
294N/Ainclude $(WS_MAKE_RULES)/prep.mk
294N/A
294N/A# pyobject-27and pygtk2-27 are only available on S11.3 and later
294N/Aifeq ($(BUILD_TYPE), evaluation)
294N/ABUILD_32=
294N/AINSTALL_32=
294N/APUBLISH_STAMP=
294N/Aendif
294N/A
294N/Ainclude $(WS_MAKE_RULES)/configure.mk
294N/Ainclude $(WS_MAKE_RULES)/ips.mk
294N/A
294N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
294N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
294N/A
294N/APYTHON_VERSION = 2.7
294N/A
294N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
294N/A
294N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
294N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
294N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
294N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
294N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
294N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
294N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))"
294N/ACONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_32)
294N/ACONFIGURE_OPTIONS += --localstatedir=/var
294N/ACONFIGURE_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/python$(PYTHON_VERSION)'
COMPONENT_POST_INSTALL_ACTION += \
$(GSED) -i -e "s?env python?python$(PYTHON_VERSION)?" \
$(PROTOUSRBINDIR)/uninstall_zenmap
ASLR_MODE = $(ASLR_ENABLE)
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
REQUIRED_PACKAGES += library/pcre
REQUIRED_PACKAGES += library/python/pygobject-27
REQUIRED_PACKAGES += library/python/pygtk2-27
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += runtime/lua
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/gcc-3-runtime
REQUIRED_PACKAGES += system/library/libpcap
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/network/bpf