diff options
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/orpie/Makefile | 30 | ||||
-rw-r--r-- | math/orpie/distinfo | 2 | ||||
-rw-r--r-- | math/orpie/files/patch-Makefile | 53 | ||||
-rw-r--r-- | math/orpie/files/patch-gsl::wrappers.h | 11 | ||||
-rw-r--r-- | math/orpie/pkg-descr | 10 |
6 files changed, 107 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 589a77c0d9a1..124a7fed3615 100644 --- a/math/Makefile +++ b/math/Makefile @@ -113,6 +113,7 @@ SUBDIR += octave SUBDIR += octave-forge SUBDIR += oleo + SUBDIR += orpie SUBDIR += p5-AI-DecisionTree SUBDIR += p5-AI-NeuralNet-BackProp SUBDIR += p5-AI-NeuralNet-Mesh diff --git a/math/orpie/Makefile b/math/orpie/Makefile new file mode 100644 index 000000000000..60c509cc5e80 --- /dev/null +++ b/math/orpie/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: orpie +# Date created: 4 August 2004 +# Whom: Dylan Simon <dylan@dylex.net> +# +# $FreeBSD$ +# + +PORTNAME= orpie +PORTVERSION= 1.3.1 +CATEGORIES+= math +MASTER_SITES= http://www.eecs.umich.edu/~pelzlpj/orpie/ + +MAINTAINER= dylan@dylex.net +COMMENT= A fullscreen RPN calculator for the console + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml +LIB_DEPENDS= gsl.6:${PORTSDIR}/math/gsl + +GNU_CONFIGURE= yes +USE_GMAKE= yes +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +PLIST_FILES= bin/orpie bin/orpie-curses-keys etc/orpierc + +MAN1= orpie.1 orpie-curses-keys.1 +MAN5= orpierc.5 + +.include <bsd.port.mk> diff --git a/math/orpie/distinfo b/math/orpie/distinfo new file mode 100644 index 000000000000..ff1735b456c8 --- /dev/null +++ b/math/orpie/distinfo @@ -0,0 +1,2 @@ +MD5 (orpie-1.3.1.tar.gz) = d8736e97113d15ff690e6d09f35c710e +SIZE (orpie-1.3.1.tar.gz) = 274790 diff --git a/math/orpie/files/patch-Makefile b/math/orpie/files/patch-Makefile new file mode 100644 index 000000000000..57f88c5f5dd6 --- /dev/null +++ b/math/orpie/files/patch-Makefile @@ -0,0 +1,53 @@ +--- Makefile.in.orig Thu Jul 22 11:33:41 2004 ++++ Makefile.in Thu Aug 5 11:49:03 2004 +@@ -41,8 +41,8 @@ + INCLUDES = -I ./curses -I ./gsl + BFLAGS = -pp camlp4o -g $(INCLUDES) -thread + OFLAGS = -pp camlp4o $(INCLUDES) -thread +-BLFLAGS = -custom -cclib '$(CURSES_LIB) $(GSL_LIB) -lm' +-OLFLAGS = -cclib '$(CURSES_LIB) $(GSL_LIB) -lm' ++BLFLAGS = -custom -cclib '@LDFLAGS@ $(CURSES_LIB) $(GSL_LIB) -lm' ++OLFLAGS = -cclib '@LDFLAGS@ $(CURSES_LIB) $(GSL_LIB) -lm' + DEPFLAGS = -pp camlp4o + + # main target +@@ -144,21 +144,21 @@ + mkdir -p $(DESTDIR)/$(prefix)/etc; \ + install -m 644 orpierc $(DESTDIR)/$(prefix)/etc; \ + fi +- install -m 644 -D doc/orpie.1 $(MANDIR)/man1/orpie.1 +- install -m 644 -D doc/orpie-curses-keys.1 $(MANDIR)/man1/orpie-curses-keys.1 +- install -m 644 -D doc/orpierc.5 $(MANDIR)/man5/orpierc.5 ++ install -m 644 doc/orpie.1 $(MANDIR)/man1/orpie.1 ++ install -m 644 doc/orpie-curses-keys.1 $(MANDIR)/man1/orpie-curses-keys.1 ++ install -m 644 doc/orpierc.5 $(MANDIR)/man5/orpierc.5 + + install: install-indep +- install -m 755 -D $(NAME).$(OCAMLBEST) $(BINDIR)/$(NAME)$(EXE) +- install -m 755 -D $(NAME2).$(OCAMLBEST) $(BINDIR)/$(NAME2)$(EXE) ++ install -m 755 $(NAME).$(OCAMLBEST) $(BINDIR)/$(NAME)$(EXE) ++ install -m 755 $(NAME2).$(OCAMLBEST) $(BINDIR)/$(NAME2)$(EXE) + + install-byte: install-indep +- install -m 755 -D $(NAME).byte $(BINDIR)/$(NAME)$(EXE) +- install -m 755 -D $(NAME2).byte $(BINDIR)/$(NAME2)$(EXE) ++ install -m 755 $(NAME).byte $(BINDIR)/$(NAME)$(EXE) ++ install -m 755 $(NAME2).byte $(BINDIR)/$(NAME2)$(EXE) + + install-opt: install-indep +- install -m 755 -D $(NAME).opt $(BINDIR)/$(NAME)$(EXE) +- install -m 755 -D $(NAME2).opt $(BINDIR)/$(NAME2)$(EXE) ++ install -m 755 $(NAME).opt $(BINDIR)/$(NAME)$(EXE) ++ install -m 755 $(NAME2).opt $(BINDIR)/$(NAME2)$(EXE) + + uninstall: + rm -f $(BINDIR)/$(NAME)$(EXE) +@@ -185,7 +185,7 @@ + GSL_INCLUDES = -I ./gsl + GSL_BFLAGS = -g $(GSL_INCLUDES) -thread + GSL_OFLAGS = $(GSL_INCLUDES) -thread +-GSL_CFLAGS = -Wall -fPIC -DPIC ++GSL_CFLAGS = -Wall -fPIC -DPIC @CPPFLAGS@ + + gsl/%.cmi : gsl/%.mli + $(OCAMLC) -c $(GSL_BFLAGS) $< diff --git a/math/orpie/files/patch-gsl::wrappers.h b/math/orpie/files/patch-gsl::wrappers.h new file mode 100644 index 000000000000..3f3ee2322280 --- /dev/null +++ b/math/orpie/files/patch-gsl::wrappers.h @@ -0,0 +1,11 @@ +--- gsl/wrappers.h.orig Thu Jul 22 11:33:38 2004 ++++ gsl/wrappers.h Thu Aug 5 11:10:31 2004 +@@ -70,7 +70,7 @@ + #define CONCAT3(a,b,c) CONCAT3x(a,b,c) + + #ifndef DONT_USE_ALLOCA +-#include <malloc.h> ++#include <stdlib.h> + #define LOCALARRAY(type, x, len) type * x = ( type *) alloca(sizeof( type ) * (len)) + #else + #define LOCALARRAY(type, x, len) type x [(len)] diff --git a/math/orpie/pkg-descr b/math/orpie/pkg-descr new file mode 100644 index 000000000000..1c0d278ddf64 --- /dev/null +++ b/math/orpie/pkg-descr @@ -0,0 +1,10 @@ +Orpie is a fullscreen RPN calculator for the console. Its operation is similar +to that of modern HP calculators, but data entry has been optimized for +efficiency on a PC keyboard. Features include extensive scientific calculator +functionality, command completion, and a visible interactive stack. + +Orpie is the successor of math/rpc by the same author; it has been completely +rewritten in Ocaml, and offers a number of features that were not available in +the older program. + +WWW: http://www.eecs.umich.edu/~pelzlpj/orpie/ |