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