Makefile revision 6695
124N/A#
124N/A# CDDL HEADER START
124N/A#
124N/A# The contents of this file are subject to the terms of the
124N/A# Common Development and Distribution License (the "License").
124N/A# You may not use this file except in compliance with the License.
124N/A#
124N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
124N/A# or http://www.opensolaris.org/os/licensing.
124N/A# See the License for the specific language governing permissions
124N/A# and limitations under the License.
124N/A#
124N/A# When distributing Covered Code, include this CDDL HEADER in each
124N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
124N/A# If applicable, add the following below this CDDL HEADER, with the
124N/A# fields enclosed by brackets "[]" replaced with your own identifying
124N/A# information: Portions Copyright [yyyy] [name of copyright owner]
124N/A#
124N/A# CDDL HEADER END
124N/A#
5680N/A
5680N/A#
5230N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
124N/A#
5680N/ABUILD_BITS= 64
124N/Ainclude ../../make-rules/shared-macros.mk
124N/A
124N/ACOMPONENT_NAME= wireshark
6544N/ACOMPONENT_VERSION= 2.0.5
618N/ACOMPONENT_PROJECT_URL= http://www.wireshark.org/
124N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
6544N/A sha256:0ce0241330828973f5b4efee422a3760cab8ce0b41e7721c4b9fd185be1bb10b
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
124N/A
6544N/ATPNO= 30387
5648N/A
5680N/ATEST_TARGET= $(NO_TESTS)
6695N/A
6695N/A# Depends on newer cairo, which cannot be updated in S11.
6695N/Ainclude $(WS_MAKE_RULES)/no-evaluation.mk
6695N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
124N/A
2960N/A# Micro version for easy libraries packaging
2960N/AMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
2960N/APKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
2960N/A
124N/APATCH_LEVEL=0
124N/A
3069N/A# We don't have automake 1.14 yet. Thus need to reconfigure with older one.
3069N/ACOMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh );
3069N/A
5935N/A# Look for gnutls-3 pkg-config & libraries before the defaults
5935N/APKG_CONFIG_PATH.64 := $(PKG_CONFIG_PATH.64)/gnutls-3:$(PKG_CONFIG_PATH.64)
5935N/ALDFLAGS += -L$(USRLIBDIR64)/gnutls-3
5935N/A
5680N/ACONFIGURE_BINDIR.64= $(CONFIGURE_SBINDIR.64)
5680N/A
124N/ACONFIGURE_OPTIONS += --disable-usr-local
5617N/ACONFIGURE_OPTIONS += --disable-androiddump
124N/ACONFIGURE_OPTIONS += --disable-randpkt
124N/ACONFIGURE_OPTIONS += --disable-dftest
124N/ACONFIGURE_OPTIONS += --with-krb5
3878N/ACONFIGURE_OPTIONS += --with-qt=no
3878N/ACONFIGURE_OPTIONS += --with-gtk2=yes
5935N/ACONFIGURE_OPTIONS += \
5935N/A PATH="$(USRDIR)/perl5/bin:$(GNUBIN)/$(MACH64):$(GNUBIN):$(USRBIN.64):$(PATH)"
124N/A
765N/A# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
765N/A# create successfully IPS package of different Wireshark branch than is
765N/A# installed on build system without dependency errors.
765N/ACOMPONENT_POST_CONFIGURE_ACTION = \
765N/A (cd $(@D); \
1792N/A sed -e 's,-R/usr/lib/$(MACH64),,' \
1792N/A -e 's,-R/usr/lib,,' \
1792N/A -e 's,-R\$$libdir,,' \
765N/A config.status > config.status.new; \
765N/A mv config.status.new config.status; \
765N/A chmod 755 config.status; \
765N/A ./config.status)
765N/A
6184N/A# During install libtool will relink libwireshark library so that it
6184N/A# requires libwiretap version from system and not from proto area.
6184N/A# This workaround is only needed when CBE contains older libwiretap.
6184N/ALIBWIRESHARK=$(PROTOUSRLIBDIR64)/libwireshark.so.6.1.$(MICRO_VERSION)
6184N/ACOMPONENT_POST_INSTALL_ACTION = \
6184N/A (WTAP=`$(ELFEDIT) -e dyn:dump $(LIBWIRESHARK) | grep 'libwiretap' | awk '{print $$4}'` \
6184N/A ; $(ELFEDIT) -e "dyn:value -s -with-valstr $$WTAP libwiretap.so.5" $(LIBWIRESHARK) )
6184N/A
3817N/AREQUIRED_PACKAGES += developer/lexer/flex
3817N/AREQUIRED_PACKAGES += developer/parser/bison
3817N/AREQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common
3817N/AREQUIRED_PACKAGES += library/desktop/cairo
3817N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
3817N/AREQUIRED_PACKAGES += library/desktop/gtk2
3817N/AREQUIRED_PACKAGES += library/desktop/pango
3817N/AREQUIRED_PACKAGES += library/glib2
5111N/AREQUIRED_PACKAGES += library/gnutls-3
3817N/AREQUIRED_PACKAGES += library/security/libgpg-error
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += runtime/lua
6067N/AREQUIRED_PACKAGES += security/kerberos-5
6067N/AREQUIRED_PACKAGES += service/security/kerberos-5
3817N/AREQUIRED_PACKAGES += system/library/libpcap
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += system/library/security/libgcrypt
3817N/AREQUIRED_PACKAGES += x11/library/libx11
3817N/AREQUIRED_PACKAGES += x11/library/libxcursor