Makefile revision 7003
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# CDDL HEADER START
04428429c4e689333e3ef8d19a2debeb20d4d15dMark Andrews#
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# The contents of this file are subject to the terms of the
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Common Development and Distribution License (the "License").
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# You may not use this file except in compliance with the License.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsBUILD_BITS= 64
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinclude ../../make-rules/shared-macros.mk
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_NAME= wireshark
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_VERSION= 2.2.0
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_PROJECT_URL= http://www.wireshark.org/
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE_HASH= \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington sha256:a6847e741efcba6cb9d92d464d4219917bee3ad0b8f5b0f80d4388ad2f3f1104
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsTPNO= 31738
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTEST_TARGET= $(NO_TESTS)
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Depends on newer cairo, which cannot be updated in S11.
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark Andrewsinclude $(WS_MAKE_RULES)/no-evaluation.mk
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(WS_MAKE_RULES)/common.mk
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Micro version for easy libraries packaging
3f6174bffe227be44e241a29d186add00c032ff6Mark AndrewsMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsPKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsPATCH_LEVEL=0
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Look for gnutls-3 pkg-config & libraries before the defaults
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsPKG_CONFIG_PATH.64 := $(PKG_CONFIG_PATH.64)/gnutls-3:$(PKG_CONFIG_PATH.64)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsLDFLAGS += -L$(USRLIBDIR64)/gnutls-3
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Reported via bug 12923
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCFLAGS += -I/usr/include/kerberosv5
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_BINDIR.64= $(CONFIGURE_SBINDIR.64)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS += --disable-usr-local
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark AndrewsCONFIGURE_OPTIONS += --disable-androiddump
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --disable-randpkt
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark AndrewsCONFIGURE_OPTIONS += --disable-dftest
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCONFIGURE_OPTIONS += --with-krb5
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-qt=no
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-gtk=2
62ee2c9f460d2e2e45dcf1abc8b4b4a4a43f5618Mark AndrewsCONFIGURE_OPTIONS += \
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews PATH="$(USRDIR)/perl5/bin:$(GNUBIN)/$(MACH64):$(GNUBIN):$(USRBIN.64):$(PATH)"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# create successfully IPS package of different Wireshark branch than is
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# installed on build system without dependency errors.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_POST_CONFIGURE_ACTION = \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews (cd $(@D); \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson sed -e 's,-R/usr/lib/$(MACH64),,' \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews -e 's,-R/usr/lib,,' \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews -e 's,-R\$$libdir,,' \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson config.status > config.status.new; \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews mv config.status.new config.status; \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson chmod 755 config.status; \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews ./config.status)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews# During install libtool will relink libwireshark library so that it
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark Andrews# requires libwiretap version from system and not from proto area.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# This workaround is only needed when CBE contains older libwiretap.
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark AndrewsLIBWIRESHARK=$(PROTOUSRLIBDIR64)/libwireshark.so.8.0.$(MICRO_VERSION)
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark AndrewsCOMPONENT_POST_INSTALL_ACTION = \
dd9ad704c3800e3ab07ede8595871eac79984871Mark Andrews (WTAP=`$(ELFEDIT) -e dyn:dump $(LIBWIRESHARK) | grep 'libwiretap' | awk '{print $$4}'` \
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews ; $(ELFEDIT) -e "dyn:value -s -with-valstr $$WTAP libwiretap.so.6" $(LIBWIRESHARK) )
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += developer/lexer/flex
ab81f57ca0c3addfec3df3babdcea9644757cf23Mark AndrewsREQUIRED_PACKAGES += developer/parser/bison
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark AndrewsREQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsREQUIRED_PACKAGES += library/desktop/cairo
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
413988c8166976498250c0ebb2e3a645d0366bd3Mark AndrewsREQUIRED_PACKAGES += library/desktop/gtk2
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += library/desktop/pango
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += library/glib2
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsREQUIRED_PACKAGES += library/gnutls-3
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += library/security/libgpg-error
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += library/zlib
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsREQUIRED_PACKAGES += runtime/lua
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += security/kerberos-5
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += service/security/kerberos-5
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += system/library/libpcap
642e0716c8b4ab82ebc8e60f94c9e897ee89f19aMark AndrewsREQUIRED_PACKAGES += system/library/math
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += system/library/security/libgcrypt
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsREQUIRED_PACKAGES += x11/library/libx11
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsREQUIRED_PACKAGES += x11/library/libxcursor
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews