From d3518f2c4a33e7ecf00194ed06408ecef1f26973 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 29 Jan 2018 18:41:00 +0000 Subject: [PATCH] New port: x11/wmutils-core: Set of window manipulation tools PR: 225141 Submitted by: Dmitri Goutnik Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D14113 --- x11/Makefile | 1 + x11/wmutils-core/Makefile | 28 ++++++++++++++++++++++++++ x11/wmutils-core/distinfo | 3 +++ x11/wmutils-core/files/patch-Makefile | 17 ++++++++++++++++ x11/wmutils-core/files/patch-config.mk | 15 ++++++++++++++ x11/wmutils-core/pkg-descr | 6 ++++++ x11/wmutils-core/pkg-plist | 27 +++++++++++++++++++++++++ 7 files changed, 97 insertions(+) create mode 100644 x11/wmutils-core/Makefile create mode 100644 x11/wmutils-core/distinfo create mode 100644 x11/wmutils-core/files/patch-Makefile create mode 100644 x11/wmutils-core/files/patch-config.mk create mode 100644 x11/wmutils-core/pkg-descr create mode 100644 x11/wmutils-core/pkg-plist diff --git a/x11/Makefile b/x11/Makefile index 67a3379a5198..6395830cecdb 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -351,6 +351,7 @@ SUBDIR += wmctrl SUBDIR += wmdrawer SUBDIR += wmmatrix + SUBDIR += wmutils-core SUBDIR += wmxss SUBDIR += workrave SUBDIR += x11perf diff --git a/x11/wmutils-core/Makefile b/x11/wmutils-core/Makefile new file mode 100644 index 000000000000..80a4a3ed9503 --- /dev/null +++ b/x11/wmutils-core/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= wmutils-core +DISTVERSIONPREFIX= v +DISTVERSION= 1.4 +CATEGORIES= x11 + +MAINTAINER= dg@syrec.org +COMMENT= Set of window manipulation tools + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libxcb-util.so:x11/xcb-util + +USES= localbase:ldflags +USE_XORG= xcb + +USE_GITHUB= yes +GH_ACCOUNT= wmutils +GH_PROJECT= core + +CONFLICTS= wtf # games/wtf + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* + +.include diff --git a/x11/wmutils-core/distinfo b/x11/wmutils-core/distinfo new file mode 100644 index 000000000000..792ac0b404a9 --- /dev/null +++ b/x11/wmutils-core/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1515851719 +SHA256 (wmutils-core-v1.4_GH0.tar.gz) = 44e16576b7f6e1f126c2cb249449ab7e10fd65289aff774ffaf27d2c15a7b2ba +SIZE (wmutils-core-v1.4_GH0.tar.gz) = 10333 diff --git a/x11/wmutils-core/files/patch-Makefile b/x11/wmutils-core/files/patch-Makefile new file mode 100644 index 000000000000..55796e9d82d2 --- /dev/null +++ b/x11/wmutils-core/files/patch-Makefile @@ -0,0 +1,17 @@ +--- Makefile.orig 2017-01-25 13:19:03 UTC ++++ Makefile +@@ -30,12 +30,10 @@ binutils: $(BIN) + $(OBJ): $(HDR) util.o + + .o: +- @echo "LD $@" +- @$(LD) $< util.o -o $@ $(LDFLAGS) ++ $(LD) $< util.o -o $@ $(LDFLAGS) + + .c.o: +- @echo "CC $<" +- @$(CC) -c $< -o $@ $(CFLAGS) ++ $(CC) -c $< -o $@ $(CFLAGS) + + install: $(BIN) + mkdir -p $(DESTDIR)$(PREFIX)/bin/ diff --git a/x11/wmutils-core/files/patch-config.mk b/x11/wmutils-core/files/patch-config.mk new file mode 100644 index 000000000000..dfcf515a4d1f --- /dev/null +++ b/x11/wmutils-core/files/patch-config.mk @@ -0,0 +1,15 @@ +--- config.mk.orig 2017-01-25 13:19:03 UTC ++++ config.mk +@@ -1,9 +1,9 @@ +-PREFIX = /usr ++PREFIX ?= /usr/local + MANPREFIX = $(PREFIX)/man + + CC = cc + LD = $(CC) + +-CFLAGS = -std=c99 -pedantic -Wall -Os +-LDFLAGS = -lxcb -lxcb-util ++CFLAGS := -std=c99 -pedantic -Wall $(CFLAGS) ++LDFLAGS := -lxcb -lxcb-util $(LDFLAGS) + diff --git a/x11/wmutils-core/pkg-descr b/x11/wmutils-core/pkg-descr new file mode 100644 index 000000000000..c2b80a51061b --- /dev/null +++ b/x11/wmutils-core/pkg-descr @@ -0,0 +1,6 @@ +wmutils-core is a set of tools for X windows manipulation. Each tool only +has one purpose, to make it as flexible and reliable as possible. Included +tools allow window listing, moving, resizing, focusing, changing window +order and more. + +WWW: https://github.com/wmutils/core diff --git a/x11/wmutils-core/pkg-plist b/x11/wmutils-core/pkg-plist new file mode 100644 index 000000000000..32419a10cc9c --- /dev/null +++ b/x11/wmutils-core/pkg-plist @@ -0,0 +1,27 @@ +bin/chwb +bin/chwso +bin/ignw +bin/killw +bin/lsw +bin/mapw +bin/pfw +bin/wattr +bin/wmp +bin/wmv +bin/wrs +bin/wtf +bin/wtp +man/man1/chwb.1.gz +man/man1/chwso.1.gz +man/man1/ignw.1.gz +man/man1/killw.1.gz +man/man1/lsw.1.gz +man/man1/mapw.1.gz +man/man1/pfw.1.gz +man/man1/wattr.1.gz +man/man1/wmp.1.gz +man/man1/wmutils.1.gz +man/man1/wmv.1.gz +man/man1/wrs.1.gz +man/man1/wtf.1.gz +man/man1/wtp.1.gz