aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2003-06-26 07:51:59 +0800
committernaddy <naddy@FreeBSD.org>2003-06-26 07:51:59 +0800
commitf2b804b58d1419157c0388d735e2e9d476b2783f (patch)
tree44689c4f4f9fbb4cfc75659e99579550a77aaf22 /math
parentce7eb29021694cfe17306220944f082cd9f29cf3 (diff)
downloadfreebsd-ports-gnome-f2b804b58d1419157c0388d735e2e9d476b2783f.tar.gz
freebsd-ports-gnome-f2b804b58d1419157c0388d735e2e9d476b2783f.tar.zst
freebsd-ports-gnome-f2b804b58d1419157c0388d735e2e9d476b2783f.zip
Import galculator 1.1.1.
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).
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/galculator/Makefile26
-rw-r--r--math/galculator/distinfo1
-rw-r--r--math/galculator/files/patch-configure20
-rw-r--r--math/galculator/files/patch-galculator.desktop.in12
-rw-r--r--math/galculator/files/patch-src_general_functions.c56
-rw-r--r--math/galculator/pkg-descr5
-rw-r--r--math/galculator/pkg-plist11
8 files changed, 132 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 71c5c7fb091c..1b48ffe92b7a 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -38,6 +38,7 @@
SUBDIR += fudgit
SUBDIR += fung-calc
SUBDIR += fxt
+ SUBDIR += galculator
SUBDIR += gambit
SUBDIR += gap
SUBDIR += gcalctool
diff --git a/math/galculator/Makefile b/math/galculator/Makefile
new file mode 100644
index 000000000000..1389d4cc8123
--- /dev/null
+++ b/math/galculator/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: galculator
+# Date created: 2003-06-26
+# Whom: Christian Weisgerber <naddy@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= galculator
+PORTVERSION= 1.1.1
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= naddy@FreeBSD.org
+COMMENT= GTK2-based scientific calculator
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GNOME= libglade2
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+MAN1= galculator.1
+
+.include <bsd.port.mk>
diff --git a/math/galculator/distinfo b/math/galculator/distinfo
new file mode 100644
index 000000000000..f6de9d9f2daa
--- /dev/null
+++ b/math/galculator/distinfo
@@ -0,0 +1 @@
+MD5 (galculator-1.1.1.tar.bz2) = 58e495b9ceb8ac8f16a8d1ab344fe1b1
diff --git a/math/galculator/files/patch-configure b/math/galculator/files/patch-configure
new file mode 100644
index 000000000000..d737b02a9dc7
--- /dev/null
+++ b/math/galculator/files/patch-configure
@@ -0,0 +1,20 @@
+$FreeBSD$
+--- configure.orig Mon Jun 23 21:57:17 2003
++++ configure Thu Jun 26 00:23:52 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/files/patch-galculator.desktop.in b/math/galculator/files/patch-galculator.desktop.in
new file mode 100644
index 000000000000..8e22ae61704e
--- /dev/null
+++ b/math/galculator/files/patch-galculator.desktop.in
@@ -0,0 +1,12 @@
+$FreeBSD$
+--- galculator.desktop.in.orig Sat Jun 21 15:09:38 2003
++++ galculator.desktop.in Thu Jun 26 00:23:53 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/files/patch-src_general_functions.c b/math/galculator/files/patch-src_general_functions.c
new file mode 100644
index 000000000000..55b89d03cf8c
--- /dev/null
+++ b/math/galculator/files/patch-src_general_functions.c
@@ -0,0 +1,56 @@
+$FreeBSD$
+--- src/general_functions.c.orig Mon Jun 23 21:34:24 2003
++++ src/general_functions.c Thu Jun 26 00:23:54 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 000000000000..67b4672b40fa
--- /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: http://galculator.sourceforge.net/
diff --git a/math/galculator/pkg-plist b/math/galculator/pkg-plist
new file mode 100644
index 000000000000..aa5fe6762ead
--- /dev/null
+++ b/math/galculator/pkg-plist
@@ -0,0 +1,11 @@
+@comment $FreeBSD$
+bin/galculator
+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
+@dirrm share/galculator/glade
+@dirrm share/galculator