Makefile revision 6951
561N/A
561N/A# CDDL HEADER START
943N/A#
561N/A# The contents of this file are subject to the terms of the
561N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/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#
561N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
561N/A#
561N/ABUILD_BITS= 64
561N/A# Can't use the Studio compilers as they don't support the GNU
561N/A# __attribute__ extension
561N/ACOMPILER= gcc
970N/Ainclude ../../make-rules/shared-macros.mk
970N/A
970N/ACOMPONENT_NAME= nmap
970N/ACOMPONENT_VERSION= 7.11
970N/ACOMPONENT_PROJECT_URL= http://nmap.org/
970N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
970N/ACOMPONENT_ARCHIVE_HASH= \
970N/A sha256:dfc95db3a8ee4c56650dbaa5a1a1e989b2963de8faea2531c21e6fd6e0bccc2a
561N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
837N/A
837N/ATPNO= 27577
911N/A
911N/ATEST_TARGET= $(NO_TESTS)
911N/Ainclude $(WS_MAKE_RULES)/common.mk
911N/A
837N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
837N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
837N/A
561N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
965N/A
965N/Aifeq ($(OS_VERSION),5.11)
965N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
965N/Aendif
965N/A
561N/A# Fix 64-bit linking via compiler.
561N/ALDFLAGS += $(CC_BITS)
CONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))"
CONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_64)
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
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/python$(PYTHON_VERSION)'
COMPONENT_POST_INSTALL_ACTION += \
$(GSED) -i -e "s?env python?python$(PYTHON_VERSION)?" \
$(PROTOUSRBINDIR)/uninstall_zenmap
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/gcc/gcc-c-runtime
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
REQUIRED_PACKAGES += system/library/libpcap
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/network/bpf