diff options
Diffstat (limited to 'misc/peq/files')
-rw-r--r-- | misc/peq/files/patch-aa | 90 | ||||
-rw-r--r-- | misc/peq/files/patch-ab | 23 | ||||
-rw-r--r-- | misc/peq/files/patch-ac | 13 | ||||
-rw-r--r-- | misc/peq/files/patch-ad | 11 | ||||
-rw-r--r-- | misc/peq/files/patch-ae | 13 | ||||
-rw-r--r-- | misc/peq/files/patch-af | 13 |
6 files changed, 163 insertions, 0 deletions
diff --git a/misc/peq/files/patch-aa b/misc/peq/files/patch-aa new file mode 100644 index 000000000000..ef968d528084 --- /dev/null +++ b/misc/peq/files/patch-aa @@ -0,0 +1,90 @@ +--- Makefile.orig Thu Mar 25 08:47:31 1999 ++++ Makefile Fri May 24 04:36:25 2002 +@@ -4,10 +4,10 @@ + VERSION = 0.7.1 + + # Your C++ compiler +-CC = g++ ++CC = $(CXX) + + # Flags to pass to the C++ compiler +-FLAGS = -O -Wall ++FLAGS = -DPREFIX=\"${PREFIX}\" ${CFLAGS} -L /usr/X11R6/lib -I /usr/X11R6/include + + # Your tar + TAR = tar +@@ -17,13 +17,13 @@ + ZIPR = gzip -9 + + # Default installion directory for the console version of PEQ +-DIR_CONSOLE_PEQ = /usr/games ++DIR_CONSOLE_PEQ = ${PREFIX}/bin + + # Default installion directory for the X version of PEQ +-DIR_X_PEQ = /usr/games ++DIR_X_PEQ = ${PREFIX}/bin + + # Default installion directory for peq.lib (the quote library) +-DIR_LIB = /usr/share/games ++DIR_LIB = ${PREFIX}/share/peq + + # Get current date + LIB_DATE = `date +%m%d%y` +@@ -40,31 +40,21 @@ + $(CC) $(FLAGS) -c ocfile.cpp + $(CC) $(FLAGS) -c arg.cpp + $(CC) $(FLAGS) -o peq peq.cpp strmid.o show.o read.o proc.o ocfile.o arg.o +- $(CC) $(FLAGS) -o xpeq -lqt xpeq.cpp strmid.o show.o read.o proc.o ocfile.o ++ $(CC) $(FLAGS) -o xpeq -lqt1 xpeq.cpp strmid.o show.o read.o proc.o ocfile.o + +-## "install" gives a handy message about how to install PEQ + install: +- @echo "No such option! Use..." +- @echo "'make install-console' to install the console of PEQ" +- @echo "'make install-x' to install the X version of PEQ" +- @echo "'make install-lib' to install peq.lib (the quote library)" +- @echo "'make install-all' to install all of the above" +- @echo "'make install-console-lib' to install console PEQ and peq.lib" +- @echo "'make install-x-lib' to install X PEQ and peq.lib" +- @echo "'make install-console-x' to install console and X PEQ" +- @echo "If in doubt... just type 'make install-all' :-)" ++ make install-console ; make install-x ; make install-lib + + install-console: +- cp peq $(DIR_CONSOLE_PEQ)/peq -f ++ cp -f peq $(DIR_CONSOLE_PEQ)/peq + + install-x: +- cp xpeq $(DIR_X_PEQ)/xpeq -f ++ cp -f xpeq $(DIR_X_PEQ)/xpeq + + install-lib: +- cp peq.lib $(DIR_LIB)/peq.lib -f +- +-install-all: +- make install-console ; make install-x ; make install-lib ++ rm -rf $(DIR_LIB) ++ mkdir $(DIR_LIB) ++ cp -f peq.lib $(DIR_LIB)/peq.lib + + install-console-lib: + make install-console ; make install-lib +@@ -78,9 +68,9 @@ + ## "uninstall" erases all traces of PEQ from your system (but why would you + ## want to do that?) + uninstall: +- rm $(DIR_CONSOLE_PEQ)/peq -f +- rm $(DIR_X_PEQ)/xpeq -f +- rm $(DIR_LIB)/peq.lib -f ++ rm -f $(DIR_CONSOLE_PEQ)/peq ++ rm -f $(DIR_X_PEQ)/xpeq ++ rm -f $(DIR_LIB)/peq.lib + + ## "clean" cleans up all the junk and leaves the uncompiled code alone + clean: +@@ -126,4 +116,4 @@ + ## "dist" wraps peq.lib into a neat little tarball + dist-lib: + cp peq.lib peq.lib.$(LIB_DATE) +- $(ZIPR) peq.lib.$(LIB_DATE) ++ $(ZIPR) peq.lib.$(LIB_DATE) diff --git a/misc/peq/files/patch-ab b/misc/peq/files/patch-ab new file mode 100644 index 000000000000..16b3765f7c65 --- /dev/null +++ b/misc/peq/files/patch-ab @@ -0,0 +1,23 @@ +--- xconfig.h.orig Thu Mar 25 08:47:31 1999 ++++ xconfig.h Fri May 24 04:35:10 2002 +@@ -4,10 +4,10 @@ + #include <time.h> + #include <string.h> + #include <strings.h> +-#include <qapplication.h> +-#include <qpushbutton.h> +-#include <qlabel.h> +-#include <qstring.h> ++#include <X11/qt1/qapplication.h> ++#include <X11/qt1/qpushbutton.h> ++#include <X11/qt1/qlabel.h> ++#include <X11/qt1/qstring.h> + + /* strmid.cpp */ + char strmid(char*,char*,int,int); +@@ -32,4 +32,4 @@ + long fsize(FILE*); + + /* xpeq.cpp */ +-void f(char*); ++void f(char*); diff --git a/misc/peq/files/patch-ac b/misc/peq/files/patch-ac new file mode 100644 index 000000000000..09602f308fc8 --- /dev/null +++ b/misc/peq/files/patch-ac @@ -0,0 +1,13 @@ +--- ./xpeq.cpp.orig Thu Mar 25 08:47:31 1999 ++++ ./xpeq.cpp Fri May 24 04:35:40 2002 +@@ -1,8 +1,8 @@ + + #include "xconfig.h" + #include "lib_path.h" +-#include <qmenubar.h> +-#include <qpopupmenu.h> ++#include <X11/qt1/qmenubar.h> ++#include <X11/qt1/qpopupmenu.h> + + int cho; + int wrd; diff --git a/misc/peq/files/patch-ad b/misc/peq/files/patch-ad new file mode 100644 index 000000000000..d894cf33b07c --- /dev/null +++ b/misc/peq/files/patch-ad @@ -0,0 +1,11 @@ +*** lib_path.h.orig Fri Apr 2 16:23:25 1999 +--- lib_path.h Fri Apr 2 16:23:18 1999 +*************** +*** 1,3 **** + /* Created automatically by config */ +! char lib_path[100]={"/usr/share/games/peq.lib"}; + +--- 1,3 ---- + /* Created automatically by config */ +! char lib_path[100]={PREFIX "/share/peq/peq.lib"}; + diff --git a/misc/peq/files/patch-ae b/misc/peq/files/patch-ae new file mode 100644 index 000000000000..2574f5d031fd --- /dev/null +++ b/misc/peq/files/patch-ae @@ -0,0 +1,13 @@ +--- read.cpp.orig Fri Mar 26 01:47:31 1999 ++++ read.cpp Sat Feb 12 11:12:10 2000 +@@ -1,8 +1,8 @@ + + #include "config.h" + +-extern cho; +-extern qnum; ++extern int cho; ++extern long qnum; + extern char comp_time[30]; + extern char quote[1500]; + extern FILE *pql; diff --git a/misc/peq/files/patch-af b/misc/peq/files/patch-af new file mode 100644 index 000000000000..3fd96229cf95 --- /dev/null +++ b/misc/peq/files/patch-af @@ -0,0 +1,13 @@ +--- show.cpp.orig Fri Mar 26 01:47:31 1999 ++++ show.cpp Sat Feb 12 11:13:09 2000 +@@ -3,8 +3,8 @@ + + extern int wrdnum; + extern char tot[300][100]; +-extern author_wrd; +-extern contrib_wrd; ++extern int author_wrd; ++extern int contrib_wrd; + + // This is the worst piece of shit (erm... code) you will ever see. It + // practically duplicates the same stuff FOUR TIMES! |