Fri Jul 26 17:55:37 2013 UTC ()
Import spectrwm-2.2.0 as wm/spectrwm.

Based on a package by Lokesh Mandvekar <lsm5@fedoraproject.org>
and wm/scrotwm.

Spectrwm is a small dynamic tiling window manager for X11. It tries
to stay out of the way so that valuable screen real estate can be
used for much more important stuff. It has sane defaults and does
not require one to learn a language to do any configuration. It
was written by hackers for hackers and it strives to be small,
compact and fast.

It was largely inspired by xmonad and dwm. Both are fine products
but suffer from things like: crazy-unportable-language-syndrome,
silly defaults, asymmetrical window layout, "how hard can it be?"
and good old NIH. Nevertheless dwm was a phenomenal resource and
many good ideas and code was borrowed from it. On the other hand
xmonad has great defaults, key bindings and xinerama support but
is crippled by not being written in C.

Spectrwm is a beautiful pearl! For it too, was created by grinding
irritation. Nothing is a bigger waste of time than moving windows
around until they are the right size-ish or having just about any
relevant key combination being eaten for some task one never needs.
The path of agony is too long to quote and in classical OpenBSD
fashion (put up, or hack up) a brand new window manager was whooped
up to serve no other purpose than to obey its masters. It was
written by Marco Peereboom & Ryan Thomas McBride and it is released
under the ISC license.


(wiz)
diff -r0 -r1.1 pkgsrc/wm/spectrwm/DESCR
diff -r0 -r1.1 pkgsrc/wm/spectrwm/Makefile
diff -r0 -r1.1 pkgsrc/wm/spectrwm/PLIST
diff -r0 -r1.1 pkgsrc/wm/spectrwm/distinfo
diff -r0 -r1.1 pkgsrc/wm/spectrwm/patches/patch-linux_Makefile

File Added: pkgsrc/wm/spectrwm/DESCR
Spectrwm is a small dynamic tiling window manager for X11. It tries
to stay out of the way so that valuable screen real estate can be
used for much more important stuff. It has sane defaults and does
not require one to learn a language to do any configuration. It
was written by hackers for hackers and it strives to be small,
compact and fast.

It was largely inspired by xmonad and dwm. Both are fine products
but suffer from things like: crazy-unportable-language-syndrome,
silly defaults, asymmetrical window layout, "how hard can it be?"
and good old NIH. Nevertheless dwm was a phenomenal resource and
many good ideas and code was borrowed from it. On the other hand
xmonad has great defaults, key bindings and xinerama support but
is crippled by not being written in C.

Spectrwm is a beautiful pearl! For it too, was created by grinding
irritation. Nothing is a bigger waste of time than moving windows
around until they are the right size-ish or having just about any
relevant key combination being eaten for some task one never needs.
The path of agony is too long to quote and in classical OpenBSD
fashion (put up, or hack up) a brand new window manager was whooped
up to serve no other purpose than to obey its masters. It was
written by Marco Peereboom & Ryan Thomas McBride and it is released
under the ISC license.

File Added: pkgsrc/wm/spectrwm/Makefile
# $NetBSD: Makefile,v 1.1 2013/07/26 17:55:37 wiz Exp $

DISTNAME=	spectrwm-2.2.0
CATEGORIES=	wm
MASTER_SITES=	https://opensource.conformal.com/snapshots/spectrwm/
EXTRACT_SUFX=	.tgz

MAINTAINER=	lsm5@fedoraproject.org
HOMEPAGE=	https://opensource.conformal.com/wiki/spectrwm
COMMENT=	Small dynamic tiling window manager for X11

DEPENDS+=	dmenu-[0-9]*:../../x11/dmenu

BUILDLINK_TRANSFORM+=	rm:-Werror

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "OpenBSD"
USE_BSD_MAKEFILE=	yes
INSTALLATION_DIRS+=	bin lib ${PKGMANDIR}/man1
MAKE_FLAGS+=	MANDIR=${PREFIX}/${PKGMANDIR}
MAKE_FLAGS+=	MANINSTALL=maninstall
# sync with major.minor from ${WRKSRC}/lib/shlib_version.
CFLAGS+=	-DSWM_LIB=\"${PREFIX}/lib/libswmhack.so.0.0\"
.else
USE_TOOLS+=	gmake
CFLAGS+=	-I${X11PREFIX}/include
LDFLAGS+=	-L${X11PREFIX}/lib ${COMPILER_RPATH_FLAG}${X11PREFIX}/lib
MAKE_FLAGS+=	MANDIR=${PREFIX}/${PKGMANDIR}
.  if ${OPSYS} == "Darwin"
BUILD_DIRS=	osx
.  else
BUILD_DIRS=	linux
.  endif
.endif

INSTALLATION_DIRS+=	share/examples/spectrwm

post-install:
	${INSTALL_DATA} ${WRKSRC}/*.conf ${DESTDIR}${PREFIX}/share/examples/spectrwm
	${INSTALL_DATA} ${WRKSRC}/*.sh ${DESTDIR}${PREFIX}/share/examples/spectrwm

.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXcursor/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
BUILDLINK_DEPMETHOD.libXt=	build
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../x11/xproto/buildlink3.mk"
.include "../../x11/xcb-util/buildlink3.mk"
.include "../../x11/xcb-util-keysyms/buildlink3.mk"
.include "../../x11/xcb-util-wm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/wm/spectrwm/PLIST
@comment $NetBSD: PLIST,v 1.1 2013/07/26 17:55:37 wiz Exp $
bin/scrotwm
bin/spectrwm
lib/libswmhack.so.0.0
man/man1/spectrwm.1
man/man1/spectrwm_es.1
man/man1/spectrwm_it.1
man/man1/spectrwm_pt.1
man/man1/spectrwm_ru.1
share/examples/spectrwm/baraction.sh
share/examples/spectrwm/buildver.sh
share/examples/spectrwm/initscreen.sh
share/examples/spectrwm/release.sh
share/examples/spectrwm/screenshot.sh
share/examples/spectrwm/spectrwm.conf
share/examples/spectrwm/spectrwm_cz.conf
share/examples/spectrwm/spectrwm_es.conf
share/examples/spectrwm/spectrwm_fr.conf
share/examples/spectrwm/spectrwm_fr_ch.conf
share/examples/spectrwm/spectrwm_se.conf
share/examples/spectrwm/spectrwm_us.conf

File Added: pkgsrc/wm/spectrwm/distinfo
$NetBSD: distinfo,v 1.1 2013/07/26 17:55:37 wiz Exp $

SHA1 (spectrwm-2.2.0.tgz) = 217a4c9f93610e263fd4e9790780e94fab16519e
RMD160 (spectrwm-2.2.0.tgz) = 28359508612c63e4390b431a77b7a0fb42b2eeca
Size (spectrwm-2.2.0.tgz) = 107382 bytes
SHA1 (patch-linux_Makefile) = 804bbae49715516cd54b4fa44a660ae68b0e1feb

File Added: pkgsrc/wm/spectrwm/patches/Attic/patch-linux_Makefile
$NetBSD: patch-linux_Makefile,v 1.1 2013/07/26 17:55:37 wiz Exp $

Add rpath.

--- linux/Makefile.orig	2013-03-23 14:04:01.000000000 +0000
+++ linux/Makefile
@@ -32,7 +32,7 @@ spectrwm: spectrwm.o linux.o
 	$(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@
 
 libswmhack.so.$(LVERS): swm_hack.so
-	$(CC) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
+	$(CC) $(LDFLAGS) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
 
 install: all
 	install -m 755 -d $(DESTDIR)$(BINDIR)