pkgsrc/net/wireshark/options.mk
tnn 3b9c4aa427 wireshark: turn on HTTP/2 by default
It is a common protocol and nghttp2 is a comparatively cheap dependency
that most people already have installed since it is default enabled in
curl and nodejs.
2022-07-26 22:54:51 +00:00

70 lines
1.9 KiB
Makefile

# $NetBSD: options.mk,v 1.27 2022/07/26 22:54:51 tnn Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.wireshark
PKG_SUPPORTED_OPTIONS= http2 lua qt5 spandsp
PKG_SUGGESTED_OPTIONS= http2 lua qt5
.include "../../mk/bsd.options.mk"
PLIST_VARS+= icons lua qt spandsp
.if !empty(PKG_OPTIONS:Mhttp2)
. include "../../www/nghttp2/buildlink3.mk"
.else
CMAKE_ARGS+= -DENABLE_NGHTTP2=OFF
.endif
.if !empty(PKG_OPTIONS:Mlua)
LUA_VERSIONS_ACCEPTED= 52 51
. include "../../lang/lua/buildlink3.mk"
PLIST.lua= yes
.else
CMAKE_ARGS+= -DENABLE_LUA=OFF
.endif
.if !empty(PKG_OPTIONS:Mqt5)
. include "../../x11/qt5-qtsvg/buildlink3.mk"
. include "../../x11/qt5-qttools/buildlink3.mk"
PLIST.qt= yes
. if ${OPSYS} == "Darwin"
. include "../../x11/qt5-qtmacextras/buildlink3.mk"
. else
PLIST.icons= yes
. include "../../x11/qt5-qtx11extras/buildlink3.mk"
POST_INSTALL_TARGETS+= install-icons
INSTALLATION_DIRS+= share/applications
INSTALLATION_DIRS+= share/icons/hicolor/scalable/apps
ICON_SIZES= 16 32 48
MIMEICON_SIZES= 16 24 32 48 64 128 256
. for d in ${ICON_SIZES}
INSTALLATION_DIRS+= share/icons/hicolor/${d}x${d}/apps
. endfor
. for d in ${MIMEICON_SIZES}
INSTALLATION_DIRS+= share/icons/hicolor/${d}x${d}/mimetypes
. endfor
. include "../../sysutils/desktop-file-utils/desktopdb.mk"
. include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.PHONY: install-icons
install-icons:
${INSTALL_DATA} ${WRKSRC}/image/wsicon.svg \
${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/wireshark.svg
. for d in ${MIMEICON_SIZES}
${INSTALL_DATA} ${WRKSRC}/image/WiresharkDoc-${d}.png \
${DESTDIR}${PREFIX}/share/icons/hicolor/${d}x${d}/mimetypes/application-vnd.tcpdump.pcap.png
. endfor
. endif
.else
CMAKE_ARGS+= -DBUILD_wireshark=OFF
.endif
.if !empty(PKG_OPTIONS:Mspandsp)
.include "../../comms/spandsp/buildlink3.mk"
PLIST.spandsp= yes
CMAKE_ARGS+= -DENABLE_SPANDSP=ON
.else
CMAKE_ARGS+= -DENABLE_SPANDSP=OFF
.endif