On Thu, Sep 13, 2007 at 11:43:11AM +0200, Catalin Stoian wrote:
> Can someone please update this wm in the ports tree to the latest
> version ? It is still a very old and unsupported version being present
> at the moment (3.1). There's already an unofficial one here:
> http://marc.info/?l=openbsd-ports&m=118151081820139&w=2 that I've
> tested and works, but it's not in the ports tree yet. I think the 4.2
> release would really deserve to have such a wonderful window manager
> in the official ports tree and as a package. Thanks in advance,
way, way too late for 4.2 release.
here's that port as a diff against the x11/wmii in-tree port,
with some tweaks.
testing on amd64 looks good so far.
Benoit, are you going to take over maintainership of this?
--
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org
Index: Makefile
===
RCS file: /home/cvs/OpenBSD/ports/x11/wmii/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile17 Jun 2007 09:06:03 - 1.6
+++ Makefile13 Sep 2007 10:23:08 -
@@ -1,12 +1,12 @@
-# $OpenBSD: Makefile,v 1.6 2007/06/17 09:06:03 steven Exp $
+# $OpenBSD$
-COMMENT= "dynamic window manager"
+COMMENT= dynamic window manager
-DISTNAME= wmii-3.1
-PKGNAME= ${DISTNAME}p2
-CATEGORIES=x11
+DISTNAME= wmii+ixp-20070516
+PKGNAME= ${DISTNAME:S/+ixp//}
+CATEGORIES=x11
-HOMEPAGE= http://wmii.suckless.org
+HOMEPAGE= http://www.suckless.org/wiki/wmii
# MIT/X
PERMIT_PACKAGE_CDROM= Yes
@@ -14,19 +14,13 @@
PERMIT_DISTFILES_CDROM=Yes
PERMIT_DISTFILES_FTP= Yes
-MASTER_SITES= ${HOMEPAGE}/download/
+WANTLIB= X11 Xext c m
-WANTLIB= X11 c m
+MASTER_SITES= http://www.suckless.org/snaps/
+EXTRACT_SUFX= .tgz
-USE_X11= Yes
-
-NO_REGRESS=Yes
-
-FAKE_FLAGS=SYSCONFDIR=${SYSCONFDIR}
-
-post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/wmii-3
- ${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/wmii-3/* \
- ${PREFIX}/share/examples/wmii-3
+USE_X11= Yes
+NO_REGRESS=Yes
.include
+
Index: distinfo
===
RCS file: /home/cvs/OpenBSD/ports/x11/wmii/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo5 Apr 2007 17:36:25 - 1.3
+++ distinfo13 Sep 2007 10:23:08 -
@@ -1,5 +1,5 @@
-MD5 (wmii-3.1.tar.gz) = EIFHpCg7120qduR7sMlrrA==
-RMD160 (wmii-3.1.tar.gz) = xauqCYKwNrja+iJHUbgNgmXBn1k=
-SHA1 (wmii-3.1.tar.gz) = NjtSIH0lBdWSGtvNqYE27iQKZz0=
-SHA256 (wmii-3.1.tar.gz) = k0KKTe/P+eFPKLkH8ifVZXBmqYOp719KbU5fq1bncWs=
-SIZE (wmii-3.1.tar.gz) = 60935
+MD5 (wmii+ixp-20070516.tgz) = LQvXOHCk0811xEVOBNvT2w==
+RMD160 (wmii+ixp-20070516.tgz) = bl2myZt3Aj6z6F+NKnfV9duk8tQ=
+SHA1 (wmii+ixp-20070516.tgz) = n1AfIwU+FaAWHAUNm3sRul+wBsE=
+SHA256 (wmii+ixp-20070516.tgz) = iuxAcxx794J7VzOvHad4fQJzS6Vrv+RZjpy/4iRGkQQ=
+SIZE (wmii+ixp-20070516.tgz) = 84114
Index: patches/patch-cmd_wm_area_c
===
RCS file: patches/patch-cmd_wm_area_c
diff -N patches/patch-cmd_wm_area_c
--- patches/patch-cmd_wm_area_c 17 Jun 2006 17:42:03 - 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -
@@ -1,11 +0,0 @@
cmd/wm/area.c.orig Sat Jun 17 13:44:30 2006
-+++ cmd/wm/area.c Sat Jun 17 19:39:01 2006
-@@ -150,7 +150,7 @@ place_client(Area *a, Client *c)
- static unsigned int mx, my;
- static Bool *field = nil;
- Bool fit = False;
-- unsigned int i, j, k, x, y, maxx, maxy, dx, dy, cx, cy, diff;
-+ unsigned int i, j, k, x, y, maxx, maxy, dx, dy, cx = 0, cy = 0, diff;
- XPoint p1 = {0, 0}, p2 = {0, 0};
- Frame *f = c->frame.data[c->sel];
-
Index: patches/patch-config_mk
===
RCS file: /home/cvs/OpenBSD/ports/x11/wmii/patches/patch-config_mk,v
retrieving revision 1.2
diff -u -r1.2 patch-config_mk
--- patches/patch-config_mk 17 Jun 2006 17:42:03 - 1.2
+++ patches/patch-config_mk 13 Sep 2007 10:23:08 -
@@ -1,22 +1,28 @@
config.mk.orig Sat Jun 17 13:44:29 2006
-+++ config.mk Sat Jun 17 19:28:41 2006
-@@ -2,8 +2,8 @@
+$OpenBSD$
+--- config.mk.orig Wed May 9 19:04:41 2007
config.mk Sun Jun 10 22:23:06 2007
+@@ -1,10 +1,10 @@
+ # Customize below to fit your system
# paths
- PREFIX = /usr/local
--CONFPREFIX = ${PREFIX}/etc
--MANPREFIX = ${PREFIX}/share/man
-+CONFPREFIX = ${SYSCONFDIR}
-+MANPREFIX = ${PREFIX}/man
+-PREFIX = /usr/local
++#PREFIX = /usr/local
+ BIN = ${PREFIX}/bin
+-MAN = ${PREFIX}/share/man
+-ETC = ${PREFIX}/etc
++MAN = ${PREFIX}/man
++ETC = ${PREFIX}/share/examples/wmii
+ LIBDIR = ${PREFIX}/lib
+ INCLUDE = ${PREFIX}/include
- X11INC = /usr/X11R6/include
- X11LIB = /usr/X11R6/lib
-@@ -14,7 +14,7 @@ VERSION =