aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-05-14 16:19:03 +0800
committerijliao <ijliao@FreeBSD.org>2002-05-14 16:19:03 +0800
commitef6a82bdeb013bc6a1d2fd815d29a4e9264738e2 (patch)
treeed3fc5337fa879b1089c5e6d1e3295954f7b3c85
parent7de5f0562c64934cd9cd1e8f6db84d2ba7c3b058 (diff)
downloadfreebsd-ports-graphics-ef6a82bdeb013bc6a1d2fd815d29a4e9264738e2.tar.gz
freebsd-ports-graphics-ef6a82bdeb013bc6a1d2fd815d29a4e9264738e2.tar.zst
freebsd-ports-graphics-ef6a82bdeb013bc6a1d2fd815d29a4e9264738e2.zip
add xstroke 0.5.12
Fullscreen gesture recognition
-rw-r--r--x11/Makefile1
-rw-r--r--x11/xstroke/Makefile31
-rw-r--r--x11/xstroke/distinfo1
-rw-r--r--x11/xstroke/files/patch-Imakefile15
-rw-r--r--x11/xstroke/files/patch-etc::Imakefile8
-rw-r--r--x11/xstroke/files/patch-regex_feature.c10
-rw-r--r--x11/xstroke/files/patch-regex_feature.h10
-rw-r--r--x11/xstroke/pkg-comment1
-rw-r--r--x11/xstroke/pkg-descr10
-rw-r--r--x11/xstroke/pkg-plist3
10 files changed, 90 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index b876ca20dd1..c84146cec08 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -143,6 +143,7 @@
SUBDIR += xskyroot
SUBDIR += xsnow
SUBDIR += xstarroll
+ SUBDIR += xstroke
SUBDIR += xtacy
SUBDIR += xtattr
SUBDIR += xtermset
diff --git a/x11/xstroke/Makefile b/x11/xstroke/Makefile
new file mode 100644
index 00000000000..b119524d5c2
--- /dev/null
+++ b/x11/xstroke/Makefile
@@ -0,0 +1,31 @@
+# ex:ts=8
+# Ports collection makefile for: xstroke
+# Date created: May 14, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= xstroke
+PORTVERSION= 0.5.12
+CATEGORIES= x11
+MASTER_SITES= ftp://ftp.handhelds.org/pub/projects/xstroke/release-${PORTVERSION:R}/
+
+MAINTAINER= ports@FreeBSD.org
+
+LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+
+USE_BISON= yes
+USE_IMAKE= yes
+CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -lgnugetopt
+
+MAN1= xstroke.1
+
+post-patch:
+ @${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g ; \
+ s,%%CFLAGS%%,${CFLAGS},g ; \
+ s,%%LDFLAGS%%,${LDFLAGS},g" ${WRKSRC}/Imakefile
+ @${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/etc/Imakefile
+
+.include <bsd.port.mk>
diff --git a/x11/xstroke/distinfo b/x11/xstroke/distinfo
new file mode 100644
index 00000000000..07e5aced20c
--- /dev/null
+++ b/x11/xstroke/distinfo
@@ -0,0 +1 @@
+MD5 (xstroke-0.5.12.tar.gz) = 7ceca671324530cb78cfe02ce913e08a
diff --git a/x11/xstroke/files/patch-Imakefile b/x11/xstroke/files/patch-Imakefile
new file mode 100644
index 00000000000..7d6a7e68e12
--- /dev/null
+++ b/x11/xstroke/files/patch-Imakefile
@@ -0,0 +1,15 @@
+--- Imakefile.orig Tue Dec 11 06:17:11 2001
++++ Imakefile Tue May 14 16:06:49 2002
+@@ -1,9 +1,10 @@
+ #define IHaveSubdirs
+ SUBDIRS=etc
+-CDEBUGFLAGS=-g -ansi -ansi-error -Wall -pedantic
++CDEBUGFLAGS=%%CFLAGS%%
+ YFLAGS=-d
+-LOCAL_LIBRARIES=$(XTESTLIB) $(XLIB) $(XRENDERLIB) $(XFTLIB) -lm -ldl -lpthread
++LOCAL_LIBRARIES=$(XTESTLIB) $(XLIB) $(XRENDERLIB) $(XFTLIB) -lm -lpthread %%LDFLAGS%%
+ FLEX=flex
++YACC=bison -y
+ OBJS=xstroke.o args.o backing.o bresenham.o brush.o control_win.o stroke.o matrix.o \
+ action.o action_item.o feature.o gesture.o log.o option.o sprintf_alloc.o \
+ rec.o rec_callback.o rec_history.o rec_lex.o rec_mode.o rec_parse.o \
diff --git a/x11/xstroke/files/patch-etc::Imakefile b/x11/xstroke/files/patch-etc::Imakefile
new file mode 100644
index 00000000000..42af7775852
--- /dev/null
+++ b/x11/xstroke/files/patch-etc::Imakefile
@@ -0,0 +1,8 @@
+--- etc/Imakefile.orig Tue May 14 16:16:09 2002
++++ etc/Imakefile Tue May 14 16:16:18 2002
+@@ -1,4 +1,4 @@
+-CONFDIR=/etc/xstroke
++CONFDIR=%%PREFIX%%/etc/xstroke
+
+ all::
+
diff --git a/x11/xstroke/files/patch-regex_feature.c b/x11/xstroke/files/patch-regex_feature.c
new file mode 100644
index 00000000000..7e6e0b8a8a4
--- /dev/null
+++ b/x11/xstroke/files/patch-regex_feature.c
@@ -0,0 +1,10 @@
+--- regex_feature.c.orig Tue May 14 16:03:27 2002
++++ regex_feature.c Tue May 14 16:03:58 2002
+@@ -13,6 +13,7 @@
+ GNU General Public License for more details.
+ */
+
++#include <sys/types.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <regex.h>
diff --git a/x11/xstroke/files/patch-regex_feature.h b/x11/xstroke/files/patch-regex_feature.h
new file mode 100644
index 00000000000..d28c0974606
--- /dev/null
+++ b/x11/xstroke/files/patch-regex_feature.h
@@ -0,0 +1,10 @@
+--- regex_feature.h.orig Tue May 14 16:05:14 2002
++++ regex_feature.h Tue May 14 16:05:29 2002
+@@ -16,6 +16,7 @@
+ #ifndef REGEX_FEATURE_H
+ #define REGEX_FEATURE_H
+
++#include <sys/types.h>
+ #include <regex.h>
+
+ regex_t *regex_feature_alloc(char *regex_str);
diff --git a/x11/xstroke/pkg-comment b/x11/xstroke/pkg-comment
new file mode 100644
index 00000000000..554ed8881f0
--- /dev/null
+++ b/x11/xstroke/pkg-comment
@@ -0,0 +1 @@
+Fullscreen gesture recognition
diff --git a/x11/xstroke/pkg-descr b/x11/xstroke/pkg-descr
new file mode 100644
index 00000000000..79fbf1c7025
--- /dev/null
+++ b/x11/xstroke/pkg-descr
@@ -0,0 +1,10 @@
+xstroke is a full-screen gesture recognition program written for the X
+Window System. It captures gestures that are performed with a pointer
+device, (such as a mouse, a stylus, or a pen/tablet), recognizes the
+gestures and performs actions based on the gestures.
+
+xstroke is most commonly configured to "type" characters in response to
+gestures, but it can also emulate mouse button "clicks", launch programs,
+and other fun things.
+
+WWW: http://www.east.isi.edu/projects/DSN/xstroke/
diff --git a/x11/xstroke/pkg-plist b/x11/xstroke/pkg-plist
new file mode 100644
index 00000000000..0c1bac8c5d9
--- /dev/null
+++ b/x11/xstroke/pkg-plist
@@ -0,0 +1,3 @@
+bin/xstroke
+etc/xstroke/alphabet
+@dirrm etc/xstroke