Makefile revision 3817
1029N/A#
1029N/A# CDDL HEADER START
1123N/A#
1029N/A# The contents of this file are subject to the terms of the
1549N/A# Common Development and Distribution License (the "License").
1029N/A# You may not use this file except in compliance with the License.
1029N/A#
1123N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1123N/A# or http://www.opensolaris.org/os/licensing.
1123N/A# See the License for the specific language governing permissions
1123N/A# and limitations under the License.
1123N/A#
1123N/A# When distributing Covered Code, include this CDDL HEADER in each
1123N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1123N/A# If applicable, add the following below this CDDL HEADER, with the
1123N/A# fields enclosed by brackets "[]" replaced with your own identifying
1123N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1123N/A#
1123N/A# CDDL HEADER END
1123N/A#
1123N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1123N/A#
1123N/Ainclude ../../make-rules/shared-macros.mk
1123N/A
1029N/ACOMPONENT_NAME= wireshark
1029N/ACOMPONENT_VERSION= 1.10.12
1029N/ACOMPONENT_PROJECT_URL= http://www.wireshark.org/
1029N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1029N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
1356N/ACOMPONENT_ARCHIVE_HASH= \
1356N/A sha256:e8fe3993b60a93106fad3b186ab8adb7a88ef06549a4b2bc2755db84725720ae
1356N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
1356N/ACOMPONENT_BUGDB= utility/wireshark
1356N/A
1356N/ATPNO= 21136
1356N/A
1356N/Ainclude $(WS_MAKE_RULES)/prep.mk
1029N/Ainclude $(WS_MAKE_RULES)/configure.mk
1549N/Ainclude $(WS_MAKE_RULES)/ips.mk
1029N/A
1029N/A# Micro version for easy libraries packaging
1549N/AMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
1549N/APKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
1549N/A
1029N/A# Enable ASLR for this component
1029N/AASLR_MODE = $(ASLR_ENABLE)
1029N/A
1029N/APATCH_LEVEL=0
1029N/A
1123N/A# We don't have automake 1.14 yet. Thus need to reconfigure with older one.
1123N/ACOMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh );
1356N/A
1029N/ACONFIGURE_OPTIONS += --bindir=/usr/sbin
1029N/ACONFIGURE_OPTIONS += --disable-usr-local
1549N/ACONFIGURE_OPTIONS += --disable-randpkt
1549N/ACONFIGURE_OPTIONS += --disable-dftest
1029N/ACONFIGURE_OPTIONS += --with-krb5
1029N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1029N/ACONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
1029N/A
1029N/A# Use the 64-bit versions of pkg-config files
1029N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
1029N/A
# Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect.
LD_B_DIRECT=
# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
# create successfully IPS package of different Wireshark branch than is
# installed on build system without dependency errors.
COMPONENT_POST_CONFIGURE_ACTION = \
(cd $(@D); \
sed -e 's,-R/usr/lib/$(MACH64),,' \
-e 's,-R/usr/lib,,' \
-e 's,-R\$$libdir,,' \
config.status > config.status.new; \
mv config.status.new config.status; \
chmod 755 config.status; \
./config.status)
configure: $(CONFIGURE_64)
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(NO_TESTS)
REQUIRED_PACKAGES += developer/lexer/flex
REQUIRED_PACKAGES += developer/parser/bison
REQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common
REQUIRED_PACKAGES += library/desktop/cairo
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
REQUIRED_PACKAGES += library/desktop/gtk2
REQUIRED_PACKAGES += library/desktop/pango
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += library/gnutls
REQUIRED_PACKAGES += library/security/libgpg-error
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += runtime/lua
REQUIRED_PACKAGES += service/security/kerberos-5
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/libpcap
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/security/libgcrypt
REQUIRED_PACKAGES += x11/library/libx11
REQUIRED_PACKAGES += x11/library/libxcursor