Index: misc/unclutter-xfixes/Makefile =================================================================== --- /dev/null +++ misc/unclutter-xfixes/Makefile @@ -0,0 +1,28 @@ +# Created by: Oleg Gushchenkov +# $FreeBSD$ + +PORTNAME= unclutter-xfixes +PORTVERSION= 1.1 +DISTVERSIONPREFIX= v +CATEGORIES= misc + +MAINTAINER= gor@clogic.com.ua +COMMENT= Rewrite of unclutter using the x11-xfixes extension + +LICENSE= MIT + +LIB_DEPENDS= libev.so:devel/libev + +CONFLICTS= unclutter-8* + +USE_GITHUB= yes +GH_ACCOUNT= Airblader + +USE_XORG= x11 xi xfixes + +USES= gmake pkgconfig + +PLIST_FILES= bin/unclutter \ + man/man1/unclutter.1.gz + +.include Index: misc/unclutter-xfixes/distinfo =================================================================== --- /dev/null +++ misc/unclutter-xfixes/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1465305813 +SHA256 (Airblader-unclutter-xfixes-v1.1_GH0.tar.gz) = 91635c64a2075cb4e8926d84c09931c957e5f1d824a249cddb7ec109378090ad +SIZE (Airblader-unclutter-xfixes-v1.1_GH0.tar.gz) = 5812 Index: misc/unclutter-xfixes/files/patch-Makefile =================================================================== --- /dev/null +++ misc/unclutter-xfixes/files/patch-Makefile @@ -0,0 +1,44 @@ +Index: Makefile +=================================================================== +--- Makefile.orig 2016-05-16 09:27:55 UTC ++++ Makefile +@@ -4,12 +4,13 @@ IDIR = include + ODIR = obj + + INSTALL = install +-PREFIX = /usr/bin + +-MANDIR = /usr/share/man/man1 ++BINDIR = /bin ++MANDIR = /man/man1 + +-CC = gcc ++CC = cc + CFLAGS += -I$(IDIR) ++CFLAGS += -I/usr/local/include + CFLAGS += -std=gnu99 + CFLAGS += -Wall -Wundef -Wshadow -Wformat-security + LIBS = $(shell pkg-config --libs x11 xi xfixes) +@@ -32,17 +33,17 @@ $(TARGET): $(OBJS) + $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS) + + $(ODIR)/%.o: $(SDIR)/%.c $(INCS) +- $(CC) -D'__VERSION="$(shell git describe --all --long --always)"' $(CFLAGS) -o $@ -c $< ++ $(CC) -D'__VERSION="1.1"' $(CFLAGS) -o $@ -c $< + + .PHONY: install + install: $(TARGET) +- $(INSTALL) -Dm 0755 $(TARGET) $(DESTDIR)$(PREFIX)/$(TARGET) +- $(INSTALL) -Dm 0644 man/unclutter-xfixes.1 $(DESTDIR)$(MANDIR)/unclutter.1 ++ $(INSTALL) -s -m 0755 $(TARGET) $(DESTDIR)$(PREFIX)$(BINDIR)/$(TARGET) ++ $(INSTALL) -c -m 0644 man/unclutter-xfixes.1 $(DESTDIR)$(PREFIX)$(MANDIR)/$(TARGET).1 + + .PHONY: uninstall + uninstall: +- $(RM) $(DESTDIR)$(PREFIX)/$(TARGET) +- $(RM) $(DESTDIR)$(MANDIR)/unclutter.1 ++ $(RM) $(DESTDIR)$(PREFIX)$(BINDIR)/$(TARGET) ++ $(RM) $(DESTDIR)$(PREFIX)$(MANDIR)/$(TARGET).1 + + .PHONY: mans + mans: $(MANS) Index: misc/unclutter-xfixes/pkg-descr =================================================================== --- /dev/null +++ misc/unclutter-xfixes/pkg-descr @@ -0,0 +1,6 @@ +This is a rewrite of the popular tool unclutter, but using the x11-xfixes +extension. This means that this rewrite doesn't use fake windows or +pointer grabbing and hence causes less problems with window managers +and/or applications. + +WWW: https://github.com/Airblader/unclutter-xfixes