1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/x11-wm/treewm/Makefile
2021-04-06 16:31:07 +02:00

55 lines
1.4 KiB
Makefile

# Created by: Rudolf Polzer <freebsd-dr@durchnull.de>
PORTNAME= treewm
PORTVERSION= 0.4.5
PORTREVISION= 6
CATEGORIES= x11-wm
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Window manager that arranges windows in a tree
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake imake:env tar:bzip2 xorg
USE_XORG= x11 ice sm xext xmu xpm xt xxf86vm
PORTDOCS= AUTHORS ChangeLog PROBLEMS README README.tiling TODO
PORTEXAMPLES= default.cfg sample.cfg
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e \
'/^PREFIX/s| =| ?=| ; \
/^CXXFLAGS/s| =| ?=| ; \
s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
'/DF_GRABKEYBOARD/s|1L|1UL|' ${WRKSRC}/src/client.h
do-install:
(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} treewm \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/xprop && ${INSTALL_PROGRAM} xprop \
${STAGEDIR}${PREFIX}/bin/xprop-treewm)
(cd ${WRKSRC}/xkill && ${INSTALL_PROGRAM} xkill \
${STAGEDIR}${PREFIX}/bin/xkill-treewm)
@${MKDIR} ${STAGEDIR}${DATADIR}/pixmaps
(cd ${WRKSRC}/src/pixmaps && ${INSTALL_DATA} *.xpm \
${STAGEDIR}${DATADIR}/pixmaps)
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for F in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${F} ${STAGEDIR}${DOCSDIR}
.endfor
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for F in ${PORTEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${F} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>