summaryrefslogtreecommitdiff
path: root/x11/xscreensaver/options.mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-05-14 18:55:50 +0000
committerwiz <wiz@pkgsrc.org>2006-05-14 18:55:50 +0000
commitba871fd775464b82f15b63e0ca584427236c0c06 (patch)
treea153eeb680e66da3ef27756a19ef338c64ff829f /x11/xscreensaver/options.mk
parent6f0c2f8fbcb0b2df4dbd3d03f6132ad9be863062 (diff)
downloadpkgsrc-ba871fd775464b82f15b63e0ca584427236c0c06.tar.gz
Do not install webcollage screensaver by default, since it downloads
random images from the web for display, which might include pornographic or otherwise unwanted pictures. I couldn't find a way to disable this globally by default while still installing it, so we just don't compile and install it now. Bump PKGREVISION for this change. Addresses PR 33310 by Hiroyuki Bessho. Split out options stuff to options.mk file. Add option to install the webcollage screensaver. Clean up a pkglint warning. Remove some gettext workaround; this should be fixed by adding the appropriate tool to USE_TOOLS instead.
Diffstat (limited to 'x11/xscreensaver/options.mk')
-rw-r--r--x11/xscreensaver/options.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/xscreensaver/options.mk b/x11/xscreensaver/options.mk
new file mode 100644
index 00000000000..e644d85a9c7
--- /dev/null
+++ b/x11/xscreensaver/options.mk
@@ -0,0 +1,20 @@
+# $NetBSD: options.mk,v 1.1 2006/05/14 18:55:50 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.xscreensaver
+PKG_SUPPORTED_OPTIONS= pam xscreensaver-webcollage
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpam)
+. include "../../mk/pam.buildlink3.mk"
+CONFIGURE_ARGS+= --with-pam
+.endif
+
+.if !empty(PKG_OPTIONS:Mxscreensaver-webcollage)
+PLIST_SRC= PLIST.webcollage PLIST
+.else
+post-install:
+ ${RM} ${PREFIX}/libexec/xscreensaver/config/webcollage.xml
+ ${RM} ${PREFIX}/libexec/xscreensaver/webcollage
+ ${RM} ${PREFIX}/man/man1/webcollage.1
+.endif