summaryrefslogtreecommitdiff
path: root/print/lyx16/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-20 03:25:03 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-20 03:25:03 +0000
commit8640cd64e2b793d8834f07b9a87a36152bec3411 (patch)
tree89714fea469e9e935cceb7b0cb5bca119a7b7764 /print/lyx16/files
parentRemove extra files (diff)
upgrade to 1.2.1
PR: 42742 Submitted by: Ports Fury
Diffstat (limited to 'print/lyx16/files')
-rw-r--r--print/lyx16/files/patch-fontwarning9
-rw-r--r--print/lyx16/files/patch-sp_spell7
-rw-r--r--print/lyx16/files/patch-src::FontLoader.C12
-rw-r--r--print/lyx16/files/patch-src::sp_spell.C11
-rw-r--r--print/lyx16/files/patch-xformsversion13
-rw-r--r--print/lyx16/files/patch-xpm7
-rw-r--r--print/lyx16/files/xforms.m498
7 files changed, 121 insertions, 36 deletions
diff --git a/print/lyx16/files/patch-fontwarning b/print/lyx16/files/patch-fontwarning
deleted file mode 100644
index c162db45fae7..000000000000
--- a/print/lyx16/files/patch-fontwarning
+++ /dev/null
@@ -1,9 +0,0 @@
-Report, which font is missing to aid the user trying to configure things.
---- src/FontLoader.C Thu Mar 21 12:25:07 2002
-+++ src/FontLoader.C Thu Aug 1 10:44:19 2002
-@@ -302,3 +302,4 @@
- } else {
-- lyxerr << "Could not get font. Using 'fixed'." << endl;
-+ lyxerr << "Could not get font '" << font.c_str() <<
-+ "'. Using 'fixed'." << endl;
- fs = XLoadQueryFont(GUIRunTime::x11Display(), "fixed");
diff --git a/print/lyx16/files/patch-sp_spell b/print/lyx16/files/patch-sp_spell
deleted file mode 100644
index 9ec68f198e44..000000000000
--- a/print/lyx16/files/patch-sp_spell
+++ /dev/null
@@ -1,7 +0,0 @@
---- src/sp_spell.C Thu Mar 21 12:25:20 2002
-+++ src/sp_spell.C Wed Jul 31 18:49:57 2002
-@@ -371,3 +371,3 @@
- retval = select(SELECT_TYPE_ARG1 (pipeout[0]+1),
-- SELECT_TYPE_ARG234 (&infds),
-+ &infds,
- 0,
diff --git a/print/lyx16/files/patch-src::FontLoader.C b/print/lyx16/files/patch-src::FontLoader.C
new file mode 100644
index 000000000000..5073b8740fb1
--- /dev/null
+++ b/print/lyx16/files/patch-src::FontLoader.C
@@ -0,0 +1,12 @@
+--- src/FontLoader.C.orig Fri Mar 22 02:25:07 2002
++++ src/FontLoader.C Fri Aug 23 03:38:09 2002
+@@ -300,7 +300,8 @@
+ if (font == "fixed") {
+ lyxerr << "We're doomed. Can't get 'fixed' font." << endl;
+ } else {
+- lyxerr << "Could not get font. Using 'fixed'." << endl;
++ lyxerr << "Could not get font '" << font.c_str() <<
++ "'. Using 'fixed'." << endl;
+ fs = XLoadQueryFont(GUIRunTime::x11Display(), "fixed");
+ }
+ } else if (lyxerr.debugging(Debug::FONT)) {
diff --git a/print/lyx16/files/patch-src::sp_spell.C b/print/lyx16/files/patch-src::sp_spell.C
new file mode 100644
index 000000000000..32da4ce945b5
--- /dev/null
+++ b/print/lyx16/files/patch-src::sp_spell.C
@@ -0,0 +1,11 @@
+--- src/sp_spell.C.orig Mon Aug 12 19:25:50 2002
++++ src/sp_spell.C Fri Aug 23 03:38:09 2002
+@@ -379,7 +379,7 @@
+ // Configure provides us with macros which are supposed to do
+ // the right typecast.
+ retval = select(SELECT_TYPE_ARG1 (pipeout[0]+1),
+- SELECT_TYPE_ARG234 (&infds),
++ &infds,
+ 0,
+ 0,
+ SELECT_TYPE_ARG5 (&tv));
diff --git a/print/lyx16/files/patch-xformsversion b/print/lyx16/files/patch-xformsversion
deleted file mode 100644
index 29db709d6816..000000000000
--- a/print/lyx16/files/patch-xformsversion
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/frontends/xforms/GUIRunTime.C Thu Mar 21 16:18:03 2002
-+++ src/frontends/xforms/GUIRunTime.C Wed Jul 31 18:39:04 2002
-@@ -26,10 +26,2 @@
-
--// I keep these here so that it will be processed as early in
--// the compilation process as possible.
--#if !defined(FL_REVISION) || FL_REVISION < 88 || FL_VERSION != 0
--#error LyX will not compile with this version of XForms.\
-- Please get version 0.89.\
-- If you want to try to compile anyway, delete this test in src/frontends/xforms/GUIRunTime.C.
--#endif
--
-
diff --git a/print/lyx16/files/patch-xpm b/print/lyx16/files/patch-xpm
deleted file mode 100644
index 4ca930ba2341..000000000000
--- a/print/lyx16/files/patch-xpm
+++ /dev/null
@@ -1,7 +0,0 @@
---- src/graphics/GraphicsImageXPM.h Thu Mar 21 12:27:08 2002
-+++ src/graphics/GraphicsImageXPM.h Wed Jul 31 18:08:13 2002
-@@ -17,3 +17,3 @@
- #include "GraphicsImage.h"
--#include XPM_H_LOCATION
-+#include <X11/xpm.h>
- #include "support/smart_ptr.h"
diff --git a/print/lyx16/files/xforms.m4 b/print/lyx16/files/xforms.m4
new file mode 100644
index 000000000000..bbfc6c7d0c9f
--- /dev/null
+++ b/print/lyx16/files/xforms.m4
@@ -0,0 +1,98 @@
+dnl some macros to test for xforms-related functionality -*- sh -*-
+
+dnl Usage LYX_PATH_XFORMS: Checks for xforms library and flags
+dnl If it is found, the variable XFORMS_LIB is set to the relevant -l flags,
+dnl and FORMS_H_LOCATION / FLIMAGE_H_LOCATION is also set
+AC_DEFUN(LYX_PATH_XFORMS,[
+AC_REQUIRE([LYX_PATH_XPM])
+
+AC_CHECK_LIB(forms, fl_initialize, XFORMS_LIB="-lforms",
+ [AC_CHECK_LIB(xforms, fl_initialize, XFORMS_LIB="-lxforms",
+ [LYX_LIB_ERROR(libforms or libxforms,xforms)], $XPM_LIB)], $XPM_LIB)
+AC_SUBST(XFORMS_LIB)
+
+### Check for xforms headers
+lyx_cv_forms_h_location="<forms.h>"
+AC_CHECK_HEADER(X11/forms.h,[
+ ac_cv_header_forms_h=yes
+ lyx_cv_forms_h_location="<X11/forms.h>"],[
+AC_CHECK_HEADER(forms.h,[],[
+LYX_LIB_ERROR(forms.h,forms)])])
+AC_DEFINE_UNQUOTED(FORMS_H_LOCATION,$lyx_cv_forms_h_location,
+ [define this to the location of forms.h to be used with #include, e.g. <forms.h>])
+
+if test $ac_cv_header_forms_h = yes; then
+ AC_CACHE_CHECK([xforms header version],lyx_cv_xfversion,
+ [ cat > conftest.$ac_ext <<EOF
+#line __oline__ "configure"
+#include "confdefs.h"
+
+#include FORMS_H_LOCATION
+#if ! defined(FL_INCLUDE_VERSION)
+"%%%"(unknown)"%%%"
+#else
+"%%%"FL_VERSION.FL_REVISION.FL_FIXLEVEL"%%%"
+#endif
+EOF
+lyx_cv_xfversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
+ grep '^"%%%"' 2>/dev/null | \
+ sed -e 's/^"%%%"\(.*\)"%%%"/\1/' -e 's/ //g'`
+rm -f conftest*])
+
+XFORMS_VERSION=$lyx_cv_xfversion
+case "$lyx_cv_xfversion" in
+ "(unknown)"|0.8[1-7]*)
+ LYX_ERROR(dnl
+Version $lyx_cv_xfversion of xforms is not compatible with LyX.
+ This version of LyX works best with versions 0.88 (recommended) and later.) ;;
+ 0.88*) ;;
+ 0.89[01234]) LYX_WARNING(dnl
+LyX should work ok with version $lyx_cv_xfversion of xforms[,] but
+it is an unproven version and might still have some bugs. You should
+probably use version 0.89.6 (or 0.88) instead) ;;
+ 0.89*) ;;
+ 0.9999*) ;;
+ 1.0*) ;;
+ *) LYX_WARNING(dnl
+Version $lyx_cv_xfversion of xforms might not be compatible with LyX[,]
+ since it is newer than 0.89. You might have slight problems with it.);;
+esac
+fi
+])
+
+
+
+dnl Check whether the xforms library has a viable image loader
+AC_DEFUN(LYX_USE_XFORMS_IMAGE_LOADER,
+[AC_REQUIRE([LYX_PATH_XFORMS])
+save_LIBS=$LIBS
+LIBS="$XFORMS_LIB $XPM_LIB $LIBS"
+lyx_use_xforms_image_loader=no
+AC_LANG_SAVE
+AC_LANG_C
+
+AC_CHECK_LIB(jpeg, jpeg_read_header,
+ [XFORMS_IMAGE_LIB=-ljpeg
+ LIBS="$LIBS -ljpeg"])
+AC_SEARCH_LIBS(flimage_dup, flimage,
+ [lyx_use_xforms_image_loader=yes
+ if test "$ac_cv_search_flimage_dup" != "none required" ; then
+ XFORMS_IMAGE_LIB="-lflimage $XFORMS_IMAGE_LIB"
+ LIBS="$XFORMS_IMAGE_LIB $LIBS"
+ fi])
+AC_SUBST(XFORMS_IMAGE_LIB)
+
+if test $lyx_use_xforms_image_loader = yes ; then
+ lyx_flags="$lyx_flags xforms-image-loader"
+ AC_DEFINE(USE_XFORMS_IMAGE_LOADER, 1,
+ [Define if you want to use xforms built-in image loader])
+ AC_CHECK_FUNCS(flimage_enable_ps flimage_enable_jpeg)
+ AC_CHECK_HEADERS(flimage.h X11/flimage.h, break)
+fi
+
+### If the gui cannot load images itself, then we default to the
+### very simple one in graphics/GraphicsImageXPM.[Ch]
+AM_CONDITIONAL(USE_BASIC_IMAGE_LOADER,
+ test $lyx_use_xforms_image_loader = no)
+AC_LANG_RESTORE
+LIBS=$save_LIBS])