components/wireshark/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 25 Oct 2012 13:35:55 -0700
changeset 1028 30d7999e80d9
parent 1009 49c5130fdb42
child 1058 34d7aaa03423
permissions -rw-r--r--
7203970 lua update breaks things
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
#
656
91ada9bbfbd6 7131013 Upgrade Wireshark to version 1.4.11
Petr Sumbera <petr.sumbera@oracle.com>
parents: 609
diff changeset
    21
# Copyright (c) 2011, 2012, 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
1009
49c5130fdb42 7202384 Upgrade Wireshark to version 1.8.3
Petr Sumbera <petr.sumbera@oracle.com>
parents: 955
diff changeset
    26
COMPONENT_VERSION=	1.8.3
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=	\
1009
49c5130fdb42 7202384 Upgrade Wireshark to version 1.8.3
Petr Sumbera <petr.sumbera@oracle.com>
parents: 955
diff changeset
    31
    sha256:83a85ff506b5e2a70f03c49de7af291802404983a23c7779e0f4ac3e672a2fb3
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)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    33
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    34
include ../../make-rules/prep.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    35
include ../../make-rules/configure.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/ips.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    37
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    38
PATCH_LEVEL=0
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    39
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    40
CONFIGURE_OPTIONS +=	--bindir=/usr/sbin
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    41
CONFIGURE_OPTIONS +=	--disable-usr-local
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    42
CONFIGURE_OPTIONS +=	--disable-randpkt
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    43
CONFIGURE_OPTIONS +=	--disable-dftest
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    44
CONFIGURE_OPTIONS +=	--with-krb5
1028
30d7999e80d9 7203970 lua update breaks things
Rich Burridge <rich.burridge@oracle.com>
parents: 1009
diff changeset
    45
CONFIGURE_OPTIONS +=	--with-lua=no
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)" 
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    47
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
    48
735
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    49
# 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
    50
# 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
    51
# 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
    52
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
    53
	(cd $(@D); \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    54
	sed -e 's,-L/usr/lib -R/usr/lib,,' -e 's,-R/usr/lib,,' \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    55
		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
    56
	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
    57
	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
    58
	./config.status)
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    59
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    60
build:		$(BUILD_32)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    61
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    62
install:	$(INSTALL_32)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    63
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 124
diff changeset
    64
test:		$(NO_TESTS)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    65
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    66
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    67
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    68
include ../../make-rules/depend.mk