aboutsummaryrefslogtreecommitdiffstats
path: root/palm/makeztxt/files
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-10-21 07:10:16 +0800
committerkris <kris@FreeBSD.org>2002-10-21 07:10:16 +0800
commit7f7b331ebc8872b76df8f5641f979fc1599d5490 (patch)
treed18409876f570a1615e37fea74a0748acd90faac /palm/makeztxt/files
parentbb505acf32e824618bf9b0d22558985f7283761a (diff)
downloadfreebsd-ports-gnome-7f7b331ebc8872b76df8f5641f979fc1599d5490.tar.gz
freebsd-ports-gnome-7f7b331ebc8872b76df8f5641f979fc1599d5490.tar.zst
freebsd-ports-gnome-7f7b331ebc8872b76df8f5641f979fc1599d5490.zip
makeztxt is a simple command line program that takes a plain ASCII text file
and compresses it into a zTXT database. makeztxt will remove newline characters at the end of lines that contain text so that the paragraphs flow better on the Palm screen. Submitted by: Roman Shterenzon <romanbsd@yahoo.com>
Diffstat (limited to 'palm/makeztxt/files')
-rw-r--r--palm/makeztxt/files/patch-Makefile31
-rw-r--r--palm/makeztxt/files/patch-libztxt::ztxt.h10
-rw-r--r--palm/makeztxt/files/patch-libztxt::ztxt_generate_db.c10
-rw-r--r--palm/makeztxt/files/patch-libztxt::ztxt_init.c10
-rw-r--r--palm/makeztxt/files/patch-libztxt::ztxt_list_bookmarks.c10
-rw-r--r--palm/makeztxt/files/patch-libztxt::ztxt_process.c10
-rw-r--r--palm/makeztxt/files/patch-libztxt::ztxt_set.c10
7 files changed, 91 insertions, 0 deletions
diff --git a/palm/makeztxt/files/patch-Makefile b/palm/makeztxt/files/patch-Makefile
new file mode 100644
index 000000000000..f3282e6da984
--- /dev/null
+++ b/palm/makeztxt/files/patch-Makefile
@@ -0,0 +1,31 @@
+--- Makefile.orig Sat Oct 19 15:38:34 2002
++++ Makefile Sat Oct 19 15:40:04 2002
+@@ -9,8 +9,8 @@
+ LIBS = -lztxt
+ INCLUDE = -I../common -I.
+
+-CC = gcc
+-CFLAGS = -Wall -O2 -pipe $(INCLUDE)
++CC ?= cc
++CFLAGS += -Wall $(INCLUDE)
+ # GNU make is mandatory
+ #MAKE = make
+
+@@ -29,7 +29,7 @@
+ # more featureful and faster (on large strings) than POSIX regex.
+ # But... maybe you don't have GNU regex.
+ # In particular, if compiling with Cygwin, you need this.
+-#USEPOSIX = 1
++USEPOSIX = 1
+
+ # DOS, in all its infinite wisdom, decided long ago to differentiate between
+ # text files and binary files. Text files get their \n converted to \r\n and
+@@ -44,7 +44,7 @@
+
+ # If you're on a system that does not have getopt.h or does not have the
+ # getopt_long() function, comment this out. Regular getopt() will be used.
+-LONG_OPTS = 1
++#LONG_OPTS = 1
+
+
+ #####################################
diff --git a/palm/makeztxt/files/patch-libztxt::ztxt.h b/palm/makeztxt/files/patch-libztxt::ztxt.h
new file mode 100644
index 000000000000..ece5f2bf4a7f
--- /dev/null
+++ b/palm/makeztxt/files/patch-libztxt::ztxt.h
@@ -0,0 +1,10 @@
+--- libztxt/ztxt.h.old Sat Mar 2 07:03:18 2002
++++ libztxt/ztxt.h Sun Sep 29 15:46:52 2002
+@@ -31,6 +31,7 @@
+ #define _ZTXT_H_ 1
+
+
++#include <sys/types.h>
+ #include <regex.h>
+ #include "databaseHdrs.h"
+ #include <weasel_common.h>
diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_generate_db.c b/palm/makeztxt/files/patch-libztxt::ztxt_generate_db.c
new file mode 100644
index 000000000000..bb3f3843ffe7
--- /dev/null
+++ b/palm/makeztxt/files/patch-libztxt::ztxt_generate_db.c
@@ -0,0 +1,10 @@
+--- libztxt/ztxt_generate_db.c.old Sat Mar 2 07:03:18 2002
++++ libztxt/ztxt_generate_db.c Sun Sep 29 15:51:55 2002
+@@ -30,6 +30,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <sys/types.h>
+ #include <netinet/in.h>
+ #include <regex.h>
+ #include "ztxt.h"
diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_init.c b/palm/makeztxt/files/patch-libztxt::ztxt_init.c
new file mode 100644
index 000000000000..25463ba72d1f
--- /dev/null
+++ b/palm/makeztxt/files/patch-libztxt::ztxt_init.c
@@ -0,0 +1,10 @@
+--- libztxt/ztxt_init.c.old Sat Mar 2 07:03:18 2002
++++ libztxt/ztxt_init.c Sun Sep 29 15:52:33 2002
+@@ -30,6 +30,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <time.h>
++#include <sys/types.h>
+ #include <netinet/in.h>
+ #include "ztxt.h"
+
diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_list_bookmarks.c b/palm/makeztxt/files/patch-libztxt::ztxt_list_bookmarks.c
new file mode 100644
index 000000000000..01a83d076112
--- /dev/null
+++ b/palm/makeztxt/files/patch-libztxt::ztxt_list_bookmarks.c
@@ -0,0 +1,10 @@
+--- libztxt/ztxt_list_bookmarks.c.old Sat Mar 2 07:03:18 2002
++++ libztxt/ztxt_list_bookmarks.c Sun Sep 29 15:52:10 2002
+@@ -29,6 +29,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
++#include <sys/types.h>
+ #include <regex.h>
+
+ #include "ztxt.h"
diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_process.c b/palm/makeztxt/files/patch-libztxt::ztxt_process.c
new file mode 100644
index 000000000000..b874e67826d7
--- /dev/null
+++ b/palm/makeztxt/files/patch-libztxt::ztxt_process.c
@@ -0,0 +1,10 @@
+--- libztxt/ztxt_process.c.old Sat Mar 2 07:03:18 2002
++++ libztxt/ztxt_process.c Sun Sep 29 15:52:49 2002
+@@ -30,6 +30,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <sys/types.h>
+ #include <regex.h>
+ #include <zlib.h>
+ #include "ztxt.h"
diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_set.c b/palm/makeztxt/files/patch-libztxt::ztxt_set.c
new file mode 100644
index 000000000000..3985cc0fb2c6
--- /dev/null
+++ b/palm/makeztxt/files/patch-libztxt::ztxt_set.c
@@ -0,0 +1,10 @@
+--- libztxt/ztxt_set.c.old Sat Mar 2 07:03:18 2002
++++ libztxt/ztxt_set.c Sun Sep 29 15:52:21 2002
+@@ -28,6 +28,7 @@
+ */
+
+ #include <string.h>
++#include <sys/types.h>
+ #include <netinet/in.h>
+ #include "ztxt.h"
+