Makefile revision 3621
867N/A#
369N/A# CDDL HEADER START
369N/A#
369N/A# The contents of this file are subject to the terms of the
369N/A# Common Development and Distribution License (the "License").
369N/A# You may not use this file except in compliance with the License.
369N/A#
369N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
369N/A# or http://www.opensolaris.org/os/licensing.
369N/A# See the License for the specific language governing permissions
369N/A# and limitations under the License.
369N/A#
369N/A# When distributing Covered Code, include this CDDL HEADER in each
369N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
369N/A# If applicable, add the following below this CDDL HEADER, with the
369N/A# fields enclosed by brackets "[]" replaced with your own identifying
369N/A# information: Portions Copyright [yyyy] [name of copyright owner]
369N/A#
369N/A# CDDL HEADER END
369N/A#
3817N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
369N/A#
3817N/Ainclude ../../make-rules/shared-macros.mk
3817N/A
4659N/ACOMPONENT_NAME= wireshark
3817N/ACOMPONENT_VERSION= 1.10.11
369N/ACOMPONENT_PROJECT_URL= http://www.wireshark.org/
369N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
369N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
369N/ACOMPONENT_ARCHIVE_HASH= \
369N/A sha256:8aaf07584c023c02f7db6aed5226a259c7da0da660f356efd3088ce936dd5034
369N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
844N/ACOMPONENT_BUGDB= utility/wireshark
844N/A
369N/ATPNO= 20429
369N/A
3817N/Ainclude ../../make-rules/prep.mk
3817N/Ainclude ../../make-rules/configure.mk
369N/Ainclude ../../make-rules/ips.mk
369N/A
867N/A# Micro version for easy libraries packaging
867N/AMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
1368N/APKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
1368N/A
1368N/A# Enable ASLR for this component
867N/AASLR_MODE = $(ASLR_ENABLE)
3817N/A
867N/APATCH_LEVEL=0
369N/A
369N/A# We don't have automake 1.14 yet. Thus need to reconfigure with older one.
369N/ACOMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh );
369N/A
369N/ACONFIGURE_OPTIONS += --bindir=/usr/sbin
369N/ACONFIGURE_OPTIONS += --disable-usr-local
4659N/ACONFIGURE_OPTIONS += --disable-randpkt
4659N/ACONFIGURE_OPTIONS += --disable-dftest
369N/ACONFIGURE_OPTIONS += --with-krb5
369N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
369N/ACONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
369N/A
369N/A# Use the 64-bit versions of pkg-config files
369N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
369N/A
369N/A# Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect.
369N/ALD_B_DIRECT=
369N/A
369N/A# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
4659N/A# create successfully IPS package of different Wireshark branch than is
369N/A# installed on build system without dependency errors.
369N/ACOMPONENT_POST_CONFIGURE_ACTION = \
369N/A (cd $(@D); \
369N/A sed -e 's,-R/usr/lib/$(MACH64),,' \
369N/A -e 's,-R/usr/lib,,' \
369N/A -e 's,-R\$$libdir,,' \
369N/A config.status > config.status.new; \
369N/A mv config.status.new config.status; \
369N/A chmod 755 config.status; \
369N/A ./config.status)
3477N/A
3477N/Aconfigure: $(CONFIGURE_64)
369N/A
369N/Abuild: $(BUILD_64)
867N/A
369N/Ainstall: $(INSTALL_64)
369N/A
4337N/Atest: $(NO_TESTS)
4337N/A
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk