Makefile revision 3996
98N/A
98N/A# CDDL HEADER START
1276N/A#
98N/A# The contents of this file are subject to the terms of the
1276N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
919N/A#
98N/A
98N/A# Can't use the Studio compilers as they don't support the GNU
98N/A# __attribute__ extension
98N/ACOMPILER = gcc3
493N/A
98N/Ainclude ../../make-rules/shared-macros.mk
98N/A
1301N/ACOMPONENT_NAME= nmap
98N/ACOMPONENT_VERSION= 6.25
911N/ACOMPONENT_PROJECT_URL= http://nmap.org/
1301N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1301N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1301N/ACOMPONENT_ARCHIVE_HASH= \
911N/A sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
98N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
371N/ACOMPONENT_BUGDB= utility/nmap
98N/A
98N/ATPNO= 9217
98N/A
98N/Ainclude $(WS_MAKE_RULES)/prep.mk
970N/Ainclude $(WS_MAKE_RULES)/configure.mk
977N/Ainclude $(WS_MAKE_RULES)/ips.mk
970N/A
970N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
970N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
970N/A
970N/APYTHON_VERSION = 2.6
970N/A
98N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
559N/A
493N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1308N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
1308N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
969N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
98N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
98N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
493N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
98N/ACONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_32)
98N/ACONFIGURE_OPTIONS += --localstatedir=/var
606N/ACONFIGURE_OPTIONS += --without-localdirs
98N/ACONFIGURE_OPTIONS += --with-zenmap
98N/ACONFIGURE_OPTIONS += --with-openssl
761N/ACONFIGURE_OPTIONS += --with-libpcap
559N/ACONFIGURE_OPTIONS += --with-libpcre
559N/ACONFIGURE_OPTIONS += --with-liblua
761N/ACONFIGURE_OPTIONS += --with-ncat
761N/ACONFIGURE_OPTIONS += --with-ndiff
970N/A
970N/A# pkgdepend doesn't like the first line of a Python script to be:
970N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
98N/ACOMPONENT_POST_INSTALL_ACTION += \
1308N/A $(GSED) -i -e 's?env python?python2.6?' \
1308N/A $(PROTOUSRBINDIR)/uninstall_zenmap
1308N/A
1308N/AASLR_MODE = $(ASLR_ENABLE)
1308N/A
1308N/A# common targets
1308N/Abuild: $(BUILD_32)
1308N/A
install: $(INSTALL_32)
test: $(NO_TESTS)
REQUIRED_PACKAGES += library/pcre
REQUIRED_PACKAGES += library/python-2/pygobject-26
REQUIRED_PACKAGES += library/python-2/pygtk2-26
REQUIRED_PACKAGES += library/python-2/pygtk2-27
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += runtime/lua
REQUIRED_PACKAGES += runtime/python-26
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