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

(-)x11-wm/treewm/Makefile (-19 / +28 lines)
Lines 1-46 Link Here
1
# New ports collection makefile for:	treewm
1
# Created by: Rudolf Polzer
2
# Date created:		09 Sep 2003
3
# Whom:			Rudolf Polzer
4
#
5
# $FreeBSD: ports/x11-wm/treewm/Makefile,v 1.10 2008/04/19 17:56:00 miwi Exp $
2
# $FreeBSD: ports/x11-wm/treewm/Makefile,v 1.10 2008/04/19 17:56:00 miwi Exp $
6
#
7
3
8
PORTNAME=	treewm
4
PORTNAME=	treewm
9
PORTVERSION=	0.4.5
5
PORTVERSION=	0.4.5
10
PORTREVISION=	5
6
PORTREVISION=	6
11
CATEGORIES=	x11-wm
7
CATEGORIES=	x11-wm
12
MASTER_SITES=	SF
8
MASTER_SITES=	SF
13
9
14
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Window Manager that arranges the windows in a tree
11
COMMENT=	Window Manager that arranges the windows in a tree
16
12
13
LICENSE=	GPLv2
14
17
BUILD_DEPENDS=	xmkmf:${PORTSDIR}/devel/imake
15
BUILD_DEPENDS=	xmkmf:${PORTSDIR}/devel/imake
18
16
17
OPTIONS_DEFINE=	DOCS EXAMPLES
18
19
USE_BZIP2=	yes
19
USE_BZIP2=	yes
20
USE_GMAKE=	yes
21
USE_XORG=	x11 ice sm xext xmu xpm xt xxf86vm
20
USE_XORG=	x11 ice sm xext xmu xpm xt xxf86vm
21
USE_GMAKE=	yes
22
MAKE_JOBS_SAFE=	yes
22
23
23
PKGMESSAGE=	${WRKDIR}/pkg-message
24
SUB_FILES=	pkg-message
24
25
25
PORTDOCS=	AUTHORS ChangeLog INSTALL PROBLEMS README README.tiling TODO default.cfg sample.cfg
26
PORTDOCS=	AUTHORS ChangeLog INSTALL PROBLEMS README README.tiling TODO
27
PORTEXAMPLES=	default.cfg sample.cfg
26
28
27
post-patch:
29
.include <bsd.port.options.mk>
28
	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile
29
30
30
post-build:
31
post-patch:
31
	@${SED} 's|%%D%%|${DOCSDIR}|g' ${PKGDIR}/pkg-message >${PKGMESSAGE}
32
	@${REINPLACE_CMD} -e \
33
		'/^PREFIX/s| =| ?=| ; \
34
		 /^CXXFLAGS/s| =| ?=| ; \
35
		 s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile
32
36
33
do-install:
37
do-install:
34
	${MKDIR} ${DATADIR}
35
	${MKDIR} ${DATADIR}/pixmaps
36
	${INSTALL_PROGRAM} ${WRKSRC}/src/treewm ${PREFIX}/bin
38
	${INSTALL_PROGRAM} ${WRKSRC}/src/treewm ${PREFIX}/bin
37
	${INSTALL_PROGRAM} ${WRKSRC}/xprop/xprop ${PREFIX}/bin/xprop-treewm
39
	${INSTALL_PROGRAM} ${WRKSRC}/xprop/xprop ${PREFIX}/bin/xprop-treewm
38
	${INSTALL_PROGRAM} ${WRKSRC}/xkill/xkill ${PREFIX}/bin/xkill-treewm
40
	${INSTALL_PROGRAM} ${WRKSRC}/xkill/xkill ${PREFIX}/bin/xkill-treewm
41
	@${MKDIR} ${DATADIR}/pixmaps
39
	${INSTALL_DATA} ${WRKSRC}/src/pixmaps/*.xpm ${DATADIR}/pixmaps
42
	${INSTALL_DATA} ${WRKSRC}/src/pixmaps/*.xpm ${DATADIR}/pixmaps
40
.if !defined(NOPORTDOCS)
43
.if ${PORT_OPTIONS:MDOCS}
41
	${MKDIR} ${DOCSDIR}
44
	@${MKDIR} ${DOCSDIR}
42
.for FILE in ${PORTDOCS}
45
.for F in ${PORTDOCS}
43
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
46
	${INSTALL_DATA} ${WRKSRC}/${F} ${DOCSDIR}
47
.endfor
48
.endif
49
.if ${PORT_OPTIONS:MEXAMPLES}
50
	@${MKDIR} ${EXAMPLESDIR}
51
.for F in ${PORTEXAMPLES}
52
	${INSTALL_DATA} ${WRKSRC}/${F} ${EXAMPLESDIR}
44
.endfor
53
.endfor
45
.endif
54
.endif
46
	@${CAT} ${PKGMESSAGE}
55
	@${CAT} ${PKGMESSAGE}
(-)x11-wm/treewm/files/patch-xprop__xprop.c (+49 lines)
Line 0 Link Here
1
--- xprop/xprop.c.orig	2002-03-14 21:14:47.000000000 +0900
2
+++ xprop/xprop.c	2012-09-13 15:21:40.000000000 +0900
3
@@ -586,7 +586,7 @@
4
 {
5
 	if (--_buf_len<0) {
6
 		_buf_ptr[0]='\0';
7
-		return;
8
+		return 0;
9
 	}
10
 	_buf_ptr++[0] = c;
11
 }
12
@@ -1357,10 +1357,10 @@
13
     if (id == None) {
14
 	fprintf (stderr, "%s:  no such property \"%s\"\n",
15
 		 program_name, propname);
16
-	return;
17
+	return 0;
18
     }
19
     XDeleteProperty (dpy, w, id);
20
-    return;
21
+    return 0;
22
 }
23
 
24
 thunk *Handle_Prop_Requests(argc, argv)
25
@@ -1514,13 +1514,13 @@
26
   printf("%s", prop);
27
   if (!(atom = Parse_Atom(prop, True))) {
28
 	  printf(":  no such atom on any window.\n");
29
-	  return;
30
+	  return 0;
31
   }
32
 
33
   data = Get_Property_Data_And_Type(atom, &length, &type, &size);
34
   if (!size) {
35
           puts(":  not found.");
36
-	  return;
37
+	  return 0;
38
   }
39
 
40
   if (!notype && type)
41
@@ -1535,7 +1535,7 @@
42
   if (fsize!=size && fsize!=0) {
43
 	printf(": Type mismatch: assumed size %d bits, actual size %d bits.\n",
44
 	 fsize, size);
45
-	  return;
46
+	  return 0;
47
   }
48
 
49
   thunks = Break_Down_Property(data, (int)length, format, size);
(-)x11-wm/treewm/files/pkg-message.in (+14 lines)
Line 0 Link Here
1
--------------------------------------------------------------------------
2
3
The treewm package has been successfully installed.
4
5
NB:  Sample configuration files have been installed to
6
%%EXAMPLESDIR%% as "default.cfg" and "sample.cfg".
7
Users can look at them as well as the README in the same directory to
8
write their .treewmrc in their homedir. Also, please take a look at
9
10
  WWW: http://www.informatik.uni-frankfurt.de/~polzer/treewmdurchnull/downloads/treewm-examples-en.tar.bz2
11
12
for further hints and examples about configuring treewm.
13
14
--------------------------------------------------------------------------
(-)x11-wm/treewm/pkg-message (-14 lines)
Lines 1-14 Link Here
1
--------------------------------------------------------------------------
2
3
The treewm package has been successfully installed.
4
5
NB:  Sample configuration files have been installed to
6
%%D%% as "default.cfg" and "sample.cfg".
7
Users can look at them as well as the README in the same directory to
8
write their .treewmrc in their homedir. Also, please take a look at
9
10
  WWW: http://www.informatik.uni-frankfurt.de/~polzer/treewmdurchnull/downloads/treewm-examples-en.tar.bz2
11
12
for further hints and examples about configuring treewm.
13
14
--------------------------------------------------------------------------

Return to bug 172073