Makefile revision 1258
afe3ab588a6b2992efe5a9b22ed038545ba3cdbfLennart Poettering#
c343be283b7152554bac0c02493a4e1759c163f7Kay Sievers# CDDL HEADER START
b3ae710c251d0ce5cf2cef63208e325497b5e323Zbigniew Jędrzejewski-Szmek#
b3ae710c251d0ce5cf2cef63208e325497b5e323Zbigniew Jędrzejewski-Szmek# The contents of this file are subject to the terms of the
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers# Common Development and Distribution License (the "License").
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers# You may not use this file except in compliance with the License.
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers#
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a40593a0d0d740efa387e35411e1e456a6c5aba7Lennart Poettering# or http://www.opensolaris.org/os/licensing.
20ffc4c4a9226b0e45cc02ad9c0108981626c0bbKay Sievers# See the License for the specific language governing permissions
afe3ab588a6b2992efe5a9b22ed038545ba3cdbfLennart Poettering# and limitations under the License.
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmek#
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmek# When distributing Covered Code, include this CDDL HEADER in each
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmek# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmek# If applicable, add the following below this CDDL HEADER, with the
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmek# fields enclosed by brackets "[]" replaced with your own identifying
3f85ef0f05ffc51e19f86fb83a1c51e8e3cd6817Harald Hoyer# information: Portions Copyright [yyyy] [name of copyright owner]
afe3ab588a6b2992efe5a9b22ed038545ba3cdbfLennart Poettering#
afe3ab588a6b2992efe5a9b22ed038545ba3cdbfLennart Poettering# CDDL HEADER END
afea8d3853d0f76b3845729ff00e75d281f43a1bZbigniew Jędrzejewski-Szmek#
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
f85857df75cfedbc0d10b8ca2400188dc8f4c22eLennart Poettering#
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poetteringinclude ../../make-rules/shared-macros.mk
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poettering
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart PoetteringCOMPONENT_NAME= wireshark
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart PoetteringCOMPONENT_VERSION= 1.8.3
81429136905a6204875174b60a179333b7f3c9e4Kay SieversCOMPONENT_PROJECT_URL= http://www.wireshark.org/
e7b4d43ec3d5eb0099a3978f98a46f3c15443b23Lennart PoetteringCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
58f55364fa00a6a4706df2c4a01c6967f432e531Lennart PoetteringCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
58f55364fa00a6a4706df2c4a01c6967f432e531Lennart PoetteringCOMPONENT_ARCHIVE_HASH= \
83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0Zbigniew Jędrzejewski-Szmek sha256:83a85ff506b5e2a70f03c49de7af291802404983a23c7779e0f4ac3e672a2fb3
83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0Zbigniew Jędrzejewski-SzmekCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0Zbigniew Jędrzejewski-SzmekCOMPONENT_BUGDB= utility/wireshark
83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0Zbigniew Jędrzejewski-Szmek
83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0Zbigniew Jędrzejewski-Szmekinclude ../../make-rules/prep.mk
81429136905a6204875174b60a179333b7f3c9e4Kay Sieversinclude ../../make-rules/configure.mk
fbe1a1a94f19112d7e5d60c40d87487ad24e2ce4Lennart Poetteringinclude ../../make-rules/ips.mk
6c78f43c7b0e54e695af49917fda79b584f46830Lennart Poettering
6c78f43c7b0e54e695af49917fda79b584f46830Lennart PoetteringPATCH_LEVEL=0
6363357378e295ee9dfc23e7c5a9f8793b06519cLennart Poettering
6363357378e295ee9dfc23e7c5a9f8793b06519cLennart PoetteringCONFIGURE_OPTIONS += --bindir=/usr/sbin
54e2e63dd28879587bc653f48520beb2956c0f16Lennart PoetteringCONFIGURE_OPTIONS += --disable-usr-local
54e2e63dd28879587bc653f48520beb2956c0f16Lennart PoetteringCONFIGURE_OPTIONS += --disable-randpkt
7b0fce617c48eda32b2d4e04b5f0e4376e8c0106Lennart PoetteringCONFIGURE_OPTIONS += --disable-dftest
7b0fce617c48eda32b2d4e04b5f0e4376e8c0106Lennart PoetteringCONFIGURE_OPTIONS += --with-krb5
7b0fce617c48eda32b2d4e04b5f0e4376e8c0106Lennart PoetteringCONFIGURE_OPTIONS += --with-lua=no
7b0fce617c48eda32b2d4e04b5f0e4376e8c0106Lennart PoetteringCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
7b0fce617c48eda32b2d4e04b5f0e4376e8c0106Lennart PoetteringCONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
c2d5b3c94d0c082ef29597fb230f8b88b124bab8Lennart Poettering
c2d5b3c94d0c082ef29597fb230f8b88b124bab8Lennart Poettering# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
264b8070715d2d19344c4991ace21147d998f56dLennart Poettering# create successfully IPS package of different Wireshark branch than is
264b8070715d2d19344c4991ace21147d998f56dLennart Poettering# installed on build system without dependency errors.
4ecd22142543aac55ddac1da3b7d6882c009d637Lennart PoetteringCOMPONENT_POST_CONFIGURE_ACTION = \
4ecd22142543aac55ddac1da3b7d6882c009d637Lennart Poettering (cd $(@D); \
4ecd22142543aac55ddac1da3b7d6882c009d637Lennart Poettering sed -e 's,-L/usr/lib -R/usr/lib,,' -e 's,-R/usr/lib,,' \
4ecd22142543aac55ddac1da3b7d6882c009d637Lennart Poettering config.status > config.status.new; \
7e27f3121e5a10629302b5221eb21345f832724aLennart Poettering mv config.status.new config.status; \
7e27f3121e5a10629302b5221eb21345f832724aLennart Poettering chmod 755 config.status; \
f81e67f79fa856aa2ecffad4d014772ce981745cLennart Poettering ./config.status)
f81e67f79fa856aa2ecffad4d014772ce981745cLennart Poettering
f81e67f79fa856aa2ecffad4d014772ce981745cLennart Poetteringbuild: $(BUILD_32)
f81e67f79fa856aa2ecffad4d014772ce981745cLennart Poettering
f81e67f79fa856aa2ecffad4d014772ce981745cLennart Poetteringinstall: $(INSTALL_32)
f81e67f79fa856aa2ecffad4d014772ce981745cLennart Poettering
d48b7bd271b1e70924c8485d2f95c2f5a1ae77cbLennart Poetteringtest: $(NO_TESTS)
d48b7bd271b1e70924c8485d2f95c2f5a1ae77cbLennart Poettering
d48b7bd271b1e70924c8485d2f95c2f5a1ae77cbLennart PoetteringBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
d48b7bd271b1e70924c8485d2f95c2f5a1ae77cbLennart Poettering
25e14499c4c5b02229d05a5bc26c3693ade5f987Lennart Poetteringinclude ../../make-rules/depend.mk
25e14499c4c5b02229d05a5bc26c3693ade5f987Lennart Poettering