diff options
author | will <will@FreeBSD.org> | 2001-04-07 12:19:54 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-04-07 12:19:54 +0800 |
commit | 9cff09fd5b3bb861aafcc89042cb4dc5b4147efe (patch) | |
tree | a463b0778c6ddb109ed69652337d0d95fc94cbd3 /x11-toolkits/viewkit/files | |
parent | cf7a2e3230dd03f9eb635fef5db89f4938f80011 (diff) | |
download | freebsd-ports-gnome-9cff09fd5b3bb861aafcc89042cb4dc5b4147efe.tar.gz freebsd-ports-gnome-9cff09fd5b3bb861aafcc89042cb4dc5b4147efe.tar.zst freebsd-ports-gnome-9cff09fd5b3bb861aafcc89042cb4dc5b4147efe.zip |
Add viewkit 0.00, a ViewKit workalike from Hungry Programmers.
PR: 20662
Submitted by: peterho@ned.dem.csiro.au
Diffstat (limited to 'x11-toolkits/viewkit/files')
-rw-r--r-- | x11-toolkits/viewkit/files/patch-Makefile.in | 22 | ||||
-rw-r--r-- | x11-toolkits/viewkit/files/patch-Vk::VkCombo.h | 15 | ||||
-rw-r--r-- | x11-toolkits/viewkit/files/patch-Vk::VkConfig.h.in | 10 | ||||
-rw-r--r-- | x11-toolkits/viewkit/files/patch-VkCombo.C | 72 | ||||
-rw-r--r-- | x11-toolkits/viewkit/files/patch-configure.in | 14 |
5 files changed, 133 insertions, 0 deletions
diff --git a/x11-toolkits/viewkit/files/patch-Makefile.in b/x11-toolkits/viewkit/files/patch-Makefile.in new file mode 100644 index 000000000000..1d4a7f50dd9e --- /dev/null +++ b/x11-toolkits/viewkit/files/patch-Makefile.in @@ -0,0 +1,22 @@ +--- ./Makefile.in.orig Wed Aug 16 23:51:09 2000 ++++ ./Makefile.in Wed Aug 16 23:24:28 2000 +@@ -32,8 +32,8 @@ + # HEADERINSTALLDIR -- Directory to install the header files. + # FONTINSTALLDIR -- Directory to install the font metric files into + # +-prefix = /usr/local +-exec_prefix = ${prefix} ++prefix = @prefix@ ++exec_prefix = @exec_prefix@ + + LIBINSTALLDIR= $(exec_prefix)/lib + INFOINSTALLDIR= $(prefix)/info +@@ -134,7 +134,7 @@ + $(RANLIB) $(LIBHELP) + + clean:: +- -rm -f $(LIB) $(OBJS) *.bak *~ ++ -rm -f $(LIBHELP) $(LIB) $(LIBOBJS) $(COBJS) *.bak *~ + + extract-srcs:: $(SRCS) $(HDRS) + diff --git a/x11-toolkits/viewkit/files/patch-Vk::VkCombo.h b/x11-toolkits/viewkit/files/patch-Vk::VkCombo.h new file mode 100644 index 000000000000..d7f76afb3b28 --- /dev/null +++ b/x11-toolkits/viewkit/files/patch-Vk::VkCombo.h @@ -0,0 +1,15 @@ +--- ./Vk/VkCombo.h.orig Wed Aug 16 23:50:14 2000 ++++ ./Vk/VkCombo.h Wed Aug 16 23:31:48 2000 +@@ -22,7 +22,12 @@ + #include <Vk/VkConfig.h> + #include <Vk/VkComponent.h> + #ifdef USE_MOTIF20 ++# ifdef OPEN_MOTIF ++#include <Xm/ComboBoxP.h> ++#include <Xm/TextF.h> ++# else + #include <Xm/ComboBox.h> ++# endif + #else + #include <Vk/ComboBox.h> + #endif diff --git a/x11-toolkits/viewkit/files/patch-Vk::VkConfig.h.in b/x11-toolkits/viewkit/files/patch-Vk::VkConfig.h.in new file mode 100644 index 000000000000..e1a422c777f1 --- /dev/null +++ b/x11-toolkits/viewkit/files/patch-Vk::VkConfig.h.in @@ -0,0 +1,10 @@ +--- ./Vk/VkConfig.h.in.orig Wed Aug 16 23:50:47 2000 ++++ ./Vk/VkConfig.h.in Wed Aug 16 23:23:25 2000 +@@ -21,4 +21,7 @@ + /* Define if you compiled the ViewKit with Motif 2.0 */ + #undef USE_MOTIF20 + ++/* Define if you compiled the ViewKit with Open Motif 2.0 */ ++#undef OPEN_MOTIF ++ + #endif // VKCONFIG_H diff --git a/x11-toolkits/viewkit/files/patch-VkCombo.C b/x11-toolkits/viewkit/files/patch-VkCombo.C new file mode 100644 index 000000000000..661234540d7c --- /dev/null +++ b/x11-toolkits/viewkit/files/patch-VkCombo.C @@ -0,0 +1,72 @@ +--- ./VkCombo.C.orig Wed Aug 16 23:49:29 2000 ++++ ./VkCombo.C Wed Aug 16 23:41:04 2000 +@@ -36,13 +36,21 @@ + char * + VkCombo::getValue() + { ++#ifdef OPEN_MOTIF ++ return XmTextFieldGetString(CB_EditBox(_baseWidget)); ++#else + return XmComboBoxGetString(_baseWidget); ++#endif + } + + void + VkCombo::setIndex(int index) + { ++#ifdef OPEN_MOTIF ++ XtVaSetValues(_baseWidget,XmNselectedPosition,index); ++#else + XmComboBoxSelectPos(_baseWidget, index, False); ++#endif + } + + void +@@ -52,7 +60,11 @@ + + xmstr = XmStringCreateSimple(value); + ++#ifdef OPEN_MOTIF ++ XmComboBoxSelectItem(_baseWidget, xmstr); ++#else + XmComboBoxSelectItem(_baseWidget, xmstr, False); ++#endif + + XmStringFree(xmstr); + } +@@ -60,7 +72,11 @@ + void + VkCombo::selectIndex(int index) + { ++#ifdef OPEN_MOTIF ++ XtVaSetValues(_baseWidget,XmNselectedPosition,index); ++#else + XmComboBoxSelectPos(_baseWidget, index, True); ++#endif + } + + void +@@ -70,7 +86,11 @@ + + xmstr = XmStringCreateSimple(value); + ++#ifdef OPEN_MOTIF ++ XmComboBoxSelectItem(_baseWidget, xmstr); ++#else + XmComboBoxSelectItem(_baseWidget, xmstr, True); ++#endif + + XmStringFree(xmstr); + } +@@ -80,7 +100,11 @@ + { + XmString xmstr = XmStringCreateSimple(newItem); + ++#ifdef OPEN_MOTIF ++ XmComboBoxAddItem(_baseWidget, xmstr, 0, False); ++#else + XmComboBoxAddItem(_baseWidget, xmstr, 0); ++#endif + + XmStringFree(xmstr); + } diff --git a/x11-toolkits/viewkit/files/patch-configure.in b/x11-toolkits/viewkit/files/patch-configure.in new file mode 100644 index 000000000000..946de4f80e46 --- /dev/null +++ b/x11-toolkits/viewkit/files/patch-configure.in @@ -0,0 +1,14 @@ +--- ./configure.in.orig Wed Aug 16 23:48:53 2000 ++++ ./configure.in Wed Aug 16 23:26:46 2000 +@@ -14,8 +14,9 @@ + + AC_STDC_HEADERS + +-AC_WITH(motif-includes, [ motif_includes=-I$withval ]) +-AC_WITH(motif20, [ AC_DEFINE(USE_MOTIF20) ]) ++AC_ARG_WITH(motif-includes, [--with-motif-includes=<path> ], [ motif_includes=-I$withval ]) ++AC_ARG_WITH(motif20, [--with-motif20 For Motif 2.0 ], [ AC_DEFINE(USE_MOTIF20) ]) ++AC_ARG_WITH(open-motif, [--with-open-motif For Open Motif 2.0 ], [ AC_DEFINE(USE_MOTIF20) AC_DEFINE(OPEN_MOTIF) ]) + AC_SUBST(x_includes) + AC_SUBST(motif_includes) + AC_OUTPUT(Makefile) |