Makefile revision 844
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell#
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# CDDL HEADER START
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell#
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# The contents of this file are subject to the terms of the
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# Common Development and Distribution License (the "License").
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# You may not use this file except in compliance with the License.
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell#
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# or http://www.opensolaris.org/os/licensing.
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# See the License for the specific language governing permissions
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# and limitations under the License.
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell#
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# When distributing Covered Code, include this CDDL HEADER in each
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# If applicable, add the following below this CDDL HEADER, with the
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# fields enclosed by brackets "[]" replaced with your own identifying
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell# information: Portions Copyright [yyyy] [name of copyright owner]
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell#
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell# CDDL HEADER END
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell#
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott#
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellinclude ../../make-rules/shared-macros.mk
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellCOMPONENT_NAME= wireshark
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellCOMPONENT_VERSION= 1.6.5
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellCOMPONENT_PROJECT_URL= http://www.wireshark.org/
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellCOMPONENT_ARCHIVE_HASH= \
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell sha256:151768199f9b50f5593b97025a33303df4d3b3983a203be89d8a1f5ba830bfcd
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellinclude ../../make-rules/prep.mk
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellinclude ../../make-rules/configure.mk
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellinclude ../../make-rules/ips.mk
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellPATCH_LEVEL=0
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellCONFIGURE_OPTIONS += --bindir=/usr/sbin
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellCONFIGURE_OPTIONS += --disable-usr-local
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellCONFIGURE_OPTIONS += --disable-randpkt
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert WapshottCONFIGURE_OPTIONS += --disable-dftest
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert WapshottCONFIGURE_OPTIONS += --disable-idl2wrs
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert WapshottCONFIGURE_OPTIONS += --with-krb5
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellCONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell# create successfully IPS package of different Wireshark branch than is
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell# installed on build system without dependency errors.
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellCOMPONENT_POST_CONFIGURE_ACTION = \
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell (cd $(@D); \
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell sed -e 's,-L/usr/lib -R/usr/lib,,' -e 's,-R/usr/lib,,' \
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott config.status > config.status.new; \
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell mv config.status.new config.status; \
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell chmod 755 config.status; \
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell ./config.status)
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellbuild: $(BUILD_32)
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnellinstall: $(INSTALL_32)
2beebed98b4fc7f018fb224a1e4a3ab6103a4c0bCraig McDonnell
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnelltest: $(NO_TESTS)
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellinclude ../../make-rules/depend.mk
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell