View | Details | Raw Unified | Return to bug 184888
Collapse All | Expand All

(-)x11-wm/treewm/Makefile (-20 / +23 lines)
Lines 12-48 Link Here
12
12
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2
14
14
15
USES=		imake:env
15
OPTIONS_DEFINE=	DOCS EXAMPLES
16
16
17
USE_BZIP2=	yes
17
USE_BZIP2=	yes
18
USE_GMAKE=	yes
18
USES=		gmake imake:env
19
USE_XORG=	x11 ice sm xext xmu xpm xt xxf86vm
19
USE_XORG=	x11 ice sm xext xmu xpm xt xxf86vm
20
20
21
PORTDOCS=	AUTHORS ChangeLog INSTALL PROBLEMS README README.tiling TODO
21
PORTDOCS=	AUTHORS ChangeLog INSTALL PROBLEMS README README.tiling TODO
22
PORTEXAMPLES=	default.cfg sample.cfg
22
PORTEXAMPLES=	default.cfg sample.cfg
23
23
24
OPTIONS_DEFINE=	DOCS EXAMPLES
25
26
NO_STAGE=	yes
27
.include <bsd.port.options.mk>
24
.include <bsd.port.options.mk>
28
25
29
post-patch:
26
post-patch:
30
	@${REINPLACE_CMD} -e '/^PREFIX/s| =| ?=| ; /^CXXFLAGS/s| =| ?=| ; \
27
	@${REINPLACE_CMD} -e \
31
		s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile
28
		'/^PREFIX/s| =| ?=| ; \
29
		 /^CXXFLAGS/s| =| ?=| ; \
30
		 s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile
32
31
33
do-install:
32
do-install:
34
	${INSTALL_PROGRAM} ${WRKSRC}/src/treewm ${PREFIX}/bin
33
	(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} treewm \
35
	${INSTALL_PROGRAM} ${WRKSRC}/xprop/xprop ${PREFIX}/bin/xprop-treewm
34
		${STAGEDIR}${PREFIX}/bin)
36
	${INSTALL_PROGRAM} ${WRKSRC}/xkill/xkill ${PREFIX}/bin/xkill-treewm
35
	(cd ${WRKSRC}/xprop && ${INSTALL_PROGRAM} xprop \
37
	@${MKDIR} ${DATADIR}/pixmaps
36
		${STAGEDIR}${PREFIX}/bin/xprop-treewm)
38
	${INSTALL_DATA} ${WRKSRC}/src/pixmaps/*.xpm ${DATADIR}/pixmaps
37
	(cd ${WRKSRC}/xkill && ${INSTALL_PROGRAM} xkill \
39
.if ${PORT_OPTIONS:MDOCS}
38
		${STAGEDIR}${PREFIX}/bin/xkill-treewm)
40
	@${MKDIR} ${DOCSDIR}
39
	@${MKDIR} ${STAGEDIR}${DATADIR}/pixmaps
41
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
40
	(cd ${WRKSRC}/src/pixmaps && ${INSTALL_DATA} *.xpm \
42
.endif
41
		${STAGEDIR}${DATADIR}/pixmaps)
43
.if ${PORT_OPTIONS:MEXAMPLES}
42
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
44
	@${MKDIR} ${EXAMPLESDIR}
43
.for F in ${PORTDOCS}
45
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
44
	(cd ${WRKSRC} && ${INSTALL_DATA} ${F} ${STAGEDIR}${DOCSDIR})
46
.endif
45
.endfor
46
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
47
.for F in ${PORTEXAMPLES}
48
	(cd ${WRKSRC} && ${INSTALL_DATA} ${F} ${STAGEDIR}${EXAMPLESDIR})
49
.endfor
47
50
48
.include <bsd.port.mk>
51
.include <bsd.port.mk>
(-)x11-wm/treewm/files/patch-tile.cc (+10 lines)
Line 0 Link Here
1
--- src/tile.cc.orig
2
+++ src/tile.cc
3
@@ -5,6 +5,7 @@
4
 #include <algorithm>
5
 #include <stack>
6
 //#include <stdio.h>
7
+#include <stdlib.h>
8
 
9
 /* 
10
  * changed<05.02.2003> by Rudolf Polzer: including namespace std (C++)
(-)x11-wm/treewm/pkg-descr (-15 / +16 lines)
Lines 1-21 Link Here
1
treewm is a window manager that tries to implement a new concept.  In addition
1
treewm is a window manager that tries to implement a new concept. In
2
to the client windows the user can create desktops which can themselves contain
2
addition to the client windows the user can create desktops which can
3
windows and desktops.  By arranging the windows in such a tree the user is able
3
themselves contain windows and desktops. By arranging the windows in
4
to manage his tasks efficiently  treewm is feature-rich, flexible and provides
4
such a tree the user is able to manage his tasks efficiently treewm is
5
a powerful concept.  However, treewm's look is is rather puristic, and its feel
5
feature-rich, flexible and provides a powerful concept. However,
6
is not always intuitive, but with a bit of practise it should be very effective
6
treewm's look is is rather puristic, and its feel is not always
7
to use.
7
intuitive, but with a bit of practise it should be very effective to
8
use.
8
9
9
Short feature list (some of them are quite unique among window managers):
10
Short feature list (some of them are quite unique among window managers):
10
11
  - Allows to create desktops and to arbitrarily move windows between
11
  - Allows to create desktops and to arbitrarily move windows between desktops
12
    desktops
12
  - Many options (such as sticky, autoresize, always on top, or the focus or
13
  - Many options (such as sticky, autoresize, always on top, or the
13
    raise policy) can be set for any desktop or window
14
    focus or raise policy) can be set for any desktop or window
14
  - Can be fully customized using the configuration file
15
  - Can be fully customized using the configuration file
15
  - Has a very powerful (somewhat vi-like) command mode, and can be controlled
16
  - Has a very powerful (somewhat vi-like) command mode, and can be
16
    from shell scripts via a FIFO
17
    controlled from shell scripts via a FIFO
17
  - Icons can be placed on desktops that can execute arbitrary commands
18
  - Icons can be placed on desktops that can execute arbitrary commands
18
  - Only uses very common libraries, in particular it doesn't require GTK, Qt,
19
  - Only uses very common libraries, in particular it doesn't require
19
    or anything like that
20
    GTK, Qt, or anything like that
20
21
21
WWW: http://treewm.sourceforge.net/
22
WWW: http://treewm.sourceforge.net/

Return to bug 184888