summaryrefslogtreecommitdiff
path: root/sysutils/bacula-clientonly
diff options
context:
space:
mode:
authorjoerg <joerg>2008-09-30 15:20:30 +0000
committerjoerg <joerg>2008-09-30 15:20:30 +0000
commitbc67a707333729a767eaba41f40aee6357f5f66f (patch)
tree9197750eaee6dad90336e74ada5e66f5b2467132 /sysutils/bacula-clientonly
parente76523910d8a70d87cd367d33ba686717c153b99 (diff)
downloadpkgsrc-bc67a707333729a767eaba41f40aee6357f5f66f.tar.gz
Add static option for clientonly package as well, fixing the build as
side effect.
Diffstat (limited to 'sysutils/bacula-clientonly')
-rw-r--r--sysutils/bacula-clientonly/Makefile4
-rw-r--r--sysutils/bacula-clientonly/options.mk18
2 files changed, 21 insertions, 1 deletions
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
+