Makefile revision 4561
369N/A
2948N/A# CDDL HEADER START
369N/A#
369N/A# The contents of this file are subject to the terms of the
369N/A# Common Development and Distribution License (the "License").
369N/A# You may not use this file except in compliance with the License.
369N/A#
369N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
369N/A# or http://www.opensolaris.org/os/licensing.
369N/A# See the License for the specific language governing permissions
369N/A# and limitations under the License.
369N/A#
369N/A# When distributing Covered Code, include this CDDL HEADER in each
369N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
369N/A# If applicable, add the following below this CDDL HEADER, with the
369N/A# fields enclosed by brackets "[]" replaced with your own identifying
369N/A# information: Portions Copyright [yyyy] [name of copyright owner]
369N/A#
369N/A# CDDL HEADER END
369N/A#
369N/A
369N/A#
369N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
369N/A#
369N/A
369N/A# Can't use the Studio compilers as they don't support the GNU
369N/A# __attribute__ extension
369N/ACOMPILER = gcc3
369N/A
369N/Ainclude ../../make-rules/shared-macros.mk
369N/A
369N/ACOMPONENT_NAME= nmap
369N/ACOMPONENT_VERSION= 6.25
369N/ACOMPONENT_PROJECT_URL= http://nmap.org/
369N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
369N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
369N/ACOMPONENT_ARCHIVE_HASH= \
369N/A sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
369N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
369N/ACOMPONENT_BUGDB= utility/nmap
369N/A
369N/ATPNO= 9217
369N/A
369N/Ainclude $(WS_MAKE_RULES)/prep.mk
369N/A
369N/A# pyobject-27and pygtk2-27 are only available on S11.3 and later
369N/Aifeq ($(BUILD_TYPE), evaluation)
369N/ABUILD_32=
369N/AINSTALL_32=
369N/APUBLISH_STAMP=
369N/Aendif
736N/A
736N/Ainclude $(WS_MAKE_RULES)/configure.mk
2256N/Ainclude $(WS_MAKE_RULES)/ips.mk
369N/A
369N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
369N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
369N/A
2948N/APYTHON_VERSION = 2.7
2948N/A
369N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
369N/A
369N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
369N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
1998N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
1998N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
736N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
369N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
1998N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))"
369N/ACONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_32)
369N/ACONFIGURE_OPTIONS += --localstatedir=/var
1998N/ACONFIGURE_OPTIONS += --without-localdirs
1998N/ACONFIGURE_OPTIONS += --with-zenmap
1998N/ACONFIGURE_OPTIONS += --with-openssl
369N/ACONFIGURE_OPTIONS += --with-libpcap
1998N/ACONFIGURE_OPTIONS += --with-libpcre
1998N/ACONFIGURE_OPTIONS += --with-liblua
1998N/ACONFIGURE_OPTIONS += --with-ncat
1998N/ACONFIGURE_OPTIONS += --with-ndiff
1998N/A
1998N/A# pkgdepend doesn't like the first line of a Python script to be:
1998N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
1998N/ACOMPONENT_POST_INSTALL_ACTION += \
1998N/A $(GSED) -i -e "s?env python?python$(PYTHON_VERSION)?" \
1998N/A $(PROTOUSRBINDIR)/uninstall_zenmap
1998N/A
1998N/AASLR_MODE = $(ASLR_ENABLE)
1998N/A
1998N/A# common targets
1998N/Abuild: $(BUILD_32)
1998N/A
909N/Ainstall: $(INSTALL_32)
369N/A
369N/Atest: $(NO_TESTS)
369N/A
369N/AREQUIRED_PACKAGES += library/pcre
369N/AREQUIRED_PACKAGES += library/python/pygobject-27
736N/AREQUIRED_PACKAGES += library/python/pygtk2-27
369N/AREQUIRED_PACKAGES += library/security/openssl
369N/AREQUIRED_PACKAGES += runtime/lua
369N/AREQUIRED_PACKAGES += runtime/python-27
369N/AREQUIRED_PACKAGES += system/library
369N/AREQUIRED_PACKAGES += system/library/gcc-3-runtime
909N/AREQUIRED_PACKAGES += system/library/libpcap
369N/AREQUIRED_PACKAGES += system/library/math
369N/A