components/wireshark/Makefile
author Petr Sumbera <petr.sumbera@oracle.com>
Thu, 15 Aug 2013 12:22:05 -0700
changeset 1438 d200c16f9c03
parent 1363 fe40eb92535c
child 1488 04528ffd139d
permissions -rw-r--r--
17312236 Upgrade Wireshark to version 1.10.1 17235096 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
#
1155
51899f20aab8 16290695 Upgrade Wireshark to version 1.8.5
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1058
diff changeset
    21
# Copyright (c) 2011, 2013, 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
1438
d200c16f9c03 17312236 Upgrade Wireshark to version 1.10.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1363
diff changeset
    26
COMPONENT_VERSION=	1.10.1
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=	\
1438
d200c16f9c03 17312236 Upgrade Wireshark to version 1.10.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1363
diff changeset
    31
    sha256:06499544f053cc1f73529278ede0ac210d709cada8267e81d908bd346cc0c5bc
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)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1028
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
1349
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    39
# Enable ASLR for this component
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    40
ASLR_MODE = $(ASLR_ENABLE)
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
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
1363
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
diff changeset
    52
# Use the 64-bit versions of pkg-config files
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
diff changeset
    53
CONFIGURE_ENV +=	PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
diff changeset
    54
1349
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    55
# Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect.
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    56
LD_B_DIRECT=
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
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); \
1363
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
diff changeset
    63
	sed -e 's,-R/usr/lib/$(MACH64),,' \
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
diff changeset
    64
	    -e 's,-R/usr/lib,,' \
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
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
1349
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    71
build:		$(BUILD_64)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    72
1349
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
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