Makefile revision 2899
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
1a5f954324f2584984fc9cee7a7a8ebe8ef39aeajim#
ed0d39878e79220baaa50c15b79b1fdf877cb919niq# The contents of this file are subject to the terms of the
a9032b04dea20854789dcd723f59e951055eafccniq# Common Development and Distribution License (the "License").
a9032b04dea20854789dcd723f59e951055eafccniq# You may not use this file except in compliance with the License.
a9032b04dea20854789dcd723f59e951055eafccniq#
c76ccee1c47ce272630c95f3de16164bccaf09a8niq# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c76ccee1c47ce272630c95f3de16164bccaf09a8niq# or http://www.opensolaris.org/os/licensing.
c76ccee1c47ce272630c95f3de16164bccaf09a8niq# See the License for the specific language governing permissions
5ff68527ed4cfc34ba93eb201b79fc3363ee66e4niq# and limitations under the License.
5ff68527ed4cfc34ba93eb201b79fc3363ee66e4niq#
5ff68527ed4cfc34ba93eb201b79fc3363ee66e4niq# When distributing Covered Code, include this CDDL HEADER in each
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrin# If applicable, add the following below this CDDL HEADER, with the
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrin# fields enclosed by brackets "[]" replaced with your own identifying
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrin# information: Portions Copyright [yyyy] [name of copyright owner]
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrin#
ecc1538af1c08282fc2773d2eb3f1a54251862f9minfrin# CDDL HEADER END
ecc1538af1c08282fc2773d2eb3f1a54251862f9minfrin#
ecc1538af1c08282fc2773d2eb3f1a54251862f9minfrin# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
ecc1538af1c08282fc2773d2eb3f1a54251862f9minfrin#
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpjinclude ../../make-rules/shared-macros.mk
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpj
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpjCOMPONENT_NAME= wireshark
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpjCOMPONENT_VERSION= 1.10.7
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpjCOMPONENT_PROJECT_URL= http://www.wireshark.org/
135402675e89e6df0e17735e48f428a1e1d8eb16pquernaCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
135402675e89e6df0e17735e48f428a1e1d8eb16pquernaCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
135402675e89e6df0e17735e48f428a1e1d8eb16pquernaCOMPONENT_ARCHIVE_HASH= \
135402675e89e6df0e17735e48f428a1e1d8eb16pquerna sha256:d98d263b31dd904a0337ba2db6d1a80bb495b4ac419a304f0f25c551d50cafc6
e4b96ba15dc8b2b27d251d53e29b86da32cd5066pquernaCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
e4b96ba15dc8b2b27d251d53e29b86da32cd5066pquernaCOMPONENT_BUGDB= utility/wireshark
49f39a4568dab427b2c4ae070d0f831d1ac9ebf8jim
49f39a4568dab427b2c4ae070d0f831d1ac9ebf8jimTPNO= 17414
49f39a4568dab427b2c4ae070d0f831d1ac9ebf8jim
49f39a4568dab427b2c4ae070d0f831d1ac9ebf8jiminclude ../../make-rules/prep.mk
470d223738c1dfc4e07c7fae5d186e9dfadd9643jortoninclude ../../make-rules/configure.mk
470d223738c1dfc4e07c7fae5d186e9dfadd9643jortoninclude ../../make-rules/ips.mk
470d223738c1dfc4e07c7fae5d186e9dfadd9643jorton
81bd9331da3bd0f53255d52b1475480ff3a4b395trawick# Enable ASLR for this component
81bd9331da3bd0f53255d52b1475480ff3a4b395trawickASLR_MODE = $(ASLR_ENABLE)
81bd9331da3bd0f53255d52b1475480ff3a4b395trawick
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawickPATCH_LEVEL=0
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawick
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawickCONFIGURE_OPTIONS += --bindir=/usr/sbin
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawickCONFIGURE_OPTIONS += --disable-usr-local
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisdCONFIGURE_OPTIONS += --disable-randpkt
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisdCONFIGURE_OPTIONS += --disable-dftest
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisdCONFIGURE_OPTIONS += --with-krb5
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisdCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
13ce20bba632871d7ceb413f39dc73c718ddec7dchrisdCONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisd
421e0a5d1c49de76406f61e9abef271af2336c31rpluem# Use the 64-bit versions of pkg-config files
421e0a5d1c49de76406f61e9abef271af2336c31rpluemCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
421e0a5d1c49de76406f61e9abef271af2336c31rpluem
108ebbb87b2a46f4416ec507824471a483c39fe1sctemme# Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect.
108ebbb87b2a46f4416ec507824471a483c39fe1sctemmeLD_B_DIRECT=
108ebbb87b2a46f4416ec507824471a483c39fe1sctemme
108ebbb87b2a46f4416ec507824471a483c39fe1sctemme# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
7abe34dd5a20fc8fde09dca9116b88e6ddfd55ddjorton# create successfully IPS package of different Wireshark branch than is
7abe34dd5a20fc8fde09dca9116b88e6ddfd55ddjorton# installed on build system without dependency errors.
7abe34dd5a20fc8fde09dca9116b88e6ddfd55ddjortonCOMPONENT_POST_CONFIGURE_ACTION = \
10d486b9267800c5e376c22f6c0d45dc2ae86f67chrisd (cd $(@D); \
10d486b9267800c5e376c22f6c0d45dc2ae86f67chrisd sed -e 's,-R/usr/lib/$(MACH64),,' \
10d486b9267800c5e376c22f6c0d45dc2ae86f67chrisd -e 's,-R/usr/lib,,' \
10d486b9267800c5e376c22f6c0d45dc2ae86f67chrisd -e 's,-R\$$libdir,,' \
3e155218733389e7b1ea3a9ffd0aea533fd929cechrisd config.status > config.status.new; \
3e155218733389e7b1ea3a9ffd0aea533fd929cechrisd mv config.status.new config.status; \
3e155218733389e7b1ea3a9ffd0aea533fd929cechrisd chmod 755 config.status; \
3e155218733389e7b1ea3a9ffd0aea533fd929cechrisd ./config.status)
dd6199828976e6c7850ca6abd7a1ceba99e9ed16chrisd
dd6199828976e6c7850ca6abd7a1ceba99e9ed16chrisdbuild: $(BUILD_64)
dd6199828976e6c7850ca6abd7a1ceba99e9ed16chrisd
dd6199828976e6c7850ca6abd7a1ceba99e9ed16chrisdinstall: $(INSTALL_64)
ab43b4a17b2ac31ccb1cf280be8c42a8a314cecbjorton
ab43b4a17b2ac31ccb1cf280be8c42a8a314cecbjortontest: $(NO_TESTS)
ab43b4a17b2ac31ccb1cf280be8c42a8a314cecbjorton
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
f3a5934ca0fb0f0f813bd9d9d06af8937e3f401fjim
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jiminclude ../../make-rules/depend.mk
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim