Makefile revision 3878
10139N/A#
10139N/A# CDDL HEADER START
10139N/A#
10139N/A# The contents of this file are subject to the terms of the
10139N/A# Common Development and Distribution License (the "License").
10139N/A# You may not use this file except in compliance with the License.
10139N/A#
10139N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10139N/A# or http://www.opensolaris.org/os/licensing.
10139N/A# See the License for the specific language governing permissions
10139N/A# and limitations under the License.
10139N/A#
10139N/A# When distributing Covered Code, include this CDDL HEADER in each
10139N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10139N/A# If applicable, add the following below this CDDL HEADER, with the
10139N/A# fields enclosed by brackets "[]" replaced with your own identifying
10139N/A# information: Portions Copyright [yyyy] [name of copyright owner]
10139N/A#
10139N/A# CDDL HEADER END
10139N/A#
10139N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
10139N/A#
10139N/Ainclude ../../make-rules/shared-macros.mk
10139N/A
10139N/ACOMPONENT_NAME= wireshark
10139N/ACOMPONENT_VERSION= 1.12.3
10139N/ACOMPONENT_PROJECT_URL= http://www.wireshark.org/
10139N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
10139N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
10139N/ACOMPONENT_ARCHIVE_HASH= \
10139N/A sha256:69950b9dcb1a630982b5f680554d73d27ee0dc856fc6aeef88c8d04eb5ac33ea
10139N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
10139N/ACOMPONENT_BUGDB= utility/wireshark
10139N/A
10139N/ATPNO= 21482
10139N/A
10139N/Ainclude $(WS_MAKE_RULES)/prep.mk
10139N/Ainclude $(WS_MAKE_RULES)/configure.mk
10139N/Ainclude $(WS_MAKE_RULES)/ips.mk
10139N/A
10139N/A# Micro version for easy libraries packaging
10139N/AMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
10139N/APKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
10139N/A
10139N/A# Enable ASLR for this component
10139N/AASLR_MODE = $(ASLR_ENABLE)
10139N/A
10139N/APATCH_LEVEL=0
10139N/A
10139N/A# We don't have automake 1.14 yet. Thus need to reconfigure with older one.
10139N/ACOMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh );
10139N/A
10139N/ACONFIGURE_OPTIONS += --bindir=/usr/sbin
10139N/ACONFIGURE_OPTIONS += --disable-usr-local
10139N/ACONFIGURE_OPTIONS += --disable-randpkt
10139N/ACONFIGURE_OPTIONS += --disable-dftest
10139N/ACONFIGURE_OPTIONS += --with-krb5
10139N/ACONFIGURE_OPTIONS += --with-qt=no
10139N/ACONFIGURE_OPTIONS += --with-gtk2=yes
13931N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
10139N/ACONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
10139N/A
10139N/A# Use the 64-bit versions of pkg-config files
10139N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
10139N/A
10139N/A# Workaround for Bug 19143303
10139N/Astudio_OPT = -xO3
10139N/A
13570N/A# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
10139N/A# create successfully IPS package of different Wireshark branch than is
10139N/A# installed on build system without dependency errors.
10139N/ACOMPONENT_POST_CONFIGURE_ACTION = \
15942N/A (cd $(@D); \
14177N/A sed -e 's,-R/usr/lib/$(MACH64),,' \
17597N/A -e 's,-R/usr/lib,,' \
17392N/A -e 's,-R\$$libdir,,' \
15942N/A config.status > config.status.new; \
11965N/A mv config.status.new config.status; \
16075N/A chmod 755 config.status; \
15942N/A ./config.status)
15942N/A
15942N/A# During install libtool will relink libwireshark library so that it
10139N/A# requires libwiretap version from system and not from proto area.
10139N/A# This shall be removed once CBE is updated to contain Wireshark 1.12
15942N/A# (see Bug 20627618).
10139N/ACOMPONENT_POST_INSTALL_ACTION = \
10139N/A (/usr/bin/elfdump -d $(PROTO_DIR)/usr/lib/$(MACH64)/libwireshark.so.5.0.3 | \
15942N/A grep 'libwiretap.so.3' && /usr/bin/elfedit \
15942N/A -e 'dyn:value -s -with-valstr libwiretap.so.3 libwiretap.so.4' \
15942N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libwireshark.so.5.0.3)
15942N/A
11933N/Aconfigure: $(CONFIGURE_64)
10139N/A
10139N/Abuild: $(BUILD_64)
15288N/A
10139N/Ainstall: $(INSTALL_64)
10139N/A
13760N/Atest: $(NO_TESTS)
10139N/A
10139N/AREQUIRED_PACKAGES += developer/lexer/flex
16309N/AREQUIRED_PACKAGES += developer/parser/bison
16309N/AREQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common
16309N/AREQUIRED_PACKAGES += library/desktop/cairo
16309N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
16309N/AREQUIRED_PACKAGES += library/desktop/gtk2
16309N/AREQUIRED_PACKAGES += library/desktop/pango
16309N/AREQUIRED_PACKAGES += library/glib2
16309N/AREQUIRED_PACKAGES += library/gnutls
10139N/AREQUIRED_PACKAGES += library/security/libgpg-error
10139N/AREQUIRED_PACKAGES += library/zlib
15942N/AREQUIRED_PACKAGES += runtime/lua
10139N/AREQUIRED_PACKAGES += service/security/kerberos-5
10139N/AREQUIRED_PACKAGES += system/library
10139N/AREQUIRED_PACKAGES += system/library/libpcap
10139N/AREQUIRED_PACKAGES += system/library/math
10139N/AREQUIRED_PACKAGES += system/library/security/libgcrypt
10139N/AREQUIRED_PACKAGES += x11/library/libx11
10139N/AREQUIRED_PACKAGES += x11/library/libxcursor
10139N/A