From 38690251d355ee31b5e0cca1d9d84824028a5bac Mon Sep 17 00:00:00 2001 From: pin Date: Tue, 11 Aug 2020 07:43:13 +0200 Subject: [PATCH] Re-add spectrwm-git There's at least one more user that wants this. --- Makefile | 1 + spectrwm-git/DESCR | 24 +++++++++++++++++ spectrwm-git/Makefile | 63 +++++++++++++++++++++++++++++++++++++++++++ spectrwm-git/PLIST | 17 ++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 spectrwm-git/DESCR create mode 100644 spectrwm-git/Makefile create mode 100644 spectrwm-git/PLIST diff --git a/Makefile b/Makefile index 3d6e8f6931..ba0e740b09 100644 --- a/Makefile +++ b/Makefile @@ -4558,6 +4558,7 @@ SUBDIR+= spatt SUBDIR+= spcm SUBDIR+= spe SUBDIR+= spectra +SUBDIR+= spectrwm-git SUBDIR+= speedx SUBDIR+= spfmilter SUBDIR+= spice-gtk diff --git a/spectrwm-git/DESCR b/spectrwm-git/DESCR new file mode 100644 index 0000000000..98c2a2ea0e --- /dev/null +++ b/spectrwm-git/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/spectrwm-git/Makefile b/spectrwm-git/Makefile new file mode 100644 index 0000000000..87f56306c1 --- /dev/null +++ b/spectrwm-git/Makefile @@ -0,0 +1,63 @@ +# $NetBSD$ + +DISTNAME= spectrwm-3.4.1 +CATEGORIES= wm + +MAINTAINER= pin@NetBSD.org +HOMEPAGE= https://github.com/conformal/spectrwm +COMMENT= Small dynamic tiling window manager for X11 +LICENSE= isc + +GIT_REPO= https://github.com/conformal/spectrwm.git + +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 +CFLAGS+= -I${PREFIX}/include +LDFLAGS+= -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib +MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR} +. if ${OPSYS} == "Darwin" +USE_TOOLS+= gmake +BUILD_DIRS= osx +. elif ${OPSYS} == "FreeBSD" +BUILD_DIRS= freebsd +. elif ${OPSYS} == "NetBSD" +BUILD_DIRS= netbsd +. else +USE_TOOLS+= gmake +BUILD_DIRS= linux +. endif +.endif + +INSTALLATION_DIRS+= share/examples/spectrwm + +post-extract: + ${RUN} cd ${WRKSRC} && ${CP} -R freebsd netbsd + +post-install: + ${INSTALL_DATA} ${WRKSRC}/*.conf ${DESTDIR}${PREFIX}/share/examples/spectrwm + ${INSTALL_DATA} ${WRKSRC}/*.sh ${DESTDIR}${PREFIX}/share/examples/spectrwm + +.include "../../wip/mk/git-package.mk" +.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/xorgproto/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/spectrwm-git/PLIST b/spectrwm-git/PLIST new file mode 100644 index 0000000000..c32e7d743e --- /dev/null +++ b/spectrwm-git/PLIST @@ -0,0 +1,17 @@ +@comment $NetBSD$ +bin/scrotwm +bin/spectrwm +lib/libswmhack.so.0.0 +man/man1/spectrwm.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