Makefile revision 7003
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# CDDL HEADER START
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# The contents of this file are subject to the terms of the
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Common Development and Distribution License (the "License").
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# You may not use this file except in compliance with the License.
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_PROJECT_URL= http://www.wireshark.org/
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington sha256:a6847e741efcba6cb9d92d464d4219917bee3ad0b8f5b0f80d4388ad2f3f1104
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Depends on newer cairo, which cannot be updated in S11.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Micro version for easy libraries packaging
3f6174bffe227be44e241a29d186add00c032ff6Mark AndrewsMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Look for gnutls-3 pkg-config & libraries before the defaults
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsPKG_CONFIG_PATH.64 := $(PKG_CONFIG_PATH.64)/gnutls-3:$(PKG_CONFIG_PATH.64)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Reported via bug 12923
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_BINDIR.64= $(CONFIGURE_SBINDIR.64)
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews PATH="$(USRDIR)/perl5/bin:$(GNUBIN)/$(MACH64):$(GNUBIN):$(USRBIN.64):$(PATH)"
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# create successfully IPS package of different Wireshark branch than is
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# installed on build system without dependency errors.
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews# During install libtool will relink libwireshark library so that it
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark Andrews# requires libwiretap version from system and not from proto area.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# This workaround is only needed when CBE contains older libwiretap.
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark AndrewsLIBWIRESHARK=$(PROTOUSRLIBDIR64)/libwireshark.so.8.0.$(MICRO_VERSION)
dd9ad704c3800e3ab07ede8595871eac79984871Mark Andrews (WTAP=`$(ELFEDIT) -e dyn:dump $(LIBWIRESHARK) | grep 'libwiretap' | awk '{print $$4}'` \
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews ; $(ELFEDIT) -e "dyn:value -s -with-valstr $$WTAP libwiretap.so.6" $(LIBWIRESHARK) )
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark AndrewsREQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += library/security/libgpg-error
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += service/security/kerberos-5