Makefile revision 2931
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# or http://www.opensolaris.org/os/licensing.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/shared-macros.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_NAME= wireshark
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_VERSION= 1.10.7
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_PROJECT_URL= http://www.wireshark.org/
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_ARCHIVE_HASH= \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes sha256:d98d263b31dd904a0337ba2db6d1a80bb495b4ac419a304f0f25c551d50cafc6
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_BUGDB= utility/wireshark
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesTPNO= 17414
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/prep.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/configure.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/ips.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Enable ASLR for this component
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesASLR_MODE = $(ASLR_ENABLE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPATCH_LEVEL=0
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += --bindir=/usr/sbin
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += --disable-usr-local
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += --disable-randpkt
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += --disable-dftest
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += --with-krb5
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Use the 64-bit versions of pkg-config files
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLD_B_DIRECT=
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# create successfully IPS package of different Wireshark branch than is
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# installed on build system without dependency errors.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_POST_CONFIGURE_ACTION = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes (cd $(@D); \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sed -e 's,-R/usr/lib/$(MACH64),,' \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -e 's,-R/usr/lib,,' \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -e 's,-R\$$libdir,,' \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes config.status > config.status.new; \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes mv config.status.new config.status; \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes chmod 755 config.status; \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes ./config.status)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesbuild: $(BUILD_64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: $(INSTALL_64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholestest: $(NO_TESTS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/depend.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes