Makefile revision 146
86N/A
86N/A# CDDL HEADER START
86N/A#
86N/A# The contents of this file are subject to the terms of the
86N/A# Common Development and Distribution License (the "License").
86N/A# You may not use this file except in compliance with the License.
86N/A#
86N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
86N/A# or http://www.opensolaris.org/os/licensing.
86N/A# See the License for the specific language governing permissions
86N/A# and limitations under the License.
86N/A#
86N/A# When distributing Covered Code, include this CDDL HEADER in each
86N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
86N/A# If applicable, add the following below this CDDL HEADER, with the
86N/A# fields enclosed by brackets "[]" replaced with your own identifying
86N/A# information: Portions Copyright [yyyy] [name of copyright owner]
86N/A#
86N/A# CDDL HEADER END
86N/A#
86N/A
86N/A#
86N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
86N/A#
86N/A
86N/Ainclude ../../make-rules/shared-macros.mk
86N/A
86N/ACOMPONENT_NAME= nmap
86N/ACOMPONENT_VERSION= 5.21
86N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
86N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
86N/ACOMPONENT_ARCHIVE_HASH= sha1:ce212ce765f842b16059456cf0c9d9cfbbce25d6
86N/ACOMPONENT_ARCHIVE_URL= http://nmap.org/dist/$(COMPONENT_ARCHIVE)
86N/A
86N/Ainclude ../../make-rules/prep.mk
86N/Ainclude ../../make-rules/configure.mk
86N/Ainclude ../../make-rules/ips.mk
86N/A
86N/ACOMPILER = gcc
86N/A
86N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
86N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
86N/A
86N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
86N/ACONFIGURE_OPTIONS += CXX="$(CCC)"
86N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CCFLAGS)"
86N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
86N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
181N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON.32)"
86N/ACONFIGURE_OPTIONS += --disable-shared
88N/ACONFIGURE_OPTIONS += --enable-static
88N/ACONFIGURE_OPTIONS += --disable-libtool-lock
88N/ACONFIGURE_OPTIONS += --localstatedir=/var
86N/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
CONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_LIB)
PKG_PROTO_DIRS += $(SOURCE_DIR)
PKG_PROTO_DIRS += $(COMPONENT_DIR)
include ../../make-rules/shared-targets.mk
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
sed -f oracleman-stability $(COMPONENT_SRC)/docs/nmap.1 \
> $(PROTOUSRSHAREMAN1DIR)/nmap.1
sed -f oracleman-stability $(COMPONENT_SRC)/docs/zenmap.1 \
> $(PROTOUSRSHAREMAN1DIR)/zenmap.1
sed -f oracleman-stability $(COMPONENT_SRC)/ncat/docs/ncat.1 \
> $(PROTOUSRSHAREMAN1DIR)/ncat.1
sed -f oracleman-stability $(COMPONENT_SRC)/ndiff/docs/ndiff.1 \
> $(PROTOUSRSHAREMAN1DIR)/ndiff.1
test:
@echo "no tests available"
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk