diff --git a/math/galculator/Makefile b/math/galculator/Makefile new file mode 100644 index 00000000000..ef8a38440f3 --- /dev/null +++ b/math/galculator/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $ + +COMMENT= "GTK2-based scientific calculator" + +DISTNAME= galculator-1.1.1 +CATEGORIES= math +HOMEPAGE= http://galculator.sourceforge.net/ + +MAINTAINER= Christian Weisgerber + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=galculator/} +EXTRACT_SUFX= .tar.bz2 + +LIB_DEPENDS= glade-2.0.0.1::devel/libglade2 + +USE_GMAKE= Yes +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +.include diff --git a/math/galculator/distinfo b/math/galculator/distinfo new file mode 100644 index 00000000000..993e3696285 --- /dev/null +++ b/math/galculator/distinfo @@ -0,0 +1,3 @@ +MD5 (galculator-1.1.1.tar.bz2) = 58e495b9ceb8ac8f16a8d1ab344fe1b1 +RMD160 (galculator-1.1.1.tar.bz2) = 8cd6ae2160f415c69cc7c9c3c937dfa23167b07d +SHA1 (galculator-1.1.1.tar.bz2) = c05b761c75c2b6316b6877af3e8f8d330edc68d3 diff --git a/math/galculator/patches/patch-configure b/math/galculator/patches/patch-configure new file mode 100644 index 00000000000..7a55cefc2da --- /dev/null +++ b/math/galculator/patches/patch-configure @@ -0,0 +1,20 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $ +--- configure.orig Wed Jun 25 16:24:13 2003 ++++ configure Wed Jun 25 17:13:12 2003 +@@ -4003,6 +4003,8 @@ done + fi + + if test "$gt_cv_have_gettext" = "yes"; then ++save_LIBS=$LIBS ++LIBS="$INTLLIBS $LIBS" + + cat >>confdefs.h <<\_ACEOF + #define HAVE_GETTEXT 1 +@@ -4334,6 +4336,7 @@ rm -f conftest.$ac_objext conftest$ac_ex + gt_cv_have_gettext=no + fi + fi ++LIBS=$save_LIBS + + fi + diff --git a/math/galculator/patches/patch-galculator_desktop_in b/math/galculator/patches/patch-galculator_desktop_in new file mode 100644 index 00000000000..63c3433c482 --- /dev/null +++ b/math/galculator/patches/patch-galculator_desktop_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-galculator_desktop_in,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $ +--- galculator.desktop.in.orig Wed Jun 25 21:41:08 2003 ++++ galculator.desktop.in Wed Jun 25 21:41:16 2003 +@@ -1,7 +1,7 @@ + [Desktop Entry] + Name=galculator + _Comment=Scientific calculator +-Exec=/usr/bin/galculator ++Exec=galculator + Icon=gnome-calc2.png + Terminal=false + Type=Application diff --git a/math/galculator/patches/patch-src_general_functions_c b/math/galculator/patches/patch-src_general_functions_c new file mode 100644 index 00000000000..dbef85f18e4 --- /dev/null +++ b/math/galculator/patches/patch-src_general_functions_c @@ -0,0 +1,56 @@ +$OpenBSD: patch-src_general_functions_c,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $ +--- src/general_functions.c.orig Wed Jun 25 15:52:20 2003 ++++ src/general_functions.c Wed Jun 25 15:52:55 2003 +@@ -512,14 +512,6 @@ void set_object_data (GladeXML *xml) + {"button_parclose", ')'},\ + {NULL}\ + }; +- +- while (operation_map[counter].button_name != NULL) { +- g_object_set_data (G_OBJECT (glade_xml_get_widget (xml, +- operation_map[counter].button_name)), +- "operation", GINT_TO_POINTER(operation_map[counter].operation)); +- counter++; +- } +- counter = 0; + + s_gfunc_map gfunc_map[] = {\ + {"button_sign", display_result_toggle_sign},\ +@@ -530,14 +522,6 @@ void set_object_data (GladeXML *xml) + {NULL}\ + }; + +- while (gfunc_map[counter].button_name != NULL) { +- g_object_set_data (G_OBJECT (glade_xml_get_widget (xml, +- gfunc_map[counter].button_name)), +- "func", gfunc_map[counter].func); +- counter++; +- }; +- counter = 0; +- + s_function_map function_map[] = {\ + {"button_sin", {sin, asin, sinh, sin}, TRUE},\ + {"button_cos", {cos, acos, cosh, cos}, TRUE},\ +@@ -551,6 +535,22 @@ void set_object_data (GladeXML *xml) + {"button_cmp", {cmp, cmp, cmp, cmp}, FALSE},\ + {NULL}\ + }; ++ ++ while (operation_map[counter].button_name != NULL) { ++ g_object_set_data (G_OBJECT (glade_xml_get_widget (xml, ++ operation_map[counter].button_name)), ++ "operation", GINT_TO_POINTER(operation_map[counter].operation)); ++ counter++; ++ } ++ counter = 0; ++ ++ while (gfunc_map[counter].button_name != NULL) { ++ g_object_set_data (G_OBJECT (glade_xml_get_widget (xml, ++ gfunc_map[counter].button_name)), ++ "func", gfunc_map[counter].func); ++ counter++; ++ }; ++ counter = 0; + + while (function_map[counter].button_name != NULL) { + func = (void *) malloc (sizeof (function_map[counter].func)); diff --git a/math/galculator/pkg/DESCR b/math/galculator/pkg/DESCR new file mode 100644 index 00000000000..9abdf3a8fab --- /dev/null +++ b/math/galculator/pkg/DESCR @@ -0,0 +1,5 @@ +galculator is a GTK2-based scientific calculator with ordinary +notation/reverse polish notation, different number bases (DEC, HEX, +OCT, BIN) and different units of angular measure (DEG, RAD, GRAD). + +WWW: ${HOMEPAGE} diff --git a/math/galculator/pkg/PLIST b/math/galculator/pkg/PLIST new file mode 100644 index 00000000000..f0b60c2fc2e --- /dev/null +++ b/math/galculator/pkg/PLIST @@ -0,0 +1,16 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $ +bin/galculator +man/man1/galculator.1 +share/applications/galculator.desktop +share/galculator/glade/about.glade +share/galculator/glade/color.glade +share/galculator/glade/font.glade +share/galculator/glade/main.glade +share/galculator/glade/prefs.glade +share/locale/de/LC_MESSAGES/galculator.mo +@comment @dirrm share/locale/de/LC_MESSAGES +@comment @dirrm share/locale/de +@comment @dirrm share/locale +@dirrm share/galculator/glade +@dirrm share/galculator +@comment @dirrm share/applications