From ef6a82bdeb013bc6a1d2fd815d29a4e9264738e2 Mon Sep 17 00:00:00 2001 From: ijliao Date: Tue, 14 May 2002 08:19:03 +0000 Subject: add xstroke 0.5.12 Fullscreen gesture recognition --- x11/xstroke/Makefile | 31 +++++++++++++++++++++++++++++++ x11/xstroke/distinfo | 1 + x11/xstroke/files/patch-Imakefile | 15 +++++++++++++++ x11/xstroke/files/patch-etc::Imakefile | 8 ++++++++ x11/xstroke/files/patch-regex_feature.c | 10 ++++++++++ x11/xstroke/files/patch-regex_feature.h | 10 ++++++++++ x11/xstroke/pkg-comment | 1 + x11/xstroke/pkg-descr | 10 ++++++++++ x11/xstroke/pkg-plist | 3 +++ 9 files changed, 89 insertions(+) create mode 100644 x11/xstroke/Makefile create mode 100644 x11/xstroke/distinfo create mode 100644 x11/xstroke/files/patch-Imakefile create mode 100644 x11/xstroke/files/patch-etc::Imakefile create mode 100644 x11/xstroke/files/patch-regex_feature.c create mode 100644 x11/xstroke/files/patch-regex_feature.h create mode 100644 x11/xstroke/pkg-comment create mode 100644 x11/xstroke/pkg-descr create mode 100644 x11/xstroke/pkg-plist (limited to 'x11/xstroke') diff --git a/x11/xstroke/Makefile b/x11/xstroke/Makefile new file mode 100644 index 000000000000..b119524d5c2e --- /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 diff --git a/x11/xstroke/distinfo b/x11/xstroke/distinfo new file mode 100644 index 000000000000..07e5aced20c8 --- /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 000000000000..7d6a7e68e121 --- /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 000000000000..42af7775852c --- /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 000000000000..7e6e0b8a8a4f --- /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 + #include + #include + #include diff --git a/x11/xstroke/files/patch-regex_feature.h b/x11/xstroke/files/patch-regex_feature.h new file mode 100644 index 000000000000..d28c0974606d --- /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 + #include + + 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 000000000000..554ed8881f00 --- /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 000000000000..79fbf1c70253 --- /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 000000000000..0c1bac8c5d99 --- /dev/null +++ b/x11/xstroke/pkg-plist @@ -0,0 +1,3 @@ +bin/xstroke +etc/xstroke/alphabet +@dirrm etc/xstroke -- cgit