components/wireshark/Makefile
author Petr Sumbera <petr.sumbera@oracle.com>
Mon, 07 Jul 2014 14:51:25 -0700
changeset 1988 3484dcf6fb86
parent 1948 2d1537e7942d
child 2040 262b5d64cdc5
permissions -rw-r--r--
19155791 Upgrade Wireshark to version 1.10.8 19014270 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
#
1642
f01331e7331a 18075144 Upgrade Wireshark to version 1.10.5
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1542
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
1988
3484dcf6fb86 19155791 Upgrade Wireshark to version 1.10.8
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    26
COMPONENT_VERSION=	1.10.8
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=	\
1988
3484dcf6fb86 19155791 Upgrade Wireshark to version 1.10.8
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    31
    sha256:27d9cf4f0ca1ac436104b7f27caf8ad65f73db09edc8df0742ce9688c7d38763
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
1988
3484dcf6fb86 19155791 Upgrade Wireshark to version 1.10.8
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    35
TPNO=			18282
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1857
diff changeset
    36
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    37
include ../../make-rules/prep.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/configure.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/ips.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    40
1988
3484dcf6fb86 19155791 Upgrade Wireshark to version 1.10.8
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    41
# Micro version for easy libraries packaging
3484dcf6fb86 19155791 Upgrade Wireshark to version 1.10.8
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    42
MICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
3484dcf6fb86 19155791 Upgrade Wireshark to version 1.10.8
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    43
PKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
3484dcf6fb86 19155791 Upgrade Wireshark to version 1.10.8
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    44
1349
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    45
# Enable ASLR for this component
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    46
ASLR_MODE = $(ASLR_ENABLE)
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    47
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    48
PATCH_LEVEL=0
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    49
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS +=	--bindir=/usr/sbin
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    51
CONFIGURE_OPTIONS +=	--disable-usr-local
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    52
CONFIGURE_OPTIONS +=	--disable-randpkt
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    53
CONFIGURE_OPTIONS +=	--disable-dftest
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS +=	--with-krb5
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)" 
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    56
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
    57
1363
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
diff changeset
    58
# 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
    59
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
    60
1349
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    61
# 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
    62
LD_B_DIRECT=
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    63
735
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    64
# 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
    65
# 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
    66
# 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
    67
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
    68
	(cd $(@D); \
1363
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
diff changeset
    69
	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
    70
	    -e 's,-R/usr/lib,,' \
fe40eb92535c 16985140 PKG_CONFIG_PATH breaks wireshark build
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1349
diff changeset
    71
	    -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
    72
		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
    73
	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
    74
	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
    75
	./config.status)
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    76
1349
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    77
build:		$(BUILD_64)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    78
1349
3f8d90ded8f2 16953408 Upgrade Wireshark to version 1.10.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1155
diff changeset
    79
install:	$(INSTALL_64)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    80
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 124
diff changeset
    81
test:		$(NO_TESTS)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    82
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    83
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    84
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    85
include ../../make-rules/depend.mk