components/wireshark/Makefile
author Petr Sumbera <petr.sumbera@oracle.com>
Mon, 27 Jan 2014 01:34:40 -0800
branchs11-update
changeset 2916 df4f40cd040f
parent 2910 f8b8cbc43356
child 3034 98abf9cbe649
permissions -rw-r--r--
18075144 Upgrade Wireshark to version 1.10.5 18010389 problem in UTILITY/WIRESHARK
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     1
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     3
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     7
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    12
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    18
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    20
#
2910
f8b8cbc43356 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 2826
diff changeset
    21
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    22
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    24
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		wireshark
2916
df4f40cd040f 18075144 Upgrade Wireshark to version 1.10.5
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2910
diff changeset
    26
COMPONENT_VERSION=	1.10.5
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 566
diff changeset
    27
COMPONENT_PROJECT_URL=	http://www.wireshark.org/
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 735
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
2916
df4f40cd040f 18075144 Upgrade Wireshark to version 1.10.5
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2910
diff changeset
    31
    sha256:a02190da9573dd381e7598277a31d0c63b05b2af9fe05ab6b7fc058bbea141f5
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 566
diff changeset
    32
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2431
diff changeset
    33
COMPONENT_BUGDB=	utility/wireshark
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    34
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    35
include ../../make-rules/prep.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/configure.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    37
include ../../make-rules/ips.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    38
2916
df4f40cd040f 18075144 Upgrade Wireshark to version 1.10.5
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2910
diff changeset
    39
# Enable ASLR for this component
df4f40cd040f 18075144 Upgrade Wireshark to version 1.10.5
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2910
diff changeset
    40
ASLR_MODE = $(ASLR_ENABLE)
df4f40cd040f 18075144 Upgrade Wireshark to version 1.10.5
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2910
diff changeset
    41
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    42
PATCH_LEVEL=0
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    43
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    44
CONFIGURE_OPTIONS +=	--bindir=/usr/sbin
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS +=	--disable-usr-local
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	--disable-randpkt
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS +=	--disable-dftest
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    48
CONFIGURE_OPTIONS +=	--with-krb5
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)" 
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS +=	PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    51
2669
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    52
# Use the 64-bit versions of pkg-config files
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    53
CONFIGURE_ENV +=	PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    54
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    55
# Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect.
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    56
LD_B_DIRECT=
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    57
735
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    58
# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    59
# create successfully IPS package of different Wireshark branch than is
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    60
# installed on build system without dependency errors.
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    61
COMPONENT_POST_CONFIGURE_ACTION = \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    62
	(cd $(@D); \
2669
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    63
	sed -e 's,-R/usr/lib/$(MACH64),,' \
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    64
	    -e 's,-R/usr/lib,,' \
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    65
	    -e 's,-R\$$libdir,,' \
735
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    66
		config.status > config.status.new; \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    67
	mv config.status.new config.status; \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    68
	chmod 755 config.status; \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    69
	./config.status)
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    70
2669
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    71
build:		$(BUILD_64)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    72
2669
098e8b6b0df7 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2536
diff changeset
    73
install:	$(INSTALL_64)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    74
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 124
diff changeset
    75
test:		$(NO_TESTS)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    76
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    77
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    78
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    79
include ../../make-rules/depend.mk