nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / wireshark / Makefile
blob7b5cdb1b5297a9ad755afdc817a3f777e523b47b
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2020, Oracle and/or its affiliates.
22 # Copyright (c) 2020, Michal Nowak
23 # Copyright (c) 2020, Marco van Wieringen
24 # Copyright (c) 2022, Niklas Poslovski
27 BUILD_BITS= 64
28 BUILD_STYLE= cmake
29 USE_PARALLEL_BUILD= yes
31 include ../../../make-rules/shared-macros.mk
33 MAJOR_VERSION=4.4
34 MICRO_VERSION=2
36 COMPONENT_NAME= wireshark
37 COMPONENT_VERSION= $(MAJOR_VERSION).$(MICRO_VERSION)
38 COMPONENT_PROJECT_URL= https://www.wireshark.org/
39 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
40 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
41 COMPONENT_ARCHIVE_HASH= sha256:6053d97499c83feb87ce1d7f732d9c889c6c18bb334de67e65dca11483b0514e
42 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
43 COMPONENT_LICENSE= GPLv2
44 COMPONENT_LICENSE_FILE= COPYING
46 TEST_TARGET: $(NO_TESTS)
48 include $(WS_MAKE_RULES)/common.mk
50 # Set path to QT6 libs
51 QT6_LIBDIR = /usr/lib/qt/6.6/lib/amd64
53 # Set path to QT6 cmake modules.
54 CMAKE_OPTIONS += -DCMAKE_PREFIX_PATH=$(QT6_LIBDIR)/cmake
55 # Add non-standard path to perl pod2man and pod2html commands.
56 CMAKE_OPTIONS += -DCMAKE_PROGRAM_PATH=$(USRDIR)/perl5/bin/
57 # Install all the wireshark executables to sbin directory.
58 CMAKE_OPTIONS += -DCMAKE_INSTALL_BINDIR=/usr/sbin
59 # Install all the wireshark Read-only architecture-independent data to share/wireshark directory.
60 CMAKE_OPTIONS += -DCMAKE_INSTALL_DATADIR=/usr/share/wireshark
62 CMAKE_OPTIONS += -DBUILD_androiddump=OFF
63 CMAKE_OPTIONS += -DBUILD_randpkt=OFF
64 CMAKE_OPTIONS += -DBUILD_dftest=OFF
65 CMAKE_OPTIONS += -DUSE_qt6=ON
67 PKG_MACROS += MAJOR_VERSION=$(MAJOR_VERSION)
68 PKG_MACROS += MICRO_VERSION=$(MICRO_VERSION)
70 CFLAGS += -I/usr/include/kerberosv5
71 CFLAGS += -D__EXTENSIONS__
72 LDFLAGS += -lsocket -lnsl
74 COMPONENT_POST_INSTALL_ACTION = \
75 for file in $(PROTO_DIR)/usr/sbin/wireshark; do \
76 /usr/bin/elfedit -e 'dyn:value -s RUNPATH "$(GCC_LIBDIR):$(QT6_LIBDIR)"' $$file ; \
77 /usr/bin/elfedit -e 'dyn:value -s RPATH "$(GCC_LIBDIR):$(QT6_LIBDIR)"' $$file ; \
78 done ;
80 # Auto-generated dependencies
81 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
82 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
83 REQUIRED_PACKAGES += compress/zstd
84 REQUIRED_PACKAGES += library/brotli
85 REQUIRED_PACKAGES += library/glib2
86 REQUIRED_PACKAGES += library/gnutls-3
87 REQUIRED_PACKAGES += library/libcares
88 REQUIRED_PACKAGES += library/libxml2
89 REQUIRED_PACKAGES += library/lz4
90 REQUIRED_PACKAGES += library/minizip-ng
91 REQUIRED_PACKAGES += library/nghttp2
92 REQUIRED_PACKAGES += library/nghttp3
93 REQUIRED_PACKAGES += library/opus
94 REQUIRED_PACKAGES += library/pcre2
95 REQUIRED_PACKAGES += library/qt6
96 REQUIRED_PACKAGES += library/speexdsp
97 REQUIRED_PACKAGES += library/zlib
98 REQUIRED_PACKAGES += runtime/lua-54
99 REQUIRED_PACKAGES += system/library
100 REQUIRED_PACKAGES += system/library/libpcap
101 REQUIRED_PACKAGES += system/library/math
102 REQUIRED_PACKAGES += system/library/security/libgcrypt