Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:52:10 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184888: x11-wm/treewm: Fix build
Message-ID:  <20131217025210.9d67e4cd6da63bd3393fa1dc@yahoo.com>
Resent-Message-ID: <201312161810.rBGIAO5Z016537@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184888
>Category:       ports
>Synopsis:       x11-wm/treewm: Fix build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 16 18:10:24 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build

New file:
files/patch-tile.cc

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/x11-wm/treewm/Makefile x11-wm/treewm/Makefile
--- /usr/ports/x11-wm/treewm/Makefile	2013-11-06 21:59:16.000000000 +0900
+++ x11-wm/treewm/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -12,37 +12,40 @@
 
 LICENSE=	GPLv2
 
-USES=		imake:env
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 USE_BZIP2=	yes
-USE_GMAKE=	yes
+USES=		gmake imake:env
 USE_XORG=	x11 ice sm xext xmu xpm xt xxf86vm
 
 PORTDOCS=	AUTHORS ChangeLog INSTALL PROBLEMS README README.tiling TODO
 PORTEXAMPLES=	default.cfg sample.cfg
 
-OPTIONS_DEFINE=	DOCS EXAMPLES
-
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 post-patch:
-	@${REINPLACE_CMD} -e '/^PREFIX/s| =| ?=| ; /^CXXFLAGS/s| =| ?=| ; \
-		s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e \
+		'/^PREFIX/s| =| ?=| ; \
+		 /^CXXFLAGS/s| =| ?=| ; \
+		 s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/src/treewm ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/xprop/xprop ${PREFIX}/bin/xprop-treewm
-	${INSTALL_PROGRAM} ${WRKSRC}/xkill/xkill ${PREFIX}/bin/xkill-treewm
-	@${MKDIR} ${DATADIR}/pixmaps
-	${INSTALL_DATA} ${WRKSRC}/src/pixmaps/*.xpm ${DATADIR}/pixmaps
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
-.endif
+	(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)
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for F in ${PORTDOCS}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${F} ${STAGEDIR}${DOCSDIR})
+.endfor
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+.for F in ${PORTEXAMPLES}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${F} ${STAGEDIR}${EXAMPLESDIR})
+.endfor
 
 .include <bsd.port.mk>
diff -urN /usr/ports/x11-wm/treewm/files/patch-tile.cc x11-wm/treewm/files/patch-tile.cc
--- /usr/ports/x11-wm/treewm/files/patch-tile.cc	1970-01-01 09:00:00.000000000 +0900
+++ x11-wm/treewm/files/patch-tile.cc	2013-12-17 00:00:00.000000000 +0900
@@ -0,0 +1,10 @@
+--- src/tile.cc.orig
++++ src/tile.cc
+@@ -5,6 +5,7 @@
+ #include <algorithm>
+ #include <stack>
+ //#include <stdio.h>
++#include <stdlib.h>
+ 
+ /* 
+  * changed<05.02.2003> by Rudolf Polzer: including namespace std (C++)
diff -urN /usr/ports/x11-wm/treewm/pkg-descr x11-wm/treewm/pkg-descr
--- /usr/ports/x11-wm/treewm/pkg-descr	2013-11-06 21:59:16.000000000 +0900
+++ x11-wm/treewm/pkg-descr	2013-12-17 00:00:00.000000000 +0900
@@ -1,21 +1,22 @@
-treewm is a window manager that tries to implement a new concept.  In addition
-to the client windows the user can create desktops which can themselves contain
-windows and desktops.  By arranging the windows in such a tree the user is able
-to manage his tasks efficiently  treewm is feature-rich, flexible and provides
-a powerful concept.  However, treewm's look is is rather puristic, and its feel
-is not always intuitive, but with a bit of practise it should be very effective
-to use.
+treewm is a window manager that tries to implement a new concept. In
+addition to the client windows the user can create desktops which can
+themselves contain windows and desktops. By arranging the windows in
+such a tree the user is able to manage his tasks efficiently treewm is
+feature-rich, flexible and provides a powerful concept. However,
+treewm's look is is rather puristic, and its feel is not always
+intuitive, but with a bit of practise it should be very effective to
+use.
 
 Short feature list (some of them are quite unique among window managers):
-
-  - Allows to create desktops and to arbitrarily move windows between desktops
-  - Many options (such as sticky, autoresize, always on top, or the focus or
-    raise policy) can be set for any desktop or window
+  - Allows to create desktops and to arbitrarily move windows between
+    desktops
+  - Many options (such as sticky, autoresize, always on top, or the
+    focus or raise policy) can be set for any desktop or window
   - Can be fully customized using the configuration file
-  - Has a very powerful (somewhat vi-like) command mode, and can be controlled
-    from shell scripts via a FIFO
+  - Has a very powerful (somewhat vi-like) command mode, and can be
+    controlled from shell scripts via a FIFO
   - Icons can be placed on desktops that can execute arbitrary commands
-  - Only uses very common libraries, in particular it doesn't require GTK, Qt,
-    or anything like that
+  - Only uses very common libraries, in particular it doesn't require
+    GTK, Qt, or anything like that
 
 WWW: http://treewm.sourceforge.net/
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131217025210.9d67e4cd6da63bd3393fa1dc>