Makefile revision 6695
2328307a8f353078dbbebf242007271153e18cd1Bob Halley# CDDL HEADER START
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# The contents of this file are subject to the terms of the
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Common Development and Distribution License (the "License").
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# You may not use this file except in compliance with the License.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# See the License for the specific language governing permissions
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# and limitations under the License.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# If applicable, add the following below this CDDL HEADER, with the
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff# CDDL HEADER END
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffCOMPONENT_PROJECT_URL= http://www.wireshark.org/
fb3dcb0b607175a5fdae2d4928fb4d5321a0132fMichael Graff sha256:0ce0241330828973f5b4efee422a3760cab8ce0b41e7721c4b9fd185be1bb10b
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# Depends on newer cairo, which cannot be updated in S11.
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# Micro version for easy libraries packaging
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# We don't have automake 1.14 yet. Thus need to reconfigure with older one.
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffCOMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh );
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# Look for gnutls-3 pkg-config & libraries before the defaults
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffPKG_CONFIG_PATH.64 := $(PKG_CONFIG_PATH.64)/gnutls-3:$(PKG_CONFIG_PATH.64)
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff PATH="$(USRDIR)/perl5/bin:$(GNUBIN)/$(MACH64):$(GNUBIN):$(USRBIN.64):$(PATH)"
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff# create successfully IPS package of different Wireshark branch than is
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff# installed on build system without dependency errors.
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff# During install libtool will relink libwireshark library so that it
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff# requires libwiretap version from system and not from proto area.
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff# This workaround is only needed when CBE contains older libwiretap.
03b062e71a771e8f63c0fbc2b1d04f8962644e42Michael GraffLIBWIRESHARK=$(PROTOUSRLIBDIR64)/libwireshark.so.6.1.$(MICRO_VERSION)
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff (WTAP=`$(ELFEDIT) -e dyn:dump $(LIBWIRESHARK) | grep 'libwiretap' | awk '{print $$4}'` \
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff ; $(ELFEDIT) -e "dyn:value -s -with-valstr $$WTAP libwiretap.so.5" $(LIBWIRESHARK) )
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffREQUIRED_PACKAGES += library/security/libgpg-error
7f9e7076849ac56b03c6f578c22a47c81aa5d171Michael GraffREQUIRED_PACKAGES += service/security/kerberos-5