freebsd-ports/x11-wm/herbstluftwm/Makefile
John Marino 5c55d9fca8 x11-wm/herbsluftwm: Strip binary, allow disable install of default config
This eliminates need for shells/bash as a run dependency.  Assign
maintainership to submitter as well.

PR:		191549
Submitted by:	Zsolt Udvari
Approved by:	maintainer timeout (2.5 months)
2014-08-15 10:47:01 +00:00

53 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= herbstluftwm
PORTVERSION= 0.6.2
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= http://herbstluftwm.org/tarballs/
MAINTAINER= udvzsolt@gmail.com
COMMENT= Manual tiling window manager for X11
LICENSE= BSD2CLAUSE
USES= gmake pkgconfig shebangfix
SHEBANG_FILES= scripts/*.sh share/autostart share/*.sh
USE_XORG= x11 xinerama
USE_GNOME= glib20
MAKE_ARGS= PREFIX=${PREFIX} SYSCONFDIR=${PREFIX}/etc \
DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \
MANDIR=${PREFIX}/man
OPTIONS_DEFINE= BASH ZSH DOCS EXAMPLES DEFAULTCONF
DEFAULTCONF_DESC=Install default configuration (requires bash)
OPTIONS_DEFAULT+=DEFAULTCONF
OPTIONS_SUB= yes
DEFAULTCONF_RUN_DEPENDS=bash:${PORTSDIR}/shells/bash
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e '/LICENSEDIR/d' ${WRKSRC}/Makefile
.if ! ${PORT_OPTIONS:MBASH}
${REINPLACE_CMD} -e '/BASHCOMPLETIONDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MZSH}
${REINPLACE_CMD} -e '/ZSHCOMPLETIONDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MEXAMPLES}
${REINPLACE_CMD} -e '/EXAMPLESDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MDEFAULTCONF}
${REINPLACE_CMD} -e '/CONFIGDIR/d' ${WRKSRC}/Makefile
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/herbst*
.include <bsd.port.mk>