aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MOVED1
-rw-r--r--math/Makefile1
-rw-r--r--math/hexcalc/Makefile37
-rw-r--r--math/hexcalc/distinfo2
-rw-r--r--math/hexcalc/files/patch-a109
-rw-r--r--math/hexcalc/pkg-descr2
6 files changed, 151 insertions, 1 deletions
diff --git a/MOVED b/MOVED
index c8b0113efe28..7ceb28e310c0 100644
--- a/MOVED
+++ b/MOVED
@@ -2354,7 +2354,6 @@ korean/nh2ps||2011-08-01|Has expired: Looks like abandonware, no more public dis
korean/pinetreefonts||2011-08-01|Has expired: No more public distfile
mail/bincimap||2011-08-01|Has expired: No more public distfile
mail/cmail||2011-08-01|Has expired: No more public distfile
-math/hexcalc||2011-08-01|Has expired: Looks like abandonware, no more public distfiles
math/qgfe||2011-08-01|Has expired: Looks like abandonware, no more public distfiles
misc/ewipe||2011-08-01|Has expired: Looks like abandonware, no more public distfiles
misc/gkrellmfmonitor2||2011-08-01|Has expired: Looks like abandonware, no more public distfiles
diff --git a/math/Makefile b/math/Makefile
index a4532545d660..67d0c35778d9 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -163,6 +163,7 @@
SUBDIR += gringo
SUBDIR += grpn
SUBDIR += gsl
+ SUBDIR += hexcalc
SUBDIR += hs-Agda
SUBDIR += hs-NumInstances
SUBDIR += hs-categories
diff --git a/math/hexcalc/Makefile b/math/hexcalc/Makefile
new file mode 100644
index 000000000000..bd5c3e79a2b0
--- /dev/null
+++ b/math/hexcalc/Makefile
@@ -0,0 +1,37 @@
+# Created by: jhs@berklix.com / asami (original)
+# $FreeBSD$
+
+PORTNAME= hexcalc
+PORTVERSION= 1.11
+PORTREVISION= 2
+CATEGORIES= math
+MASTER_SITES= http://www.berklix.com/~jhs/ftp/FreeBSD/ports/distfiles/
+DISTNAME= ${PORTNAME}
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= jhs@berklix.com
+COMMENT= A multi-radix calculator for x11
+
+# XORG_CAT= app
+# USE_IMAKE= yes
+# Maybe later.
+# It would move from distfiles/hexcalc..tar.Z
+# to distfiles/xorg/app/hexcalc..tar.Z & require change in distinfo
+
+# Old distfile name in 8.2 was hexcalc..tar.Z & EXTRACT_SUFX was ..tar.Z
+# presumably a mistake, now shortened to normality.
+
+USE_XORG= ice sm x11 xaw xext xmu xt
+
+PLIST_FILES= bin/hexcalc man/man1/hexcalc.1.gz
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hexcalc ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/hexcalc.man \
+ ${STAGEDIR}${MANPREFIX}/man/man1/hexcalc.1
+ @# The manual installed OK on 9.1-RELEASE without do-install,
+ @# but manual install failed on 9.2-RELEASE & 10.0-RELEASE,
+ @# so I added do-install, which does no harm on 9.1 & 9.2.
+ @# Maybe do-install can be discarded if MAN variables are set right ?
+
+.include <bsd.port.mk>
diff --git a/math/hexcalc/distinfo b/math/hexcalc/distinfo
new file mode 100644
index 000000000000..c9e4b977e258
--- /dev/null
+++ b/math/hexcalc/distinfo
@@ -0,0 +1,2 @@
+SHA256 (hexcalc.tar.Z) = cd9aed4c21b1dc4ea217fa78ec8558320ae93e944179055e5d184050b189631f
+SIZE (hexcalc.tar.Z) = 25129
diff --git a/math/hexcalc/files/patch-a b/math/hexcalc/files/patch-a
new file mode 100644
index 000000000000..7813c5a1a375
--- /dev/null
+++ b/math/hexcalc/files/patch-a
@@ -0,0 +1,109 @@
+http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/ports/gen/math/hexcalc/files/patch-a
+
+30 Jan 2014 by "Julian H. Stacey" <jhs@berklix.com>
+to convert FreeBSD 8.2-RELEASE/ports/math/hexcalc/
+to run on 9.1-RELEASE, 9.2-RELEASE, & 10.0-RELEASE.
+
+I found I had an original local off line hexcalc..tar.Z,
+linked it to new shorter name hexcalc.tar.Z, & published here:
+ http://www.berklix.com/~jhs/ftp/FreeBSD/ports/distfiles/hexcalc.tar.Z
+which solved:
+ grep hexcalc /usr/ports/MOVED
+ math/hexcalc||2011-08-01|Has expired: Looks like abandonware, no more public distfiles
+
+I suggest a copy of distfile be made to
+ ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/hexcalc.tar.Z
+
+*** Makefile.orig Thu Jan 30 03:29:09 2014
+--- Makefile Thu Jan 30 03:31:57 2014
+***************
+*** 53,59 ****
+ COMPRESS = compress
+ CPP = /usr/lpp/X11/Xamples/util/cpp/cpp $(STD_CPP_DEFINES)
+ PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
+! INSTALL = /usr/ucb/install
+ LD = ld
+ LINT = lint
+ LINTLIBFLAG = -o
+--- 53,59 ----
+ COMPRESS = compress
+ CPP = /usr/lpp/X11/Xamples/util/cpp/cpp $(STD_CPP_DEFINES)
+ PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
+! INSTALL = install
+ LD = ld
+ LINT = lint
+ LINTLIBFLAG = -o
+***************
+*** 71,77 ****
+ STD_INCLUDES =
+ STD_CPP_DEFINES = -DAIXV3 -D_NO_PROTO
+ STD_DEFINES = -DAIXV3 -D_NO_PROTO
+! EXTRA_LOAD_FLAGS = -bnodelcsect
+
+ EXTRA_INCLUDES =
+
+--- 71,77 ----
+ STD_INCLUDES =
+ STD_CPP_DEFINES = -DAIXV3 -D_NO_PROTO
+ STD_DEFINES = -DAIXV3 -D_NO_PROTO
+! EXTRA_LOAD_FLAGS =
+
+ EXTRA_INCLUDES =
+
+***************
+*** 94,100 ****
+ INSTDATFLAGS = -m 0444
+ INSTKMEMFLAGS = -m 4755
+
+! PROJECTROOT = /usr/local/X11R5
+
+ TOP_INCLUDES = -I$(INCROOT)
+
+--- 94,100 ----
+ INSTDATFLAGS = -m 0444
+ INSTKMEMFLAGS = -m 4755
+
+! PROJECTROOT = /usr/local
+
+ TOP_INCLUDES = -I$(INCROOT)
+
+***************
+*** 133,142 ****
+ # X Window System make variables; this need to be coordinated with rules
+
+ PATHSEP = /
+! USRLIBDIR = /usr/local/X11R5/lib
+
+ BINDIR = /usr/local/bin
+! INCROOT = /usr/local/X11R5/include
+ BUILDINCROOT = $(TOP)
+ BUILDINCDIR = $(BUILDINCROOT)/X11
+ BUILDINCTOP = ..
+--- 133,142 ----
+ # X Window System make variables; this need to be coordinated with rules
+
+ PATHSEP = /
+! USRLIBDIR = /usr/local/lib
+
+ BINDIR = /usr/local/bin
+! INCROOT = /usr/local/include
+ BUILDINCROOT = $(TOP)
+ BUILDINCDIR = $(BUILDINCROOT)/X11
+ BUILDINCTOP = ..
+***************
+*** 153,159 ****
+
+ MANPATH = /usr/local/man
+ MANSOURCEPATH = $(MANPATH)/man
+! MANSUFFIX = n
+ LIBMANSUFFIX = 3
+ MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
+ LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
+--- 153,159 ----
+
+ MANPATH = /usr/local/man
+ MANSOURCEPATH = $(MANPATH)/man
+! MANSUFFIX = 1
+ LIBMANSUFFIX = 3
+ MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
+ LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
diff --git a/math/hexcalc/pkg-descr b/math/hexcalc/pkg-descr
new file mode 100644
index 000000000000..0404ad27e89e
--- /dev/null
+++ b/math/hexcalc/pkg-descr
@@ -0,0 +1,2 @@
+hexcalc is a multi-radix calucaltor for integers. It understands
+decimal, hexadecimal, octal and binary numbers.