Index: head/math/hexcalc/Makefile =================================================================== --- head/math/hexcalc/Makefile (revision 274041) +++ head/math/hexcalc/Makefile (revision 274042) @@ -1,24 +1,24 @@ # New ports collection makefile for: hexcalc # Date created: 5 December 1994 # Whom: asami # # $FreeBSD$ # PORTNAME= hexcalc PORTVERSION= 1.11 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MASTER_SITES= ftp://aixpdslib.seas.ucla.edu/pub/hexcalc/RISC/3.2/src/ DISTNAME= ${PORTNAME} EXTRACT_SUFX= ..tar.Z MAINTAINER= ports@FreeBSD.org COMMENT= A multi-radix calculator for x11 USE_IMAKE= yes USE_XORG= ice sm x11 xaw xext xmu xt MAN1= hexcalc.1 PLIST_FILES= bin/hexcalc .include Property changes on: head/math/hexcalc/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.21 \ No newline at end of property +1.22 \ No newline at end of property Index: head/math/hexcalc/files/patch-hexcalc.c =================================================================== --- head/math/hexcalc/files/patch-hexcalc.c (nonexistent) +++ head/math/hexcalc/files/patch-hexcalc.c (revision 274042) @@ -0,0 +1,51 @@ +--- hexcalc.c.orig 2011-05-13 08:28:24.000000000 +0800 ++++ hexcalc.c 2011-05-13 08:32:09.000000000 +0800 +@@ -37,6 +37,7 @@ + #endif + + #include ++#include + #include + #include + #include +@@ -509,14 +510,16 @@ + + switch(topOp) { + case '+' : +- ac = PopArg() + PopArg(); ++ temp = PopArg(); ++ ac = PopArg() + temp; + break; + case '-' : + temp = PopArg(); + ac = PopArg() - temp; + break; + case '*' : +- ac = PopArg() * PopArg(); ++ temp = PopArg(); ++ ac = temp * PopArg(); + break; + case '/' : + temp = PopArg(); +@@ -528,15 +531,18 @@ + break; + + case '|' : +- ac = PopArg() | PopArg(); ++ temp = PopArg(); ++ ac = temp | PopArg(); + break; + + case '&' : +- ac = PopArg() & PopArg(); ++ temp = PopArg(); ++ ac = temp & PopArg(); + break; + + case '^' : +- ac = PopArg() ^ PopArg(); ++ temp = PopArg(); ++ ac = temp ^ PopArg(); + break; + + case '<' : Property changes on: head/math/hexcalc/files/patch-hexcalc.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property