From 97d40c8a4b565cf2c11538e01186d426c79a496e Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 30 Sep 2008 15:20:30 +0000 Subject: Add static option for clientonly package as well, fixing the build as side effect. --- sysutils/bacula-clientonly/Makefile | 4 +++- sysutils/bacula-clientonly/options.mk | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 sysutils/bacula-clientonly/options.mk (limited to 'sysutils/bacula-clientonly') diff --git a/sysutils/bacula-clientonly/Makefile b/sysutils/bacula-clientonly/Makefile index 701c05e9608..9001e1f5eac 100644 --- a/sysutils/bacula-clientonly/Makefile +++ b/sysutils/bacula-clientonly/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2008/01/08 16:52:20 ghen Exp $ +# $NetBSD: Makefile,v 1.9 2008/09/30 15:20:30 joerg Exp $ PKGNAME= ${DISTNAME:S/-/-clientonly-/} PKGREVISION= 1 @@ -32,4 +32,6 @@ PLIST_SRC+= ${.CURDIR}/../../sysutils/bacula/PLIST.common_end post-install: ${INSTALL_DATA} ${WRKSRC}/scripts/dvd-handler ${DESTDIR}${EXAMPLESDIR} +.include "options.mk" + .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/bacula-clientonly/options.mk b/sysutils/bacula-clientonly/options.mk new file mode 100644 index 00000000000..974c6bbc145 --- /dev/null +++ b/sysutils/bacula-clientonly/options.mk @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.3 2008/09/30 15:20:30 joerg Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.bacula-clientonly +PKG_SUPPORTED_OPTIONS= bacula-static + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mbacula-static) +CONFIGURE_ARGS+= --enable-static-cons +CONFIGURE_ARGS+= --enable-static-dir +CONFIGURE_ARGS+= --enable-static-fd +CONFIGURE_ARGS+= --enable-static-sd +CONFIGURE_ARGS+= --enable-static-tools +PLIST_SUBST+= STATIC= +.else +PLIST_SUBST+= STATIC="@comment " +.endif + -- cgit v1.2.3