Makefile revision 5230
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#
5230N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
124N/A#
124N/Ainclude ../../make-rules/shared-macros.mk
124N/A
124N/ACOMPONENT_NAME= wireshark
5230N/ACOMPONENT_VERSION= 1.12.9
618N/ACOMPONENT_PROJECT_URL= http://www.wireshark.org/
124N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
124N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
5230N/A sha256:fca9c8365a3839f2411e67dddbfd17e87e906dfeb1cb9f91727013e1f2179e80
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/wireshark
124N/A
5230N/ATPNO= 26265
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.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
1776N/A# Enable ASLR for this component
1776N/AASLR_MODE = $(ASLR_ENABLE)
1776N/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
124N/ACONFIGURE_OPTIONS += --bindir=/usr/sbin
124N/ACONFIGURE_OPTIONS += --disable-usr-local
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
124N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
124N/ACONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
5111N/ACONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig/gnutls-3
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
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
1776N/Abuild: $(BUILD_64)
124N/A
1776N/Ainstall: $(INSTALL_64)
124N/A
181N/Atest: $(NO_TESTS)
124N/A
4337N/Asystem-test: $(NO_TESTS)
4337N/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
3817N/AREQUIRED_PACKAGES += service/security/kerberos-5
3817N/AREQUIRED_PACKAGES += system/library
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