Makefile revision 4236
229N/A
229N/A# CDDL HEADER START
229N/A#
229N/A# The contents of this file are subject to the terms of the
229N/A# Common Development and Distribution License (the "License").
229N/A# You may not use this file except in compliance with the License.
229N/A#
229N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
229N/A# or http://www.opensolaris.org/os/licensing.
229N/A# See the License for the specific language governing permissions
229N/A# and limitations under the License.
229N/A#
229N/A# When distributing Covered Code, include this CDDL HEADER in each
229N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
229N/A# If applicable, add the following below this CDDL HEADER, with the
229N/A# fields enclosed by brackets "[]" replaced with your own identifying
229N/A# information: Portions Copyright [yyyy] [name of copyright owner]
229N/A#
229N/A# CDDL HEADER END
229N/A#
718N/A
229N/A#
229N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
229N/A#
1273N/A
229N/A# Can't use the Studio compilers as they don't support the GNU
229N/A# __attribute__ extension
618N/ACOMPILER = gcc3
229N/A
1273N/Ainclude ../../make-rules/shared-macros.mk
229N/A
229N/ACOMPONENT_NAME= nmap
229N/ACOMPONENT_VERSION= 6.25
229N/ACOMPONENT_PROJECT_URL= http://nmap.org/
229N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
229N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
229N/ACOMPONENT_ARCHIVE_HASH= \
229N/A sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
229N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
229N/ACOMPONENT_BUGDB= utility/nmap
229N/A
229N/ATPNO= 9217
229N/A
229N/Ainclude $(WS_MAKE_RULES)/prep.mk
229N/Ainclude $(WS_MAKE_RULES)/configure.mk
229N/Ainclude $(WS_MAKE_RULES)/ips.mk
718N/A
718N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
718N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
231N/A
231N/APYTHON_VERSION = 2.7
231N/A
814N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
231N/A
229N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
229N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
229N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
229N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
229N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
229N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
229N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))"
229N/ACONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_32)
229N/ACONFIGURE_OPTIONS += --localstatedir=/var
229N/ACONFIGURE_OPTIONS += --without-localdirs
229N/ACONFIGURE_OPTIONS += --with-zenmap
229N/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/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