1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Minimalistic window manager for X11
8 HOMEPAGE= https://github.com/leahneukirchen/cwm
9 CONTACT= Michael_Neumann[mneumann@ntecs.de]
12 SITES[main]= GITHUB/leahneukirchen:cwm:v7.4
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 B_DEPS[linux]= libbsd:dev:standard
21 BR_DEPS[linux]= libbsd:primary:standard
23 USES= fontconfig:fc fonts gmake pkgconfig:build
24 solaris-funcs zlib:build
25 XORG_COMPONENTS= x11 xft xinerama xrandr
27 LICENSE= BSD2CLAUSE:single
28 LICENSE_FILE= BSD2CLAUSE:{{WRKDIR}}/LICENSE
29 LICENSE_AWK= BSD2CLAUSE:"^$$"
30 LICENSE_SOURCE= BSD2CLAUSE:{{WRKSRC}}/util.c
33 FPC_EQUIVALENT= x11-wm/cwm
34 SOL_FUNCTIONS= err.h:err.h
44 VAR_OPSYS[linux]= CFLAGS=-DLIBBSD_OVERLAY
45 CFLAGS=-I{{LOCALBASE}}/include/bsd
49 ${INSTALL_PROGRAM} ${WRKSRC}/cwm ${STAGEDIR}${PREFIX}/bin
50 ${INSTALL_MAN} ${WRKSRC}/cwm.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
51 ${INSTALL_MAN} ${WRKSRC}/cwmrc.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
53 [FILE:299:descriptions/desc.single]
54 cwm is a window manager for X11 initially inspired by evilwm. cwm has
55 several novel features, including the ability to search for windows. it
56 features a very simple and attractive aesthetic.
58 This port is based on OpenBSD's continued work on cwm, as development on
59 the project seems to have halted.
63 b4f275143c8c716d7df1cfbb230f888c72aa861708e144d1749858f1cc6fcac0 53781 leahneukirchen-cwm-7.4.tar.gz
66 [FILE:58:manifests/plist.single]
68 share/man/man1/cwm.1.gz
69 share/man/man5/cwmrc.5.gz
72 [FILE:400:patches/patch-Makefile]
73 --- Makefile.orig 2023-07-20 14:39:34 UTC
75 @@ -11,9 +11,8 @@ SRCS= calmwm.c screen.c xmalloc.c clien
77 OBJS= calmwm.o screen.o xmalloc.o client.o menu.o \
78 search.o util.o xutil.o conf.o xevents.o group.o \
79 - kbfunc.o strlcpy.o strlcat.o parse.o \
80 - strtonum.o reallocarray.o
84 PKG_CONFIG?= pkg-config
86 CPPFLAGS+= `${PKG_CONFIG} --cflags x11 xft xrandr`
89 [FILE:346:patches/patch-calmwm.c]
90 --- calmwm.c.orig 2023-07-20 14:39:34 UTC
92 @@ -231,9 +231,13 @@ sighdlr(int sig)
97 + (void)fprintf(stderr, "usage: cwm [-nv] [-c file] [-d display]\n");
99 extern char *__progname;
101 (void)fprintf(stderr, "usage: %s [-nv] [-c file] [-d display]\n",
108 [FILE:1029:patches/patch-kbfunc.c]
109 --- kbfunc.c.orig 2023-07-20 14:39:34 UTC
116 +#define _PATH_DEFPATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/raven/bin:/usr/raven/sbin"
123 @@ -654,6 +658,9 @@ kbfunc_menu_exec(void *ctx, struct cargs
126 int mflags = (CWM_MENU_DUMMY | CWM_MENU_FILE);
133 @@ -678,7 +685,12 @@ kbfunc_menu_exec(void *ctx, struct cargs
134 if (l == -1 || l >= sizeof(tpath))
136 /* Skip everything but regular files and symlinks. */
138 + stat(dp->d_name, &s);
139 + if (s.st_mode != S_IFDIR && s.st_mode != S_IFLNK) {
141 if (dp->d_type != DT_REG && dp->d_type != DT_LNK) {
143 /* lstat(2) in case d_type isn't supported. */
144 if (lstat(tpath, &sb) == -1)
148 [FILE:1531:sunos/patch-parse.y]
149 This needs to be regenerated -- will not apply
151 --- parse.y.orig 2020-01-04 20:45:17 UTC
156 #include <sys/types.h>
157 -#include <sys/queue.h>
169 +#include <sys/varargs.h>
172 +vasprintf(char **strp, const char *fmt, va_list args)
175 + int status, needed;
177 + va_copy(args_copy, args);
178 + needed = vsnprintf(NULL, 0, fmt, args_copy);
184 + *strp = (char *)malloc(needed + 1);
187 + status = vsnprintf(*strp, needed + 1, fmt, args);
198 +asprintf(char **strp, const char *fmt, ...)
203 + va_start(args, fmt);
204 + status = vasprintf(strp, fmt, args);
213 #define YYSTYPE_IS_DECLARED
214 @@ -600,7 +641,7 @@ parse_config(const char *filename, struc
215 if (stream == NULL) {
218 - warn("%s", filename);
219 + fprintf(stderr, "%s: %s\n", filename, strerror(errno));
222 file = pushfile(filename, stream);