aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/fvwm-crystal/Makefile
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-07-02 11:21:04 +0800
committervanilla <vanilla@FreeBSD.org>2014-07-02 11:21:04 +0800
commit0a46f7f8823519c1ede10dce4f743fa4a9502db9 (patch)
treeacc17ae68cf49f7a06d779a9a1858ba7d4a38e5b /x11-wm/fvwm-crystal/Makefile
parent04e031629e0e4deebcdae88604b34ef7b8bf4ed2 (diff)
downloadfreebsd-ports-gnome-0a46f7f8823519c1ede10dce4f743fa4a9502db9.tar.gz
freebsd-ports-gnome-0a46f7f8823519c1ede10dce4f743fa4a9502db9.tar.zst
freebsd-ports-gnome-0a46f7f8823519c1ede10dce4f743fa4a9502db9.zip
1: Stagify.
2: use options helper. 3: use INSTALL_TARGET to handle PORTDOCS Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'x11-wm/fvwm-crystal/Makefile')
-rw-r--r--x11-wm/fvwm-crystal/Makefile51
1 files changed, 10 insertions, 41 deletions
diff --git a/x11-wm/fvwm-crystal/Makefile b/x11-wm/fvwm-crystal/Makefile
index 0e318ef3fa6b..fd4161758065 100644
--- a/x11-wm/fvwm-crystal/Makefile
+++ b/x11-wm/fvwm-crystal/Makefile
@@ -13,14 +13,12 @@ COMMENT= Easy, eye-candy, light, and powerful window manager for X11
RUN_DEPENDS= fvwm>=2.5:${PORTSDIR}/x11-wm/fvwm2 \
bash:${PORTSDIR}/shells/bash
-USES= gettext gmake
+USES= gettext gmake shebangfix
+SHEBANG_FILES= addons/* bin/* fvwm/scripts/speed_value
USE_PYTHON= yes
MAKE_ENV= prefix="${PREFIX}" addondir="${DOCSDIR}/addons"
PORTDOCS= *
-MAN1= ApplicationDatabase.1 CrystalRoxHOWTO.1 FVWMCrystalFAQ.1 \
- KeyboardBindings.1 MouseBindings.1 Tips.1
-
OPTIONS_DEFINE= ROX IMAGEMAGICK XSCREENSAVER TRAYER SUDO HSETROOT CMUS DOCS
OPTIONS_DEFAULT= ROX IMAGEMAGICK XSCREENSAVER TRAYER SUDO HSETROOT
@@ -31,56 +29,27 @@ TRAYER_DESC= Tray (notification area) support
SUDO_DESC= Run text-based applications as superuser
HSETROOT_DESC= Allow to set desktop wallpaper
CMUS_DESC= Play music via audio/cmus player
+MROX_RUN_DEPENDS= rox:${PORTSDIR}/x11-fm/rox-filer
+IMAGEMAGICK_RUN_DEPENDS= display:${PORTSDIR}/graphics/ImageMagick
+XSCREENSAVER_RUN_DEPENDS= xscreensaver:${PORTSDIR}/x11/xscreensaver
+TRAYER_RUN_DEPENDS= trayer:${PORTSDIR}/x11/trayer
+SUDO_RUN_DEPENDS= sudo:${PORTSDIR}/security/sudo
+SETROOT_RUN_DEPENDS= hsetroot:${PORTSDIR}/graphics/hsetroot
+CMUS_RUN_DEPENDS= cmus:${PORTSDIR}/audio/cmus
-NO_STAGE= yes
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MROX}
-RUN_DEPENDS+= rox:${PORTSDIR}/x11-fm/rox-filer
-.endif
-
-.if ${PORT_OPTIONS:MIMAGEMAGICK}
-RUN_DEPENDS+= display:${PORTSDIR}/graphics/ImageMagick
-.endif
-
-.if ${PORT_OPTIONS:MXSCREENSAVER}
-RUN_DEPENDS+= xscreensaver:${PORTSDIR}/x11/xscreensaver
-.endif
-
-.if ${PORT_OPTIONS:MTRAYER}
-RUN_DEPENDS+= trayer:${PORTSDIR}/x11/trayer
-.endif
-
-.if ${PORT_OPTIONS:MSUDO}
-RUN_DEPENDS+= sudo:${PORTSDIR}/security/sudo
-.endif
-
-.if ${PORT_OPTIONS:MHSETROOT}
-RUN_DEPENDS+= hsetroot:${PORTSDIR}/graphics/hsetroot
-.endif
-
-.if ${PORT_OPTIONS:MCMUS}
-RUN_DEPENDS+= cmus:${PORTSDIR}/audio/cmus
-.endif
-
post-extract:
@cd ${WRKSRC} && ${FIND} . -depth -type d -name .svn \
-exec ${RM} -rf {} \;
.if ${PORT_OPTIONS:MDOCS}
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
-.else
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile_NODOC
+INSTALL_TARGET= install install-doc
.endif
post-patch:
@${REINPLACE_CMD} -e 's|cp -r -d|cp -r|; s|cp -d|cp|' \
${WRKSRC}/${MAKEFILE}
-.for i in addons/* bin/* fvwm/scripts/speed_value
- @${REINPLACE_CMD} -e 's|/bin/bash|${PREFIX}/bin/bash|g' ${WRKSRC}/${i}
- @${FIND} ${WRKSRC} -name '*.bak' -delete
-.endfor
-
scrivi:
${ECHO_CMD} ${LOCALBASE}
${ECHO_CMD} ${PREFIX}