diff options
author | wiz <wiz@pkgsrc.org> | 2013-07-26 17:55:37 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-07-26 17:55:37 +0000 |
commit | 965ea50d8a5f7d04b7aebcaee222b8c7451d422c (patch) | |
tree | 3b1891527316a54ce0e3ae653f1536e6c12acb1b /wm | |
parent | f48455eeea4ca591b2e726da101c8eba53958005 (diff) | |
download | pkgsrc-965ea50d8a5f7d04b7aebcaee222b8c7451d422c.tar.gz |
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.
Diffstat (limited to 'wm')
-rw-r--r-- | wm/spectrwm/DESCR | 24 | ||||
-rw-r--r-- | wm/spectrwm/Makefile | 53 | ||||
-rw-r--r-- | wm/spectrwm/PLIST | 21 | ||||
-rw-r--r-- | wm/spectrwm/distinfo | 6 | ||||
-rw-r--r-- | wm/spectrwm/patches/patch-linux_Makefile | 15 |
5 files changed, 119 insertions, 0 deletions
diff --git a/wm/spectrwm/DESCR b/wm/spectrwm/DESCR new file mode 100644 index 00000000000..98c2a2ea0e9 --- /dev/null +++ b/wm/spectrwm/DESCR @@ -0,0 +1,24 @@ +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. diff --git a/wm/spectrwm/Makefile b/wm/spectrwm/Makefile new file mode 100644 index 00000000000..1539be6b1de --- /dev/null +++ b/wm/spectrwm/Makefile @@ -0,0 +1,53 @@ +# $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" diff --git a/wm/spectrwm/PLIST b/wm/spectrwm/PLIST new file mode 100644 index 00000000000..d3032f8280d --- /dev/null +++ b/wm/spectrwm/PLIST @@ -0,0 +1,21 @@ +@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 diff --git a/wm/spectrwm/distinfo b/wm/spectrwm/distinfo new file mode 100644 index 00000000000..0758442eb4f --- /dev/null +++ b/wm/spectrwm/distinfo @@ -0,0 +1,6 @@ +$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 diff --git a/wm/spectrwm/patches/patch-linux_Makefile b/wm/spectrwm/patches/patch-linux_Makefile new file mode 100644 index 00000000000..a258610034a --- /dev/null +++ b/wm/spectrwm/patches/patch-linux_Makefile @@ -0,0 +1,15 @@ +$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) |