the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: xless
Version: 1.7
Revision: 3
Distribution: 10.4, 10.5
BuildDepends: fink (>= 0.24.12-1), x11-dev
Depends: app-defaults, x11
Maintainer: None
Source: ftp://metalab.unc.edu/pub/X11/contrib/applications/%n-%v.tar.gz
Source-MD5: 8b6322b7f08be533380ca2a32b7f2963
PatchFile: %n.patch
PatchFile-MD5: 9ae40ff0a3ce75753549dc7a74ad7b75
SetCPPFLAGS: -I/usr/X11R6/include -I/usr/X11/include
SetLDFLAGS: -L/usr/X11R6/lib -L/usr/X11/lib
CompileScript: <<
make xless DEFINES='-DHELPFILE=\"%p/share/doc/%n/xless.help\" -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" -DTILDE_EXPANSION'
<<
InstallScript: <<
mkdir -p %i/bin
cp xless %i/bin
mkdir -p %i/etc/app-defaults
cp XLess-co.ad %i/etc/app-defaults/XLess-co
cp XLess.ad %i/etc/app-defaults/XLess
mkdir -p %i/share/man/man1
cp xless.man %i/share/man/man1/xless.1
<<
DocFiles: README CHANGES TODO xless.help
Description: X-Window based replacement for more/less
DescDetail: <<
It allows filename(s) arguments, or input via STDIN.
It can print the current buffer and do regular expression searches.
<<
DescPort: <<
Rely lots of things that are now in standard system headers.
Overhaul build for normal Makefile instead of xmkmf cruft.
<<
License: OSI-Approved
diff -Nurd xless-1.7.orig/Makefile xless-1.7/Makefile
--- xless-1.7.orig/Makefile 1969-12-31 19:00:00.000000000 -0500
+++ xless-1.7/Makefile 2008-04-06 15:55:08.000000000 -0400
@@ -0,0 +1,15 @@
+SRCS = help.c init.c popup.c util.c callbacks.c window.c main.c \
+ actions.c functions.c
+OBJS = help.o init.o popup.o util.o callbacks.o window.o main.o \
+ actions.o functions.o
+
+LIBS = regexp/libregexp.a -lXaw -lXmu -lXt -lX11
+
+.c.o:
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c -o $@ $<
+
+regexp/libregexp.a:
+ $(MAKE) $(MAKEFLAGS) -C regexp
+
+xless: regexp/libregexp.a $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ $(OBJS)
diff -Nurd xless-1.7.orig/callbacks.c xless-1.7/callbacks.c
--- xless-1.7.orig/callbacks.c 1994-07-28 22:29:23.000000000 -0400
+++ xless-1.7/callbacks.c 2008-04-06 15:18:31.000000000 -0400
@@ -21,6 +21,7 @@
* $Header: /usr/sww/share/src/X11R6/local/applications/xless-1.7/RCS/callbacks.c,v 1.37 1994/07/29 02:28:14 dglo Exp $
*/
+#include
#include
#include
#include
diff -Nurd xless-1.7.orig/functions.c xless-1.7/functions.c
--- xless-1.7.orig/functions.c 1994-06-02 16:45:40.000000000 -0400
+++ xless-1.7/functions.c 2008-04-06 16:03:30.000000000 -0400
@@ -21,6 +21,7 @@
* $Header: /usr/sww/share/src/X11R6/local/applications/xless-1.5/RCS/functions.c,v 1.11 1994/06/02 20:45:12 dglo Exp $
*/
+#include
#include
#include
diff -Nurd xless-1.7.orig/init.c xless-1.7/init.c
--- xless-1.7.orig/init.c 1994-07-28 23:08:43.000000000 -0400
+++ xless-1.7/init.c 2008-04-06 15:06:25.000000000 -0400
@@ -21,6 +21,7 @@
* $Header: /usr/sww/share/src/X11R6/local/applications/xless-1.7/RCS/init.c,v 1.45 1994/07/29 03:07:33 dglo Exp $
*/
+#include
#include
#include
#include
diff -Nurd xless-1.7.orig/main.c xless-1.7/main.c
--- xless-1.7.orig/main.c 1994-07-28 22:57:15.000000000 -0400
+++ xless-1.7/main.c 2008-04-06 16:03:07.000000000 -0400
@@ -21,6 +21,7 @@
* $Header: /usr/sww/share/src/X11R6/local/applications/xless-1.7/RCS/main.c,v 1.36 1994/07/29 02:55:50 dglo Exp $
*/
+#include
#include
#include
diff -Nurd xless-1.7.orig/regexp/Makefile xless-1.7/regexp/Makefile
--- xless-1.7.orig/regexp/Makefile 1969-12-31 19:00:00.000000000 -0500
+++ xless-1.7/regexp/Makefile 2008-04-06 15:57:52.000000000 -0400
@@ -0,0 +1,9 @@
+SRCS = regerror.c regexp.c regsub.c
+OBJS = regerror.o regexp.o regsub.o
+
+.c.o:
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c -o $@ $<
+
+libregexp.a: $(OBJS)
+ ar rv $@ $(OBJS)
+ ranlib $@
diff -Nurd xless-1.7.orig/regexp/regerror.c xless-1.7/regexp/regerror.c
--- xless-1.7.orig/regexp/regerror.c 1991-02-24 17:15:07.000000000 -0500
+++ xless-1.7/regexp/regerror.c 2008-04-06 15:58:28.000000000 -0400
@@ -1,4 +1,4 @@
-#include
+#include "regexp.h"
#include
void
diff -Nurd xless-1.7.orig/regexp/regexp.c xless-1.7/regexp/regexp.c
--- xless-1.7.orig/regexp/regexp.c 1991-05-07 21:14:54.000000000 -0400
+++ xless-1.7/regexp/regexp.c 2008-04-06 15:58:20.000000000 -0400
@@ -32,7 +32,7 @@
* precedence is structured in regular expressions. Serious changes in
* regular-expression syntax might require a total rethink.
*/
-#include
+#include "regexp.h"
#include
#include
#include
diff -Nurd xless-1.7.orig/regexp/regsub.c xless-1.7/regexp/regsub.c
--- xless-1.7.orig/regexp/regsub.c 1994-06-16 18:29:08.000000000 -0400
+++ xless-1.7/regexp/regsub.c 2008-04-06 15:58:15.000000000 -0400
@@ -18,7 +18,7 @@
* 3. Altered versions must be plainly marked as such, and must not
* be misrepresented as being the original software.
*/
-#include
+#include "regexp.h"
#include
#include
#include "regmagic.h"
diff -Nurd xless-1.7.orig/util.c xless-1.7/util.c
--- xless-1.7.orig/util.c 1994-06-16 18:33:55.000000000 -0400
+++ xless-1.7/util.c 2008-04-06 15:07:07.000000000 -0400
@@ -22,6 +22,7 @@
*/
+#include
#include
#include
diff -Nurd xless-1.7.orig/window.c xless-1.7/window.c
--- xless-1.7.orig/window.c 1994-07-28 22:36:07.000000000 -0400
+++ xless-1.7/window.c 2008-04-06 16:06:40.000000000 -0400
@@ -21,6 +21,7 @@
* $Header: /usr/sww/share/src/X11R6/local/applications/xless-1.7/RCS/window.c,v 1.24 1994/07/29 02:34:16 dglo Exp $
*/
+#include
#include
#include
diff -Nurd xless-1.7.orig/xless.h xless-1.7/xless.h
--- xless-1.7.orig/xless.h 1994-07-28 22:56:41.000000000 -0400
+++ xless-1.7/xless.h 2008-04-06 15:09:56.000000000 -0400
@@ -39,12 +39,7 @@
#define XLESS_MAX_INPUT 256
/* handle differences between K&R and ANSI C */
-#if __STDC__
-#define __P(a) a
-#else
-#define __P(a) ()
-#define const
-#endif
+#include
/*
* The default editor; make sure the file exists.