Re-add spectrwm-git

There's at least one more user that wants this.
This commit is contained in:
pin 2020-08-11 07:43:13 +02:00
parent a5e927a9f1
commit 38690251d3
4 changed files with 105 additions and 0 deletions

View File

@ -4558,6 +4558,7 @@ SUBDIR+= spatt
SUBDIR+= spcm
SUBDIR+= spe
SUBDIR+= spectra
SUBDIR+= spectrwm-git
SUBDIR+= speedx
SUBDIR+= spfmilter
SUBDIR+= spice-gtk

24
spectrwm-git/DESCR Normal file
View File

@ -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.

63
spectrwm-git/Makefile Normal file
View File

@ -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"

17
spectrwm-git/PLIST Normal file
View File

@ -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