mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
6ba98c9b6f
a few triple slashes still remain) - Adjust MASTER_SITES to avoid "301 Moved Permanently" error after the website was moved to http://herbstluftwm.org/
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= herbstluftwm
|
|
PORTVERSION= 0.5.2
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= http://herbstluftwm.org/tarballs/
|
|
|
|
MAINTAINER= crshd@mail.com
|
|
COMMENT= Manual tiling window manager for X11
|
|
|
|
LICENSE= BSD
|
|
|
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
|
|
|
USE_GMAKE= yes
|
|
USE_XORG= x11 xinerama
|
|
USE_GNOME= glib20
|
|
|
|
MAKE_ARGS= PREFIX=${PREFIX} SYSCONFDIR=${PREFIX}/etc \
|
|
DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \
|
|
MANDIR=${PREFIX}/man
|
|
|
|
MAN1= herbstclient.1 herbstluftwm.1
|
|
MAN7= herbstluftwm-tutorial.7
|
|
|
|
OPTIONS_DEFINE= BASH ZSH DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MBASH}
|
|
PLIST_SUB+= BASH=""
|
|
.else
|
|
PLIST_SUB+= BASH="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MZSH}
|
|
PLIST_SUB+= ZSH=""
|
|
.else
|
|
PLIST_SUB+= ZSH="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '/-[LI]\/usr/s,/usr,${LOCALBASE},' \
|
|
${WRKSRC}/config.mk
|
|
${REINPLACE_CMD} -e '/LICENSEDIR/d' ${WRKSRC}/Makefile
|
|
${GREP} -Rl --null '^#!/bin/bash' ${WRKSRC} | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e 's,/bin/bash,/usr/bin/env bash,'
|
|
.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
|
|
|
|
.include <bsd.port.mk>
|