While playing with several window managers I came across pwm in ports.
It's old - some might say obsolete - but it works. Instead of removing
it, lets update it to the latest (final) release. From changelog:

        * Applied a window positioning patch by Juha-Matti Tilli.

While here update HOMEPAGE and switch to https.

Distfile of the version in ports is not hosted by upstream, the newer
one is.

(lightly) run tested on amd64.

Comments/OK?


diff --git Makefile Makefile
index c322abad475..f74fbeb742d 100644
--- Makefile
+++ Makefile
@@ -2,12 +2,11 @@
 
 COMMENT=               lightweight window manager with emphasis on usability
 
-DISTNAME=              pwm-20060517
-REVISION=              3
+DISTNAME=              pwm-20070720
 CATEGORIES=            x11
 FIX_EXTRACT_PERMISSIONS=Yes
 
-HOMEPAGE=              http://iki.fi/tuomov/
+HOMEPAGE=              https://tuomov.iki.fi/software/
 MASTER_SITES=          ${HOMEPAGE}dl/
 
 # GPL
diff --git distinfo distinfo
index 1e30b839b2e..d37bf1adb21 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (pwm-20060517.tar.gz) = qLE4a5BfOL91HK8ygypIOC84Pq+vhjF/iKqDGh8U504=
-SIZE (pwm-20060517.tar.gz) = 153106
+SHA256 (pwm-20070720.tar.gz) = mXuFwJLZqj7Uhr1iPExBIy8aw/sCWLBbR3MI3HmzY5k=
+SIZE (pwm-20070720.tar.gz) = 158213
diff --git patches/patch-Makefile patches/patch-Makefile
index e0a742b5a9d..a9fe24a3bb0 100644
--- patches/patch-Makefile
+++ patches/patch-Makefile
@@ -1,7 +1,8 @@
 $OpenBSD: patch-Makefile,v 1.4 2006/07/30 16:45:48 naddy Exp $
---- Makefile.orig      Tue May 16 23:50:33 2006
-+++ Makefile   Sun Jul 16 00:22:20 2006
-@@ -1,69 +1,33 @@
+Index: Makefile
+--- Makefile.orig
++++ Makefile
+@@ -1,70 +1,34 @@
 -##
 -## PWM Makefile
 -##
@@ -17,6 +18,7 @@ $OpenBSD: patch-Makefile,v 1.4 2006/07/30 16:45:48 naddy Exp $
 -DEFINES += -DETCDIR=\"$(ETCDIR)\"
 -CFLAGS += $(XOPEN_SOURCE)
 -TO_REALCLEAN += pwm.1x
+-TO_CLEAN += $(OBJS)
 -
  OBJS= main.o draw.o font.o frame.o event.o clientwin.o thing.o \
        property.o pointer.o key.o moveres.o cursor.o function.o \
@@ -26,30 +28,27 @@ $OpenBSD: patch-Makefile,v 1.4 2006/07/30 16:45:48 naddy 
Exp $
  
 -TARGETS=pwm
 +CFLAGS        += -DPREFIX=\"${PREFIX}\" -DETCDIR=\"${SYSCONFDIR}\" 
-Ilibtu/include -I${X11BASE}/include
-+  
+ 
+-######################################
 +LDFLAGS       += ${WARN} -Llibtu -ltu -lm -lX11 -L${X11BASE}/lib
-+  
+ 
+-include rules.mk
 +all: main
-+  
+ 
+-######################################
 +main:   ${OBJS}
 +      ${CC} ${OBJS} ${LDFLAGS} -o pwm
 +      sed -e 's#/usr/local/etc#${SYSCONFDIR}#g' -e 
's#PREFIX#${PREFIX}/share#g' pwm.1x.in > pwm.1x
  
--######################################
+-pwm: $(OBJS) pwm.1x
+-      $(CC) $(OBJS) $(LDFLAGS) -o $@
 +$(OBJS): libtu
  
--include rules.mk
+-pwm.1x: pwm.1x.in
+-      sed 's#PREFIX#$(PREFIX)#g' pwm.1x.in > pwm.1x
 +libtu::
 +      (cd ${.CURDIR}/libtu && ${MAKE})
  
--######################################
--
--pwm: $(OBJS) pwm.1x
--      $(CC) $(OBJS) $(LDFLAGS) -o $@
--
--pwm.1x: pwm.1x.in
--      sed 's#PREFIX#$(PREFIX)#g' pwm.1x.in > pwm.1x
--
 -_install:
 -      $(INSTALLDIR) $(BINDIR)
 -      $(INSTALL) -m $(BIN_MODE) pwm $(BINDIR)
@@ -84,7 +83,7 @@ $OpenBSD: patch-Makefile,v 1.4 2006/07/30 16:45:48 naddy Exp $
 -              echo "Installing sample configuration file 
$(ETCDIR)/pwm/pwm.conf"; \
 -              $(INSTALL) -m $(DATA_MODE) etc/pwm/sample.conf 
$(ETCDIR)/pwm/pwm.conf; \
 -      fi
--
+ 
 -
 -# Disclaimer: I don't have either Gnome or KDE.
 -
diff --git pkg/PLIST pkg/PLIST
index f5a5dc54d04..dc156a8c05b 100644
--- pkg/PLIST
+++ pkg/PLIST
@@ -1,6 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.8 2006/08/02 15:32:16 naddy Exp $
 @conflict ion-2.*
-bin/pwm
+@bin bin/pwm
 @man man/man1/pwm.1
 share/doc/pwm/
 share/doc/pwm/LICENSE

Reply via email to