Import xdotool, a nice little tool permitting to fake X mouse and keyboard
events, manipulate windows and desktops, search through existing windows.. ok ajacoutot@
This commit is contained in:
parent
1dc26641c5
commit
b50957a693
24
x11/xdotool/Makefile
Normal file
24
x11/xdotool/Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/06/13 05:33:52 landry Exp $
|
||||
|
||||
COMMENT= fake keyboard and mouse input
|
||||
|
||||
DISTNAME= xdotool-20080606
|
||||
CATEGORIES= x11
|
||||
|
||||
HOMEPAGE= http://www.semicomplete.com/projects/xdotool/
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://semicomplete.googlecode.com/files/
|
||||
|
||||
USE_X11= Yes
|
||||
WANTLIB= X11 Xau Xdmcp Xext Xtst c
|
||||
REGRESS_IS_INTERACTIVE= Yes
|
||||
|
||||
do-regress:
|
||||
cd ${WRKSRC} && /bin/sh ./t/no_crashes_please.sh
|
||||
.include <bsd.port.mk>
|
5
x11/xdotool/distinfo
Normal file
5
x11/xdotool/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (xdotool-20080606.tar.gz) = pKtub2IPvOcwDTyaFoX9UA==
|
||||
RMD160 (xdotool-20080606.tar.gz) = uJphY1MpN+h01X89loPy89jwo0k=
|
||||
SHA1 (xdotool-20080606.tar.gz) = 829esrdaAypunXsVKdLUKoIRKHk=
|
||||
SHA256 (xdotool-20080606.tar.gz) = TRYAzhNfEVq9GYaMSDeF1qPD3ciBW16PdMHt/2sWZHM=
|
||||
SIZE (xdotool-20080606.tar.gz) = 15548
|
43
x11/xdotool/patches/patch-Makefile
Normal file
43
x11/xdotool/patches/patch-Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2008/06/13 05:33:52 landry Exp $
|
||||
--- Makefile.orig Sun Jun 1 23:58:53 2008
|
||||
+++ Makefile Thu Jun 12 23:16:56 2008
|
||||
@@ -1,14 +1,14 @@
|
||||
-PREFIX=/usr/local
|
||||
-INSTALLBIN=/usr/local/bin
|
||||
-INSTALLMAN=/usr/local/man
|
||||
+PREFIX?=/usr/local
|
||||
+INSTALLBIN=${PREFIX}/bin
|
||||
+INSTALLMAN=${PREFIX}/man
|
||||
|
||||
-WARNFLAGS+=-pedantic -Wall -W -Wno-missing-field-initializers -Wundef \
|
||||
+WARNFLAGS+=-pedantic -Wall -W -Wundef \
|
||||
-Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast \
|
||||
-Wcast-align -Wwrite-strings -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wnested-externs -Winline \
|
||||
-Wdisabled-optimization
|
||||
|
||||
-CFLAGS=-pipe -std=c99 $(WARNFLAGS)
|
||||
+CFLAGS+=-pipe -std=c99 $(WARNFLAGS)
|
||||
|
||||
DEFAULT_LIBS=-L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst
|
||||
DEFAULT_INC=-I/usr/X11R6/include -I/usr/local/include
|
||||
@@ -40,16 +40,16 @@ clean:
|
||||
rm -f *.o xdotool xdotool.1 || true
|
||||
|
||||
xdo.o: xdo.c
|
||||
- gcc $(CFLAGS) -c xdo.c
|
||||
+ $(CC) $(CFLAGS) -c xdo.c
|
||||
|
||||
xdotool.o: xdotool.c
|
||||
- gcc $(CFLAGS) -c xdotool.c
|
||||
+ $(CC) $(CFLAGS) -c xdotool.c
|
||||
|
||||
xdo.c: xdo.h
|
||||
xdotool.c: xdo.h
|
||||
|
||||
xdotool: xdotool.o xdo.o
|
||||
- gcc $(CFLAGS) $(LDFLAGS) xdotool.o xdo.o -o $@
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) xdotool.o xdo.o -o $@
|
||||
|
||||
xdotool.1: xdotool.pod
|
||||
pod2man -c "" -r "" xdotool.pod > $@
|
18
x11/xdotool/patches/patch-t_no_crashes_please_sh
Normal file
18
x11/xdotool/patches/patch-t_no_crashes_please_sh
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-t_no_crashes_please_sh,v 1.1.1.1 2008/06/13 05:33:52 landry Exp $
|
||||
--- t/no_crashes_please.sh.orig Tue Jun 3 23:43:52 2008
|
||||
+++ t/no_crashes_please.sh Thu Jun 12 22:58:20 2008
|
||||
@@ -10,13 +10,7 @@ try () {
|
||||
fi
|
||||
}
|
||||
|
||||
-make -C ../ clean xdotool
|
||||
-if [ $? -ne 0 ] ; then
|
||||
- echo "Failure building xdotool."
|
||||
- exit 1
|
||||
-fi
|
||||
-
|
||||
-xdotool="../xdotool"
|
||||
+xdotool="./xdotool"
|
||||
|
||||
xterm -T xdotool_test_window -e 'sleep 300' &
|
||||
xterm_pid="$!"
|
4
x11/xdotool/pkg/DESCR
Normal file
4
x11/xdotool/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
xdotool lets you programatically (or manually) simulate keyboard input
|
||||
and mouse activity, move and resize windows, etc. It does this using
|
||||
X11's XTEST extension and other Xlib functions. It is a nice more
|
||||
powerful alternative to wmctrl and devilspie.
|
3
x11/xdotool/pkg/PLIST
Normal file
3
x11/xdotool/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/06/13 05:33:52 landry Exp $
|
||||
bin/xdotool
|
||||
@man man/man1/xdotool.1
|
Loading…
Reference in New Issue
Block a user