diff options
author | zeising <zeising@FreeBSD.org> | 2018-06-17 17:16:55 +0800 |
---|---|---|
committer | zeising <zeising@FreeBSD.org> | 2018-06-17 17:16:55 +0800 |
commit | 52ffce8a3f936330d2c95bd5151e842c8354af03 (patch) | |
tree | 29f94befb8021e9cda78e58551ee41a1a24907ab /x11/xscreensaver | |
parent | 8a304f08a85ea21f2d64eda83c26098d7ac16cd7 (diff) | |
download | freebsd-ports-gnome-52ffce8a3f936330d2c95bd5151e842c8354af03.tar.gz freebsd-ports-gnome-52ffce8a3f936330d2c95bd5151e842c8354af03.tar.zst freebsd-ports-gnome-52ffce8a3f936330d2c95bd5151e842c8354af03.zip |
x11/xscreensaver: Add NSFW option
Add NSFW option that, when enabled, enables some NSFW wording in the BSOD
screensaver, in the ransomware picture.
Submitted by: jonathan
Differential Revision: https://reviews.freebsd.org/D15762
Diffstat (limited to 'x11/xscreensaver')
-rw-r--r-- | x11/xscreensaver/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/x11/xscreensaver/Makefile b/x11/xscreensaver/Makefile index e2de87d09281..36c81d3b1545 100644 --- a/x11/xscreensaver/Makefile +++ b/x11/xscreensaver/Makefile @@ -3,6 +3,7 @@ PORTNAME= xscreensaver PORTVERSION= 5.39 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= http://www.jwz.org/xscreensaver/ @@ -39,7 +40,7 @@ CONFIGURE_ARGS= --with-gtk --with-gl --with-gle --with-pixbuf --with-xpm \ --without-setuid-hacks --enable-locking MAKE_ARGS+= install_prefix=${STAGEDIR} -OPTIONS_DEFINE= PAM SETUID_HACKS FIREF NLS XAOS1 XDALI XEARTH \ +OPTIONS_DEFINE= PAM SETUID_HACKS FIREF NLS NSFW XAOS1 XDALI XEARTH \ XFT XMOUN XPLANET XSNOW OPTIONS_DEFAULT=XFT OPTIONS_SUB= yes @@ -54,6 +55,8 @@ FIREF_RUN_DEPENDS= ${LOCALBASE}/bin/xscreensaver-hacks/fireflies:x11/fireflies NLS_USES= gettext-runtime NLS_CONFIGURE_ENABLE= nls +NSFW_DESC= Include material that is Not Safe For Work + XAOS1_DESC= Add extra port graphics/xaos XAOS1_RUN_DEPENDS= xaos:graphics/xaos @@ -79,6 +82,10 @@ SUB_FILES= xscreensaver-blank.desktop xscreensaver-lock.desktop \ xscreensaver-start.desktop xscreensaver-stop.desktop post-patch: +.if empty(PORT_OPTIONS:NSFW) + ${REINPLACE_CMD} -e 's|Dick Pix|Stuff|' ${WRKSRC}/hacks/bsod.c + ${REINPLACE_CMD} -e 's|dick pics|data, etc.|' ${WRKSRC}/hacks/bsod.c +.endif ${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \ -e 's|pkg_config --list-all|pkg_config --help|' \ ${WRKSRC}/configure.in |