Makefile revision 4236
280a8a0544b4aeb52414d20e8c6e6c5b1108562eTinderbox User
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt# CDDL HEADER START
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# The contents of this file are subject to the terms of the
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# Common Development and Distribution License (the "License").
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User# You may not use this file except in compliance with the License.
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews#
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# or http://www.opensolaris.org/os/licensing.
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# See the License for the specific language governing permissions
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# and limitations under the License.
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt#
0726d872f6f36901ea09321df57084614e5bb6faTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# If applicable, add the following below this CDDL HEADER, with the
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# CDDL HEADER END
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
2b7254075b883d70852a2757210793603085a0f1Tinderbox User
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Can't use the Studio compilers as they don't support the GNU
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# __attribute__ extension
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPILER = gcc3
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/shared-macros.mk
415d630b6309922caee8469384a6fab75cf05032Mark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_NAME= nmap
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCOMPONENT_VERSION= 6.25
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCOMPONENT_PROJECT_URL= http://nmap.org/
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCOMPONENT_BUGDB= utility/nmap
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsTPNO= 9217
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrewsinclude $(WS_MAKE_RULES)/configure.mk
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox Userinclude $(WS_MAKE_RULES)/ips.mk
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserCOMPONENT_PRE_CONFIGURE_ACTION = \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews ($(CLONEY) $(SOURCE_DIR) $(@D))
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsPYTHON_VERSION = 2.7
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntPKG_MACROS += PYVER=$(PYTHON_VERSION)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += CXX="$(CXX)"
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_32)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += --localstatedir=/var
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += --without-localdirs
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --with-zenmap
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCONFIGURE_OPTIONS += --with-openssl
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCONFIGURE_OPTIONS += --with-libpcap
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCONFIGURE_OPTIONS += --with-libpcre
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --with-liblua
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --with-ncat
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --with-ndiff
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# pkgdepend doesn't like the first line of a Python script to be:
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_POST_INSTALL_ACTION += \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews $(GSED) -i -e "s?env python?python$(PYTHON_VERSION)?" \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(PROTOUSRBINDIR)/uninstall_zenmap
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsASLR_MODE = $(ASLR_ENABLE)
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# common targets
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsbuild: $(BUILD_32)
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox Userinstall: $(INSTALL_32)
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews
b378314925e78f21853a98cec924788ce1822c6cTinderbox Usertest: $(NO_TESTS)
ebe53509ca55a141131c104b6d722236b606e0efTinderbox User
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark AndrewsREQUIRED_PACKAGES += library/pcre
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsREQUIRED_PACKAGES += library/python/pygobject-27
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntREQUIRED_PACKAGES += library/python/pygtk2-27
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsREQUIRED_PACKAGES += library/security/openssl
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsREQUIRED_PACKAGES += runtime/lua
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserREQUIRED_PACKAGES += runtime/python-27
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntREQUIRED_PACKAGES += system/library
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox UserREQUIRED_PACKAGES += system/library/gcc-3-runtime
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox UserREQUIRED_PACKAGES += system/library/libpcap
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += system/library/math
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User