Makefile revision 1792
4f4ba013cd866a655a896f39f944674d19ad1387Tilo Mitra#
48fdc5265a40d40c8b9be05b37a1855a6cae49c6Eric Ferraiuolo# CDDL HEADER START
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra#
4f4ba013cd866a655a896f39f944674d19ad1387Tilo Mitra# The contents of this file are subject to the terms of the
2cbd03cf7d25ed7f8942ecaf21a4b58d7f41ff11Tilo Mitra# Common Development and Distribution License (the "License").
4f4ba013cd866a655a896f39f944674d19ad1387Tilo Mitra# You may not use this file except in compliance with the License.
4f4ba013cd866a655a896f39f944674d19ad1387Tilo Mitra#
4f4ba013cd866a655a896f39f944674d19ad1387Tilo Mitra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4f4ba013cd866a655a896f39f944674d19ad1387Tilo Mitra# or http://www.opensolaris.org/os/licensing.
4f4ba013cd866a655a896f39f944674d19ad1387Tilo Mitra# See the License for the specific language governing permissions
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitra# and limitations under the License.
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitra#
c714ee41455a161bf18197074d7e205b9d03b377Tilo Mitra# When distributing Covered Code, include this CDDL HEADER in each
c714ee41455a161bf18197074d7e205b9d03b377Tilo Mitra# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d9311c9547eb9d58cdf0b0453313755cb37c4155Tilo Mitra# If applicable, add the following below this CDDL HEADER, with the
897547688bb5907542df4114fc4a55979ad7ec12Tilo Mitra# fields enclosed by brackets "[]" replaced with your own identifying
897547688bb5907542df4114fc4a55979ad7ec12Tilo Mitra# information: Portions Copyright [yyyy] [name of copyright owner]
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitra#
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitra# CDDL HEADER END
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitra#
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitra# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitra#
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitrainclude ../../make-rules/shared-macros.mk
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo Mitra
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo MitraCOMPONENT_NAME= wireshark
853244a9af0549d584b80ac65d4fcb92de7c58bcTilo MitraCOMPONENT_VERSION= 1.10.0
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCOMPONENT_PROJECT_URL= http://www.wireshark.org/
2cbd03cf7d25ed7f8942ecaf21a4b58d7f41ff11Tilo MitraCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2cbd03cf7d25ed7f8942ecaf21a4b58d7f41ff11Tilo MitraCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCOMPONENT_ARCHIVE_HASH= \
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra sha256:1f4b377ba6284a51797bcc437aa2918bfaeb5d30908cd6194bd09f7054c65add
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCOMPONENT_BUGDB= utility/wireshark
60e5271418c47637445291f3120af2a30d144471Tilo Mitra
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitrainclude ../../make-rules/prep.mk
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitrainclude ../../make-rules/configure.mk
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitrainclude ../../make-rules/ips.mk
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra# Enable ASLR for this component
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraASLR_MODE = $(ASLR_ENABLE)
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraPATCH_LEVEL=0
60e5271418c47637445291f3120af2a30d144471Tilo Mitra
60e5271418c47637445291f3120af2a30d144471Tilo MitraCONFIGURE_OPTIONS += --bindir=/usr/sbin
60e5271418c47637445291f3120af2a30d144471Tilo MitraCONFIGURE_OPTIONS += --disable-usr-local
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCONFIGURE_OPTIONS += --disable-randpkt
48fdc5265a40d40c8b9be05b37a1855a6cae49c6Eric FerraiuoloCONFIGURE_OPTIONS += --disable-dftest
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCONFIGURE_OPTIONS += --with-krb5
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
10d8bafc5c24f3a4285cf6060a1935ba5cfc4b85Luke SmithCONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra# Use the 64-bit versions of pkg-config files
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
60e5271418c47637445291f3120af2a30d144471Tilo Mitra
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra# Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect.
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraLD_B_DIRECT=
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra# create successfully IPS package of different Wireshark branch than is
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra# installed on build system without dependency errors.
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo MitraCOMPONENT_POST_CONFIGURE_ACTION = \
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra (cd $(@D); \
2cbd03cf7d25ed7f8942ecaf21a4b58d7f41ff11Tilo Mitra sed -e 's,-R/usr/lib/$(MACH64),,' \
2cbd03cf7d25ed7f8942ecaf21a4b58d7f41ff11Tilo Mitra -e 's,-R/usr/lib,,' \
2cbd03cf7d25ed7f8942ecaf21a4b58d7f41ff11Tilo Mitra -e 's,-R\$$libdir,,' \
2cbd03cf7d25ed7f8942ecaf21a4b58d7f41ff11Tilo Mitra config.status > config.status.new; \
2cbd03cf7d25ed7f8942ecaf21a4b58d7f41ff11Tilo Mitra mv config.status.new config.status; \
c3db5f41661b8fee6566b38dbffeabe56e4dce12Tilo Mitra chmod 755 config.status; \
60e5271418c47637445291f3120af2a30d144471Tilo Mitra ./config.status)
48fdc5265a40d40c8b9be05b37a1855a6cae49c6Eric Ferraiuolo
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric Ferraiuolobuild: $(BUILD_64)
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric Ferraiuolo
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric Ferraiuoloinstall: $(INSTALL_64)
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric Ferraiuolo
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric Ferraiuolotest: $(NO_TESTS)
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric Ferraiuolo
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric FerraiuoloBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric Ferraiuolo
08576e37cf5c5f89dfba08b7f4fb0b63c7cc3a42Eric Ferraiuoloinclude ../../make-rules/depend.mk
60e5271418c47637445291f3120af2a30d144471Tilo Mitra