diff options
-rw-r--r-- | x11-toolkits/Makefile | 1 | ||||
-rw-r--r-- | x11-toolkits/viewkit/Makefile | 32 | ||||
-rw-r--r-- | x11-toolkits/viewkit/distinfo | 1 | ||||
-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 | ||||
-rw-r--r-- | x11-toolkits/viewkit/pkg-comment | 1 | ||||
-rw-r--r-- | x11-toolkits/viewkit/pkg-descr | 1 | ||||
-rw-r--r-- | x11-toolkits/viewkit/pkg-plist | 74 |
11 files changed, 243 insertions, 0 deletions
diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index cd4a05753f94..e21f2d9f76d5 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -102,6 +102,7 @@ SUBDIR += v SUBDIR += vdk SUBDIR += vdkbuilder + SUBDIR += viewkit SUBDIR += whistlerk SUBDIR += wxgtk SUBDIR += xbae diff --git a/x11-toolkits/viewkit/Makefile b/x11-toolkits/viewkit/Makefile new file mode 100644 index 000000000000..a63d3f959750 --- /dev/null +++ b/x11-toolkits/viewkit/Makefile @@ -0,0 +1,32 @@ +# +# ports collection makefile for: Viewkit from Hungry Programming. +# Date created: Aug 2000 +# Whom: peterho@ned.dem.csiro.au +# +# $FreeBSD$ +# +# +# + +PORTNAME= viewkit +PORTVERSION= 0.00 +CATEGORIES= x11-toolkits +MASTER_SITES= ftp://ftp.hungry.com/pub/hungry/viewkit/ +DISTNAME= libvk-Apr19-2243 + +MAINTAINER= peterho@ned.dem.csiro.au + +BUILD_DEPENDS= ${AUTOCONFIG}:${PORTSDIR}/devel/${AUTOCONFIG} + +AUTOCONFIG= autoconf + +MOTIFPACKAGE?= open-motif +USE_X_PREFIX= yes +REQUIRES_MOTIF = yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-${MOTIFPACKAGE} + +pre-configure: + @cd ${WRKSRC}; ${CHMOD} +w configure; ${AUTOCONFIG} + +.include <bsd.port.mk> diff --git a/x11-toolkits/viewkit/distinfo b/x11-toolkits/viewkit/distinfo new file mode 100644 index 000000000000..5761075ebc7d --- /dev/null +++ b/x11-toolkits/viewkit/distinfo @@ -0,0 +1 @@ +MD5 (libvk-Apr19-2243.tar.gz) = aceb5e189dce4e78586a752ce4bb83d2 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) diff --git a/x11-toolkits/viewkit/pkg-comment b/x11-toolkits/viewkit/pkg-comment new file mode 100644 index 000000000000..96112c543d0f --- /dev/null +++ b/x11-toolkits/viewkit/pkg-comment @@ -0,0 +1 @@ +ViewKit workalike from Hungry Programmers diff --git a/x11-toolkits/viewkit/pkg-descr b/x11-toolkits/viewkit/pkg-descr new file mode 100644 index 000000000000..d72d66a31a3a --- /dev/null +++ b/x11-toolkits/viewkit/pkg-descr @@ -0,0 +1 @@ +A Port of the ViewKit workalike from Hungry Programmers. diff --git a/x11-toolkits/viewkit/pkg-plist b/x11-toolkits/viewkit/pkg-plist new file mode 100644 index 000000000000..efc6e5318eaf --- /dev/null +++ b/x11-toolkits/viewkit/pkg-plist @@ -0,0 +1,74 @@ +include/Vk/VkCallbackObject.h +include/Vk/VkCallbackList.h +include/Vk/VkComponent.h +include/Vk/VkSimpleWindow.h +include/Vk/VkWindow.h +include/Vk/VkApp.h +include/Vk/VkComponentList.h +include/Vk/VkMenuItem.h +include/Vk/VkDialogManager.h +include/Vk/VkInfoDialog.h +include/Vk/VkWarningDialog.h +include/Vk/VkErrorDialog.h +include/Vk/VkFatalErrorDialog.h +include/Vk/VkQuestionDialog.h +include/Vk/VkPromptDialog.h +include/Vk/VkGenericDialog.h +include/Vk/VkFileSelectionDialog.h +include/Vk/VkBusyDialog.h +include/Vk/VkSelectionDialog.h +include/Vk/VkCursorList.h +include/Vk/VkRepeatButton.h +include/Vk/VkCheckBox.h +include/Vk/VkRadioBox.h +include/Vk/VkGangedGroup.h +include/Vk/VkRadioGroup.h +include/Vk/VkWidgetList.h +include/Vk/VkMenu.h +include/Vk/VkMenuAction.h +include/Vk/VkMenuConfirmFirstAction.h +include/Vk/VkMenuLabel.h +include/Vk/VkMenuToggle.h +include/Vk/VkPopupMenu.h +include/Vk/VkOptionMenu.h +include/Vk/VkMenuBar.h +include/Vk/VkMenuSeparator.h +include/Vk/VkSubMenu.h +include/Vk/VkRadioSubMenu.h +include/Vk/VkMenuUndoManager.h +include/Vk/VkHelpPane.h +include/Vk/VkResource.h +include/Vk/builtinbusy.h +include/Vk/VkCombo.h +include/Vk/VkFormat.h +include/Vk/VkPeriodic.h +include/Vk/VkPipe.h +include/Vk/VkInput.h +include/Vk/VkBackground.h +include/Vk/VkModel.h +include/Vk/VkAction.h +include/Vk/VkNameList.h +include/Vk/VkSubProcess.h +include/Vk/VkFont.h +include/Vk/VkHelpAPI.h +include/Vk/ComboBoxP.h +include/Vk/ComboBox.h +lib/libvk.a +lib/libvkhelp.a +lib/Vk/AFM/Times-Roman.afm +lib/Vk/AFM/Times-Bold.afm +lib/Vk/AFM/Times-Italic.afm +lib/Vk/AFM/Times-BoldItalic.afm +lib/Vk/AFM/Helvetica.afm +lib/Vk/AFM/Helvetica-Bold.afm +lib/Vk/AFM/Helvetica-Oblique.afm +lib/Vk/AFM/Helvetica-BoldOblique.afm +lib/Vk/AFM/Courier.afm +lib/Vk/AFM/Courier-Bold.afm +lib/Vk/AFM/Courier-Oblique.afm +lib/Vk/AFM/Courier-BoldOblique.afm +lib/Vk/AFM/Symbol.afm +lib/Vk/VkPSFonts.upr +@dirrm include/Vk +@dirrm lib/Vk/AFM +@dirrm lib/Vk |