View | Details | Raw Unified | Return to bug 224345
Collapse All | Expand All

(-)x11/hhpc/Makefile (+31 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	hhpc
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	0.3.1
6
CATEGORIES=	x11
7
8
MAINTAINER=	dg@syrec.org
9
COMMENT=	Small X11 utility to hide the mouse pointer when unused
10
11
LICENSE=	BSD3CLAUSE
12
13
USES=		gmake pkgconfig
14
USE_XORG=	x11
15
USE_GITHUB=	yes
16
GH_ACCOUNT=	aktau
17
CFLAGS+=	-I${LOCALBASE}/include
18
ALL_TARGET=	release
19
20
PLIST_FILES=	bin/hhpc
21
22
PORTDOCS=	README.md
23
24
OPTIONS_DEFINE=	DOCS
25
26
do-install:
27
	${INSTALL_PROGRAM} ${WRKSRC}/hhpc ${STAGEDIR}${PREFIX}/bin/
28
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
29
	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
30
31
.include <bsd.port.mk>
(-)x11/hhpc/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1513268001
2
SHA256 (aktau-hhpc-v0.3.1_GH0.tar.gz) = f75cc4c4542d833e2aa9fbc3bfd2b658b6a21354d5d546dad49eb0efc6134417
3
SIZE (aktau-hhpc-v0.3.1_GH0.tar.gz) = 5487
(-)x11/hhpc/files/patch-Makefile (+23 lines)
Line 0 Link Here
1
--- Makefile.orig	2014-08-25 15:37:45 UTC
2
+++ Makefile
3
@@ -51,7 +51,7 @@ CFLAGS_COMMON ?= \
4
 	-pedantic \
5
 	-std=c99
6
 
7
-CFLAGS ?= $(CFLAGS_COMMON)
8
+CFLAGS += $(CFLAGS_COMMON)
9
 
10
 CC ?= cc $(CFLAGS)
11
 
12
@@ -66,10 +66,7 @@ debug: CFLAGS += $(WARN) \
13
 	-DDEBUG
14
 debug: $(EXECUTABLE)
15
 
16
-release: CFLAGS += \
17
-	-s \
18
-	-O2 \
19
-	-DNDEBUG
20
+release: CFLAGS += -DNDEBUG
21
 release: $(EXECUTABLE)
22
 
23
 $(EXECUTABLE): $(OBJECTS)
(-)x11/hhpc/pkg-descr (+13 lines)
Line 0 Link Here
1
hhpc is an utility that hides the mouse pointer in X11. It functions by
2
grabbing your mouse pointer at startup and replacing its bitmap with an
3
empty one (thus hiding it). Then, it waits for the X server to notify it
4
when a user tries to move or click the pointer. At this point, hhpc
5
relinquishes control, replays the action the user just tried to execute and
6
waits for the specified number of seconds (flag -i) before trying to grab
7
the pointer and hide it again.
8
9
Should hhpc not work out for you, unclutter is a good alternative. hhpc was
10
created because unclutter doesn't seem to interoperate properly with
11
hardware accelerated surfaces like those of video players using VAAPI.
12
13
WWW: https://github.com/aktau/hhpc

Return to bug 224345