2019-12-14 18:53:39 +01:00
|
|
|
# $NetBSD: options.mk,v 1.2 2019/12/14 17:53:39 nia Exp $
|
2015-04-20 01:10:52 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.serd
|
|
|
|
PKG_SUPPORTED_OPTIONS= debug doc tests valgrind
|
|
|
|
PKG_SUGGESTED_OPTIONS+= # blank
|
|
|
|
PLIST_VARS+= doc
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
2019-12-14 18:53:39 +01:00
|
|
|
WAF_ARGS+= --debug
|
2015-04-20 01:10:52 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mdoc)
|
2019-12-14 18:53:39 +01:00
|
|
|
WAF_ARGS+= --docs
|
2015-04-20 01:10:52 +02:00
|
|
|
BUILD_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen
|
|
|
|
PLIST.doc= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mtests)
|
2019-12-14 18:53:39 +01:00
|
|
|
WAF_ARGS+= --test
|
2015-04-20 01:10:52 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mvalgrind)
|
2019-12-14 18:53:39 +01:00
|
|
|
WAF_ARGS+= --grind
|
2015-04-20 01:10:52 +02:00
|
|
|
BUILD_DEPENDS+= valgrind-[0-9]*:../../devel/valgrind
|
|
|
|
.endif
|