pkgsrc-wip/spectrum/options.mk
2012-08-11 22:10:11 +00:00

31 lines
746 B
Makefile

# $NetBSD: options.mk,v 1.7 2012/08/11 22:10:11 schnoebe Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.spectrum
PKG_OPTIONS_REQUIRED_GROUPS= storage
PKG_OPTIONS_OPTIONAL_GROUPS= debug
PKG_OPTIONS_GROUP.storage= mysql sqlite
PKG_OPTIONS_GROUP.debug= debug cppunit
PKG_SUGGESTED_OPTIONS= sqlite
.include "../../mk/bsd.options.mk"
PLIST_VARS+= sqlite mysql
.if !empty(PKG_OPTIONS:Msqlite)
. include "../../databases/poco-data-sqlite/buildlink3.mk"
PLIST.sqlite= yes
.endif
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../databases/poco-data-mysql/buildlink3.mk"
PLIST.mysql= yes
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug
.endif
.if !empty(PKG_OPTIONS:Mcppunit)
. include "../../devel/cppunit/buildlink3.mk"
.endif