From 0c489cb2cbc1a04b5d65053238906c89fb448daa Mon Sep 17 00:00:00 2001 From: Chris Piazza Date: Fri, 26 Nov 1999 21:21:34 +0000 Subject: Update to fine 2.3 to unbreak this port. Fine now works with qt2 so we use that to unbreak for systems without at least egcs (old gcc built qt, new gcc needed to build fine, new gcc is used for qt2). --- editors/fine/files/patch-aa | 38 +++++++++++++++++++++----------------- editors/fine/files/patch-ab | 14 +++++++------- 2 files changed, 28 insertions(+), 24 deletions(-) (limited to 'editors/fine/files') diff --git a/editors/fine/files/patch-aa b/editors/fine/files/patch-aa index 05ee1bbf4bce..2b746ab88c59 100644 --- a/editors/fine/files/patch-aa +++ b/editors/fine/files/patch-aa @@ -1,28 +1,32 @@ ---- Makefile.orig Tue Mar 16 09:14:22 1999 -+++ Makefile Tue Aug 17 16:15:41 1999 -@@ -1,14 +1,15 @@ --INCLUDE = -I$(QTDIR)/include -I. -I$(HOME)/include -I./icons +--- Makefile.orig Fri Nov 26 13:11:08 1999 ++++ Makefile Fri Nov 26 13:11:11 1999 +@@ -1,16 +1,17 @@ +-INCLUDE = -I. -I$(QTDIR)/include -I$(HOME)/include -I./icons -DESTLIB = $(HOME)/lib # where to put library -LIB = -L/usr/X11R6/lib -L$(QTDIR)/lib -L$(DESTLIB) -+QTDIR = ${X11BASE} -+INCLUDE = -I$(QTDIR)/include -I ${QTDIR}/include/X11/qt -I. -I$(HOME)/include -I./icons -+DESTLIB = ${PREFIX}/lib -+LIB = -L${LOCALBASE}/lib -L$(QTDIR)/lib -L$(DESTLIB) -L. - - MOC = $(QTDIR)/bin/moc +- +-MOC = $(QTDIR)/bin/moc -CC = g++ -C = gcc -+#CC = ${CX -+#CXX = ${CXX} ++QTDIR= ${X11BASE} ++INCLUDE = -I. -I$(QTDIR)/include -I$(QTDIR)/include/qt2 -I$(HOME)/include -I./icons ++DESTLIB = ${PREFIX}/lib ++LIB = -L${X11BASE}/lib -L${LOCALBASE}/lib -L$(QTDIR)/lib -L$(DESTLIB) -L. ++ ++MOC = $(QTDIR)/bin/moc2 ++#CC = g++ ++#C = gcc AR = ar M = moc_ + RM = rm -f + KDOC = kdoc -H -d doc -e -OPTIONS = -g -ansi -fguiding-decls +OPTIONS = ${CFLAGS} -fguiding-decls -DFINEDIR=\""${PREFIX}/share/fine\"" OBJ = qsmartedit.o qcolormultilinedit.o undoredo.o qeditor.o qfontselect.o qcolordialog.o qcolorlistboxitem.o qkeyworddialog.o qhotkeydialog.o METAOBJ = qsmartedit.mo qcolormultilinedit.mo qeditor.mo qfontselect.mo qcolordialog.mo qkeyworddialog.mo qhotkeydialog.mo -@@ -27,14 +28,13 @@ +@@ -35,14 +36,13 @@ $(TARGET): $(OBJ) $(METAOBJ) $(AR) r $(TARGET) $(OBJ) $(METAOBJ) @@ -33,10 +37,10 @@ + $(CXX) -c $(OPTIONS) $(INCLUDE) $< %.mo: %.h - $(MOC) $< -o $(subst .h,.C,m$<) -- $(CC) -c $(OPTIONS) $(INCLUDE) $(subst .h,.C,m$<) -o $(subst .h,.mo,$<) -+ $(CXX) -c $(OPTIONS) $(INCLUDE) $(subst .h,.C,m$<) -o $(subst .h,.mo,$<) + $(MOC) $< -o $(subst .h,.C,$(M)$<) +- $(CC) -c $(OPTIONS) $(INCLUDE) $(subst .h,.C,$(M)$<) -o $(subst .h,.mo,$<) ++ $(CXX) -c $(OPTIONS) $(INCLUDE) $(subst .h,.C,$(M)$<) -o $(subst .h,.mo,$<) fine: fine.o fine.mo - $(CC) -g -ofine fine.o fine.mo $(OPTIONS) $(LIB) -lFine -lqt -lX11 -lXext -+ $(CXX) -g -ofine fine.o fine.mo $(OPTIONS) $(LIB) -lFine -lqt -lX11 -lXext ++ $(CXX) -ofine fine.o fine.mo $(OPTIONS) $(LIB) -lFine -lqt2 -lX11 -lXext diff --git a/editors/fine/files/patch-ab b/editors/fine/files/patch-ab index 3b9291161975..35c27892fd39 100644 --- a/editors/fine/files/patch-ab +++ b/editors/fine/files/patch-ab @@ -1,6 +1,6 @@ ---- fine.C.orig Fri May 7 03:08:12 1999 -+++ fine.C Tue Aug 17 17:46:57 1999 -@@ -172,7 +172,7 @@ +--- fine.C.orig Fri Oct 29 04:02:09 1999 ++++ fine.C Fri Nov 26 13:12:09 1999 +@@ -227,7 +227,7 @@ if (sc == NULL) { sc = new QBinaryTree(shortcut); @@ -9,7 +9,7 @@ f = fopen(s,"rt"); if (f != NULL) { while (!feof(f)) -@@ -181,7 +181,7 @@ +@@ -236,7 +236,7 @@ } fclose(f); } else QMessageBox::warning(ed,"Couldn't find main configuration file", @@ -18,7 +18,7 @@ } sysmenu = new QMenuBar(this,"Editor System Main Menu"); -@@ -370,7 +370,7 @@ +@@ -430,7 +430,7 @@ if (ptrsc != NULL) { sh = ptrsc->Element(); s = new char[strlen(getenv("HOME"))+strlen(sh.filename)+200]; @@ -27,7 +27,7 @@ w->editor()->readConfig(s); delete [] s; } -@@ -410,7 +410,7 @@ +@@ -470,7 +470,7 @@ printf("\nTemplate file:%s, Compiler:%s, Previewer:%s",defsc.filename, (defsc.compiler != NULL? defsc.compiler:"(null)"), (defsc.previewer != NULL? defsc.previewer:"(null)")); @@ -36,7 +36,7 @@ ed->readConfig(s); ed->repaint(); fflush(stdout); -@@ -461,14 +461,14 @@ +@@ -517,14 +517,14 @@ { if (ptrsc != NULL) Delete(sc,ptrsc->Element()); sc->Insert(*scw); ptrsc = sc->Locate(*scw); -- cgit v1.2.3