Makefile revision 2996
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
c7ef13f6c9ef4436bc804b150e0a93307b11fa27Tinderbox User#
c7ef13f6c9ef4436bc804b150e0a93307b11fa27Tinderbox User# The contents of this file are subject to the terms of the
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# Common Development and Distribution License (the "License").
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# You may not use this file except in compliance with the License.
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User#
5e047890ac9b745db060d95f7d1b4f876511240dTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
137fdbc214e99c4cbe57551e9e14f2015c2e42aeTinderbox User# or http://www.opensolaris.org/os/licensing.
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# See the License for the specific language governing permissions
bed0874e1a09e810575328c4bfc346a47514b69fMark Andrews# and limitations under the License.
02b47c5d62e1e827743684c28a08e871da454a2dMark Andrews#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e20309353e6246485c521278131d3fced73d7957Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
e20309353e6246485c521278131d3fced73d7957Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
6c910bd5e4a85a56e3a61fdf7b237a45bb2553eeTinderbox User#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
e20309353e6246485c521278131d3fced73d7957Tinderbox User#
e20309353e6246485c521278131d3fced73d7957Tinderbox Userinclude ../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
df4ebd8217d02dafc12145b55c4d93d0255d1ec7Tinderbox UserCOMPONENT_NAME= wireshark
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_VERSION= 1.10.8
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_PROJECT_URL= http://www.wireshark.org/
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_HASH= \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson sha256:27d9cf4f0ca1ac436104b7f27caf8ad65f73db09edc8df0742ce9688c7d38763
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox UserCOMPONENT_BUGDB= utility/wireshark
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntTPNO= 18282
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/prep.mk
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntinclude ../../make-rules/configure.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/ips.mk
24934f08b9ff81c2be711e566e8002d145573031Tinderbox User
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Micro version for easy libraries packaging
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
24934f08b9ff81c2be711e566e8002d145573031Tinderbox UserPKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Enable ASLR for this component
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserASLR_MODE = $(ASLR_ENABLE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPATCH_LEVEL=0
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCONFIGURE_OPTIONS += --bindir=/usr/sbin
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCONFIGURE_OPTIONS += --disable-usr-local
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --disable-randpkt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --disable-dftest
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --with-krb5
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# Use the 64-bit versions of pkg-config files
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox UserCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
e20309353e6246485c521278131d3fced73d7957Tinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect.
24934f08b9ff81c2be711e566e8002d145573031Tinderbox UserLD_B_DIRECT=
e20309353e6246485c521278131d3fced73d7957Tinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
7feccf248d2a20a2ae48b290f58ded5abc853e9aTinderbox User# create successfully IPS package of different Wireshark branch than is
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# installed on build system without dependency errors.
c59750de3ea3c7d5890000fb4606e8f5835a52aaTinderbox UserCOMPONENT_POST_CONFIGURE_ACTION = \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater (cd $(@D); \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews sed -e 's,-R/usr/lib/$(MACH64),,' \
ec7751119a08c6a7250f3187beed69a8b836d349Tinderbox User -e 's,-R/usr/lib,,' \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews -e 's,-R\$$libdir,,' \
114f7780384371121918624ae2c80ecfce545683Tinderbox User config.status > config.status.new; \
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater mv config.status.new config.status; \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews chmod 755 config.status; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater ./config.status)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterbuild: $(BUILD_64)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinstall: $(INSTALL_64)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssontest: $(NO_TESTS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinclude ../../make-rules/depend.mk
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User