Makefile revision 6695
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
2328307a8f353078dbbebf242007271153e18cd1Bob Halley# CDDL HEADER START
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# The contents of this file are subject to the terms of the
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Common Development and Distribution License (the "License").
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# You may not use this file except in compliance with the License.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# or http://www.opensolaris.org/os/licensing.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# See the License for the specific language governing permissions
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# and limitations under the License.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# If applicable, add the following below this CDDL HEADER, with the
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley#
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff# CDDL HEADER END
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff#
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff#
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff#
7f9e7076849ac56b03c6f578c22a47c81aa5d171Michael GraffBUILD_BITS= 64
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graffinclude ../../make-rules/shared-macros.mk
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff
da4242bf62503672dbabd04e1c84c62680393f25Bob HalleyCOMPONENT_NAME= wireshark
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffCOMPONENT_VERSION= 2.0.5
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffCOMPONENT_PROJECT_URL= http://www.wireshark.org/
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffCOMPONENT_ARCHIVE_HASH= \
fb3dcb0b607175a5fdae2d4928fb4d5321a0132fMichael Graff sha256:0ce0241330828973f5b4efee422a3760cab8ce0b41e7721c4b9fd185be1bb10b
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
62a933c45b1c1028f45f8f720588d1ec3cfd6e54Michael Graff
a3002fd5a23b06733c6a98fd34a417099fe51cc4Bob HalleyTPNO= 30387
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffTEST_TARGET= $(NO_TESTS)
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# Depends on newer cairo, which cannot be updated in S11.
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graffinclude $(WS_MAKE_RULES)/no-evaluation.mk
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael Graff
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graffinclude $(WS_MAKE_RULES)/common.mk
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# Micro version for easy libraries packaging
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffPKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffPATCH_LEVEL=0
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# We don't have automake 1.14 yet. Thus need to reconfigure with older one.
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffCOMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh );
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# Look for gnutls-3 pkg-config & libraries before the defaults
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffPKG_CONFIG_PATH.64 := $(PKG_CONFIG_PATH.64)/gnutls-3:$(PKG_CONFIG_PATH.64)
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffLDFLAGS += -L$(USRLIBDIR64)/gnutls-3
0c7244d35222b48c016e348bfa59234f6e1a8256Michael Graff
2328307a8f353078dbbebf242007271153e18cd1Bob HalleyCONFIGURE_BINDIR.64= $(CONFIGURE_SBINDIR.64)
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff
0c7244d35222b48c016e348bfa59234f6e1a8256Michael GraffCONFIGURE_OPTIONS += --disable-usr-local
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffCONFIGURE_OPTIONS += --disable-androiddump
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffCONFIGURE_OPTIONS += --disable-randpkt
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffCONFIGURE_OPTIONS += --disable-dftest
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffCONFIGURE_OPTIONS += --with-krb5
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffCONFIGURE_OPTIONS += --with-qt=no
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffCONFIGURE_OPTIONS += --with-gtk2=yes
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffCONFIGURE_OPTIONS += \
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff PATH="$(USRDIR)/perl5/bin:$(GNUBIN)/$(MACH64):$(GNUBIN):$(USRBIN.64):$(PATH)"
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff# create successfully IPS package of different Wireshark branch than is
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff# installed on build system without dependency errors.
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffCOMPONENT_POST_CONFIGURE_ACTION = \
523b3c81c31a92ba0b303ad069b9b47a61ae8de2Michael Graff (cd $(@D); \
0c7244d35222b48c016e348bfa59234f6e1a8256Michael Graff sed -e 's,-R/usr/lib/$(MACH64),,' \
0c7244d35222b48c016e348bfa59234f6e1a8256Michael Graff -e 's,-R/usr/lib,,' \
0c7244d35222b48c016e348bfa59234f6e1a8256Michael Graff -e 's,-R\$$libdir,,' \
0c7244d35222b48c016e348bfa59234f6e1a8256Michael Graff config.status > config.status.new; \
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff mv config.status.new config.status; \
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff chmod 755 config.status; \
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff ./config.status)
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff# During install libtool will relink libwireshark library so that it
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff# requires libwiretap version from system and not from proto area.
97ed1e3750506dee46916dcdaf91537083a026b4Michael Graff# This workaround is only needed when CBE contains older libwiretap.
03b062e71a771e8f63c0fbc2b1d04f8962644e42Michael GraffLIBWIRESHARK=$(PROTOUSRLIBDIR64)/libwireshark.so.6.1.$(MICRO_VERSION)
e89cd0396e7857d1509e12d6dc6c7e9fcb8e4814Michael GraffCOMPONENT_POST_INSTALL_ACTION = \
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff (WTAP=`$(ELFEDIT) -e dyn:dump $(LIBWIRESHARK) | grep 'libwiretap' | awk '{print $$4}'` \
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff ; $(ELFEDIT) -e "dyn:value -s -with-valstr $$WTAP libwiretap.so.5" $(LIBWIRESHARK) )
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael Graff
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += developer/lexer/flex
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += developer/parser/bison
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += library/desktop/cairo
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffREQUIRED_PACKAGES += library/desktop/gtk2
e75eee32066733e5d07c954ebdb1cb8bd6038764Michael GraffREQUIRED_PACKAGES += library/desktop/pango
e75eee32066733e5d07c954ebdb1cb8bd6038764Michael GraffREQUIRED_PACKAGES += library/glib2
e75eee32066733e5d07c954ebdb1cb8bd6038764Michael GraffREQUIRED_PACKAGES += library/gnutls-3
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffREQUIRED_PACKAGES += library/security/libgpg-error
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffREQUIRED_PACKAGES += library/zlib
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffREQUIRED_PACKAGES += runtime/lua
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffREQUIRED_PACKAGES += security/kerberos-5
7f9e7076849ac56b03c6f578c22a47c81aa5d171Michael GraffREQUIRED_PACKAGES += service/security/kerberos-5
6d05b41aaef2a56d8d806b2cbf3ab08a1b4990e6Michael GraffREQUIRED_PACKAGES += system/library/libpcap
c2be3539e9357b08db26f8003a3c46fc247a93bfMichael GraffREQUIRED_PACKAGES += system/library/math
3740b569ae76295b941d57a724a43beb75b533baBob HalleyREQUIRED_PACKAGES += system/library/security/libgcrypt
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += x11/library/libx11
b73eb944cdde0deebad48a4a12c35f904bc05f4eMichael GraffREQUIRED_PACKAGES += x11/library/libxcursor
bb039bc91ef7d5b82cdba64e0a8a965790e06700Michael Graff