pkgsrc/net/wireshark/options.mk
2012-08-16 15:11:49 +00:00

28 lines
598 B
Makefile

# $NetBSD: options.mk,v 1.7 2012/08/16 15:11:49 drochner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.wireshark
PKG_SUPPORTED_OPTIONS= gtk2 lua
PKG_SUGGESTED_OPTIONS= gtk2 lua
.include "../../mk/bsd.options.mk"
PLIST_VARS+= gtk2
.if !empty(PKG_OPTIONS:Mgtk2)
CONFIGURE_ARGS+= --enable-wireshark
PLIST.gtk2= yes
.include "../../x11/gtk2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-wireshark
.endif
PLIST_VARS+= lua
.if empty(PKG_OPTIONS:Mlua)
CONFIGURE_ARGS+= --with-lua=no
.else
.include "../../lang/lua/buildlink3.mk"
CONFIGURE_ARGS+= --with-lua=${BUILDLINK_PREFIX.lua}
PLIST.lua= yes
.endif