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:v6.6
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 USES= pkgconfig:build fonts solaris-funcs
21 XORG_COMPONENTS= x11 xft xinerama xrandr
23 LICENSE= BSD2CLAUSE:single
24 LICENSE_FILE= BSD2CLAUSE:{{WRKSRC}}/BSD2CLAUSE
27 SOL_FUNCTIONS= err.h:err.h
38 ${INSTALL_PROGRAM} ${WRKSRC}/cwm ${STAGEDIR}${PREFIX}/bin
39 ${INSTALL_MAN} ${WRKSRC}/cwm.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
40 ${INSTALL_MAN} ${WRKSRC}/cwmrc.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
42 [FILE:299:descriptions/desc.single]
43 cwm is a window manager for X11 initially inspired by evilwm. cwm has
44 several novel features, including the ability to search for windows. it
45 features a very simple and attractive aesthetic.
47 This port is based on OpenBSD's continued work on cwm, as development on
48 the project seems to have halted.
52 223d086dbebfb2f35f05af0c72c3d1b04fdd341123121c65105524ebd605655c 53062 leahneukirchen-cwm-6.6.tar.gz
55 [FILE:58:manifests/plist.single]
57 share/man/man1/cwm.1.gz
58 share/man/man5/cwmrc.5.gz
61 [FILE:346:patches/patch-calmwm.c]
62 --- calmwm.c.orig 2020-01-04 20:45:17 UTC
64 @@ -225,9 +225,13 @@ sighdlr(int sig)
69 + (void)fprintf(stderr, "usage: cwm [-nv] [-c file] [-d display]\n");
71 extern char *__progname;
73 (void)fprintf(stderr, "usage: %s [-nv] [-c file] [-d display]\n",
80 [FILE:1029:patches/patch-kbfunc.c]
81 --- kbfunc.c.orig 2020-01-04 20:45:17 UTC
88 +#define _PATH_DEFPATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/raven/bin:/usr/raven/sbin"
95 @@ -597,6 +601,9 @@ kbfunc_menu_exec(void *ctx, struct cargs
98 int mflags = (CWM_MENU_DUMMY | CWM_MENU_FILE);
105 @@ -621,7 +628,12 @@ kbfunc_menu_exec(void *ctx, struct cargs
106 if (l == -1 || l >= sizeof(tpath))
108 /* Skip everything but regular files and symlinks. */
110 + stat(dp->d_name, &s);
111 + if (s.st_mode != S_IFDIR && s.st_mode != S_IFLNK) {
113 if (dp->d_type != DT_REG && dp->d_type != DT_LNK) {
115 /* lstat(2) in case d_type isn't supported. */
116 if (lstat(tpath, &sb) == -1)
120 [FILE:1483:patches/patch-parse.y]
121 --- parse.y.orig 2020-01-04 20:45:17 UTC
126 #include <sys/types.h>
127 -#include <sys/queue.h>
139 +#include <sys/varargs.h>
142 +vasprintf(char **strp, const char *fmt, va_list args)
145 + int status, needed;
147 + va_copy(args_copy, args);
148 + needed = vsnprintf(NULL, 0, fmt, args_copy);
154 + *strp = (char *)malloc(needed + 1);
157 + status = vsnprintf(*strp, needed + 1, fmt, args);
168 +asprintf(char **strp, const char *fmt, ...)
173 + va_start(args, fmt);
174 + status = vasprintf(strp, fmt, args);
183 #define YYSTYPE_IS_DECLARED
184 @@ -600,7 +641,7 @@ parse_config(const char *filename, struc
185 if (stream == NULL) {
188 - warn("%s", filename);
189 + fprintf(stderr, "%s: %s\n", filename, strerror(errno));
192 file = pushfile(filename, stream);