diff --git a/net/dc_gui/Makefile b/net/dc_gui/Makefile new file mode 100644 index 00000000000..3d81fba2c22 --- /dev/null +++ b/net/dc_gui/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ + +COMMENT= "GUI for dctc (Direct Connect Text Clone)" + +DISTNAME= dc_gui-0.42 +CATEGORIES= net x11 +NEED_VERSION= 1.504 +HOMEPAGE= http://ac2i.tzo.com/dctc/ + +MAINTAINER= Nils Nordman + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE} + +LIB_DEPENDS= gnome.36,art_lgpl.4,gnomesupport.,gnomeui.46,gnorba.28::x11/gnome/libs +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= :dctc-*:net/dctc + +SEPARATE_BUILD= simple +CONFIGURE_STYLE= autoconf +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +post-patch: + @cd ${WRKSRC}; touch Makefile.in */Makefile.in aclocal.m4 stamp-h.in + +.include diff --git a/net/dc_gui/distinfo b/net/dc_gui/distinfo new file mode 100644 index 00000000000..929cf112ed9 --- /dev/null +++ b/net/dc_gui/distinfo @@ -0,0 +1,3 @@ +MD5 (dc_gui-0.42.tar.gz) = 271595ad0429bd24b1180a97fd0277d2 +RMD160 (dc_gui-0.42.tar.gz) = c5e4f0cf7c7644dedeaec37561426352430ac96a +SHA1 (dc_gui-0.42.tar.gz) = 7af23178864292a4edea3bb9fff5ecfd4a58d784 diff --git a/net/dc_gui/patches/patch-config_h_in b/net/dc_gui/patches/patch-config_h_in new file mode 100644 index 00000000000..fabd6f129d5 --- /dev/null +++ b/net/dc_gui/patches/patch-config_h_in @@ -0,0 +1,13 @@ +$OpenBSD: patch-config_h_in,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ +--- config.h.in.orig Mon Jan 28 12:38:58 2002 ++++ config.h.in Mon Jan 28 12:39:50 2002 +@@ -152,6 +152,9 @@ + /* Define if you have the header file. */ + #undef HAVE_X11_SM_SMLIB_H + ++/* Define if you have the header file. */ ++#undef HAVE_LINUX_SEM_H ++ + /* Name of package */ + #undef PACKAGE + diff --git a/net/dc_gui/patches/patch-configure_in b/net/dc_gui/patches/patch-configure_in new file mode 100644 index 00000000000..572486f9f98 --- /dev/null +++ b/net/dc_gui/patches/patch-configure_in @@ -0,0 +1,13 @@ +$OpenBSD: patch-configure_in,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ +--- configure.in.orig Sun Jan 20 07:52:02 2002 ++++ configure.in Fri Feb 1 02:31:27 2002 +@@ -27,6 +27,9 @@ else + AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale") + fi + ++dnl check for headers ++AC_CHECK_HEADERS(linux/sem.h) ++ + dnl check for dctc + AC_CHECK_PROG(HAVE_DCTC,dctc,yes,no) + if test "x$HAVE_DCTC" = "xno"; then diff --git a/net/dc_gui/patches/patch-intl_Makefile_in b/net/dc_gui/patches/patch-intl_Makefile_in new file mode 100644 index 00000000000..3dcc3ebf0d1 --- /dev/null +++ b/net/dc_gui/patches/patch-intl_Makefile_in @@ -0,0 +1,22 @@ +$OpenBSD: patch-intl_Makefile_in,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ +--- intl/Makefile.in.orig Fri Feb 1 02:31:44 2002 ++++ intl/Makefile.in Fri Feb 1 02:32:13 2002 +@@ -202,12 +202,12 @@ Makefile: Makefile.in ../config.status + # The dependency for intlh.inst is different in gettext and all other + # packages. Because we cannot you GNU make features we have to solve + # the problem while rewriting Makefile.in. +-@GT_YES@intlh.inst: intlh.inst.in ../config.status +-@GT_YES@ cd .. \ +-@GT_YES@ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ +-@GT_YES@ $(SHELL) ./config.status +-@GT_NO@.PHONY: intlh.inst +-@GT_NO@intlh.inst: ++#intlh.inst: intlh.inst.in ../config.status ++# cd .. \ ++# && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ ++# $(SHELL) ./config.status ++.PHONY: intlh.inst ++intlh.inst: + + # Tell versions [3.59,3.63) of GNU make not to export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/net/dc_gui/patches/patch-src_callbacks_c b/net/dc_gui/patches/patch-src_callbacks_c new file mode 100644 index 00000000000..927dac31685 --- /dev/null +++ b/net/dc_gui/patches/patch-src_callbacks_c @@ -0,0 +1,28 @@ +$OpenBSD: patch-src_callbacks_c,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ +--- src/callbacks.c.orig Mon Jan 28 12:49:50 2002 ++++ src/callbacks.c Mon Jan 28 12:49:58 2002 +@@ -9,9 +9,12 @@ + #include + #include + #include +-#include + #include + ++#ifdef HAVE_LINUX_SEM_H ++# include /* for the value of SEMVMX */ ++#endif ++ + #include "callbacks.h" + #include "interface.h" + #include "support.h" +@@ -22,6 +25,10 @@ + #include "do_connect.h" + #include "dctc_process.h" + #include "gui_define.h" ++ ++#ifdef __OpenBSD__ ++# define SEMVMX 32767 ++#endif + + static void start_download_from_clist(char *clist_name, int nick_col, int filename_col, int localfname_col); + diff --git a/net/dc_gui/patches/patch-src_do_connect_c b/net/dc_gui/patches/patch-src_do_connect_c new file mode 100644 index 00000000000..b00046345c5 --- /dev/null +++ b/net/dc_gui/patches/patch-src_do_connect_c @@ -0,0 +1,67 @@ +$OpenBSD: patch-src_do_connect_c,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ +--- src/do_connect.c.orig Mon Jan 28 12:31:11 2002 ++++ src/do_connect.c Mon Jan 28 12:35:39 2002 +@@ -395,9 +395,11 @@ void start_a_new_dctc(char *hub_address) + /* argv[0] */ + g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"dctc")); + ++#ifndef __OpenBSD__ + /* argv[1] */ + g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"dctc")); +- ++#endif ++ + add_cmd_line_opt(cmd_line,&sc,"nickname_entry","-n"); + add_cmd_line_opt(cmd_line,&sc,"user_description_entry","-i"); + add_cmd_line_opt(cmd_line,&sc,"cnx_type_entry","-c"); +@@ -533,11 +535,11 @@ void start_a_new_dctc(char *hub_address) + /* -5 [if GTK_RADIO_BUTTON(md5sum_computation_checkbutton) is set] */ + add_cmd_line_opt_radio(cmd_line, &sc,"md5sum_computation_checkbutton", NULL,NULL,"-5",NULL); + +- /* --precmd "/FOLLOWFORCE" or --precmd "/UNFOLLOWFORCE" */ +- add_cmd_line_opt_radio(cmd_line, &sc,"follow_forcemove_checkbutton", "--precmd","/FOLLOWFORCE","--precmd","/UNFOLLOWFORCE"); ++ /* -b "/FOLLOWFORCE" or -b "/UNFOLLOWFORCE" */ ++ add_cmd_line_opt_radio(cmd_line, &sc,"follow_forcemove_checkbutton", "-b","/FOLLOWFORCE","-b","/UNFOLLOWFORCE"); + +- /* --precmd "/DDL" or --precmd "/NODDL" */ +- add_cmd_line_opt_radio(cmd_line, &sc,"ddl_checkbutton", "--precmd","/DDL","--precmd","/NODDL"); ++ /* -b "/DDL" or -b "/NODDL" */ ++ add_cmd_line_opt_radio(cmd_line, &sc,"ddl_checkbutton", "-b","/DDL","-b","/NODDL"); + + /* -v VERSION [if GTK_RADIO_BUTTON(override_version_check_button) is set and version_number_entry is not empty */ + { +@@ -569,7 +571,7 @@ void start_a_new_dctc(char *hub_address) + } + } + +- /* --precmd "/RECOND xxx" */ ++ /* -b "/RECOND xxx" */ + { + GtkWidget *w; + w=get_widget_by_widget_name("reconnect_delay_scale"); +@@ -579,14 +581,14 @@ void start_a_new_dctc(char *hub_address) + { + char bf[512]; + +- g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"--precmd")); ++ g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"-b")); + + sprintf(bf,"/RECOND %u",(unsigned int)gtk_range_get_adjustment(GTK_RANGE(w))->value); + g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,bf)); + } + } + +- /* --precmd "/REBUILD xxx" */ ++ /* -b "/REBUILD xxx" */ + { + GtkWidget *w; + w=get_widget_by_widget_name("rebuild_delay_scale"); +@@ -596,7 +598,7 @@ void start_a_new_dctc(char *hub_address) + { + char bf[512]; + +- g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"--precmd")); ++ g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"-b")); + + sprintf(bf,"/REBUILD %u",60*(unsigned int)gtk_range_get_adjustment(GTK_RANGE(w))->value); + g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,bf)); diff --git a/net/dc_gui/patches/patch-src_init_fnc_c b/net/dc_gui/patches/patch-src_init_fnc_c new file mode 100644 index 00000000000..ebda8fe4005 --- /dev/null +++ b/net/dc_gui/patches/patch-src_init_fnc_c @@ -0,0 +1,27 @@ +$OpenBSD: patch-src_init_fnc_c,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ +--- src/init_fnc.c.orig Mon Jan 28 12:40:19 2002 ++++ src/init_fnc.c Mon Jan 28 12:42:26 2002 +@@ -7,7 +7,11 @@ + #include + #include + #include +-#include /* for the value of SEMVMX */ ++ ++#ifdef HAVE_LINUX_SEM_H ++# include /* for the value of SEMVMX */ ++#endif ++ + #include + #include + #include +@@ -17,6 +21,10 @@ + #include "main.h" + #include "do_connect.h" + #include "dctc_process.h" ++ ++#ifdef __OpenBSD__ ++# define SEMVMX 32767 ++#endif + + GtkStyle *fast_style=NULL; /* style for fast user */ + diff --git a/net/dc_gui/patches/patch-src_interface_c b/net/dc_gui/patches/patch-src_interface_c new file mode 100644 index 00000000000..8ac44bd27d8 --- /dev/null +++ b/net/dc_gui/patches/patch-src_interface_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_interface_c,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ +--- src/interface.c.orig Mon Jan 28 13:07:23 2002 ++++ src/interface.c Mon Jan 28 13:08:05 2002 +@@ -452,7 +452,7 @@ create_app1 (void) + (GtkDestroyNotify) gtk_widget_unref); + gtk_widget_show (vpaned2); + gnome_app_set_contents (GNOME_APP (app1), vpaned2); +- gtk_paned_set_position (GTK_PANED (vpaned2), 0); ++ gtk_paned_set_position (GTK_PANED (vpaned2), 200); + + hpaned2 = gtk_hpaned_new (); + gtk_widget_set_name (hpaned2, "hpaned2"); diff --git a/net/dc_gui/pkg/DESCR b/net/dc_gui/pkg/DESCR new file mode 100644 index 00000000000..2654f9f14a1 --- /dev/null +++ b/net/dc_gui/pkg/DESCR @@ -0,0 +1,4 @@ +dc_gui provides a user-friendly interface for dctc +(Direct Connect Text Clone). + +WWW: ${HOMEPAGE} diff --git a/net/dc_gui/pkg/PLIST b/net/dc_gui/pkg/PLIST new file mode 100644 index 00000000000..fe6557bac6c --- /dev/null +++ b/net/dc_gui/pkg/PLIST @@ -0,0 +1,6 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $ +bin/dc_gui +share/gnome/help/dc_gui/C/index.html +share/gnome/help/dc_gui/C/topic.dat +@dirrm share/gnome/help/dc_gui/C +@dirrm share/gnome/help/dc_gui